@font-face {
font-family: 'Heebo-title';
  	src:  url('./fonts/heebo.bold.ttf') format('truetype');
}

@font-face {
font-family: 'Heebo-body';
  	src:  url('./fonts/heebo.regular.ttf') format('truetype');
}

@font-face {
font-family: 'Heebo-medium';
  	src:  url('./fonts/heebo.medium.ttf') format('truetype');
}

:root {
--primary-color: #722021;
--background-color: #FDF7ED;
}

body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--background-color);
    -ms-overflow-style: none;
    transition: background-color 1s ease;
}
 
#main-area {
    width: 100%;
    height: 100%;
    display: flex;
    /* align-items: center; */
    flex-direction: column;
}

h1 {
    font-family: 'Heebo-title';
    font-size: 24px;
    color: var(--primary-color);
}
#main-title {
    z-index: 90;
}

#header-area {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

p {
    padding: 0;
    margin: 0;
    font-family: 'Heebo-body';
    font-size: 16px;
    color: var(--primary-color);
    line-height: 24px;
}

p b {
    font-weight: 900;
}

button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.web-link {
    color: var(--primary-color);
}
.web-link:hover {
    color: #440001;
}

.settings-button {
    position:absolute;
    left: 20px;
    top: 10px;
    z-index: 50;
    padding: 18px 24px;
}
.metrics-container{
    padding-left: 10px;
    gap: 10px;
}
.metric{
    font-family: "heebo-body";
    color: var(--primary-color);
}
body.popup-open #heart-container,
body.popup-open .sidebar-area, body.popup-open .settings-button {
  filter: blur(6px);
  pointer-events: none;    /* prevent clicks on blurred content */
  transition: filter 0.3s ease;
}
body.alert-open .calc-overlay,
body.alert-open #heart-container {
  filter: blur(4px);
  pointer-events: none;   
  background-color: rgba(69, 0, 0, 0.08);
  transition: filter 0.3s ease, background-color 0.3s ease;
}


#heart-container{
    position: relative; 
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shape {
    /* transition: all 0.3s ease-in-out; */
    position: absolute;      /* important for translate */
    display: block;
    transform-origin: center center;
}
/* .shape1 {
  width: 50px;
  height: 50px;
  background: red;
} */
 .shape-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease;
}

.disclaimer {
    font-family: "Heebo-body";
    font-size: 12px;
    color: var(--primary-color);
}

.sidebar-area {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 50;
    gap: 24px;
    left: 10px;
    top: 96px;
}

.states-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 30px;
}
.about-icon {
    width: 24px;
    height: auto;
}
.state-item {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 12px 0;
    transition: all 0.3s ease;
}
.current-rate-display {
    display: flex;
    padding-left: 24px;
    font-family: "heebo-body";
    font-size: 16px;
    gap: 18px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color)
}
.state-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #B68673; /* light brown */
    position: absolute;
    left: -20px;
    transition: all 0.3s ease;
    z-index: 2;
}
.state-item.active .state-dot {
    background-color: #8B3A3A; /* darker red-brown */
    width: 14px;
    height: 14px;
    left: -21px;
}
.state-line {
    position: absolute;
    left: -14px;
    top: 24px;
    width: 1.5px;
    height: 48px;
    background-color: #B68673; /* dark red */
    z-index: 1;
}
.state-item:last-child .state-line {
    display: none;
}
.state-label {
    font-family: 'Heebo-body';
    font-size: 16px;
    color: #B68673; /* light brown */
    transition: all 0.3s ease;
    margin-left: 8px;
}
.state-item.active .state-label {
    color: #8B3A3A; /* darker red-brown */
    text-decoration: underline;
    font-weight: 500;
}
.state-item:hover .state-label {
    color: #722021;
}
.img1A {
    transform: rotate(100deg);
}

.learn-more-area{
    padding-left: 5px;
}
.learn-more-button {
    display: flex;
    padding: 6px 12px;
    gap: 18px;
    align-items: center;
    border: 1px solid transparent;
    transition: border 0.3s ease, color 0.3s ease;
}
.learn-more-button:hover {
    color: #5b0c0e;
    border: 1px solid var(--primary-color);
    transition: border 0.3s ease, color 0.3s ease;
}

#heart-animation {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape-anim-sec {
    position: absolute; 
    /* left: 50%;
    top: 50%; */
    transform: translate(-100%, -100%);
    width: auto; 
    height: auto;
    animation: shapeAnim 7s ease forwards;
    z-index: 200;
    visibility: visible;
}

.shape-anim-sec .shape-img {
    position: relative; /* Change from absolute to relative */
    width: auto;
    height: auto;
    max-width: 1200px; /* Adjust to your image size */
    display: block;
}

.shape-anim-sec:nth-child(1) {
    animation-delay: 1s;
    animation-name: shapeAnim1; /* Each gets its own animation */
}

.shape-anim-sec:nth-child(2) {
    animation-delay: 2s;
    animation-name: shapeAnim2;
}

.shape-anim-sec:nth-child(3) {
    animation-delay: 3s;
    animation-name: shapeAnim3;
}


@keyframes shapeAnim1 {
    0% {
        transform: translate(-100%, -100%);
    }
    50% {
        transform: translate(calc(50vw - 50%), calc(50vh - 50%));
    }
    100% {
        transform: translate(calc(100vw + 100%), calc(100vh + 100%));
    }
}

/* Shape 2: Start top-right, center, exit bottom-left */
@keyframes shapeAnim2 {
    0% {
        transform: translate(calc(100vw + 100%), -100%);
    }
    50% {
        transform: translate(calc(50vw - 50%), calc(50vh - 50%));
    }
    100% {
        transform: translate(-100%, calc(100vh + 100%));
    }
}

@keyframes shapeAnim3 {
    0% {
        transform: translate(-100%, calc(100vh + 100%));
    }
    50% {
        transform: translate(calc(50vw - 50%), calc(50vh - 50%));
    }
    100% {
        transform: translate(calc(100vw + 100%), -100%);
    }
}


@media (max-width: 1024px) {
    body {
        overflow: scroll;
        -ms-overflow-style: auto;
    }
}
@media (max-width: 768px) {
    #header-area {
        width: 100vw;
        justify-content: flex-end;
    }
    #main-title {
        transform: translate(-15%, 0); 
    }
    .learn-more-area{
        position: fixed;
        bottom: 12px;
    }
}