:root {
    --color-background: oklch(46.06% 0.0735 277.3);
    --color-light: oklch(98.04% 0.0042 13.06);
    --color-dark: oklch(53.6% 0.002 325.6);
    --color-indicator: oklch(82.08% 0.0184 89.37);
  }

body {
    color: var(--color-darktext);
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-background);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.visualization{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Distributes content evenly */
    height: 100vh; /* Full screen height */
    width: 90%;
}

.title-screen {
    position: fixed; 
    top: 0;
    width: 100%;
    height:100vh;
    background-color: var(--color-background);
    color: var(--color-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    h3{
        font-size: 150%;
        font-style: oblique;
        font-weight: bold;
        margin: 5%;
    }
}


/* Hide title screen when scrolled */
.hide-title {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator {
    font-size: 18px;
    font-style: italic;
    color: var(--color-indicator);
    margin-top: 20px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

#title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    font-weight: bold;
    margin-bottom: 5%;
    font-family: 'Trebuchet MS';
    font-size: 200%;
}

.emoji{
    max-width: 80px;
    height: auto;
}

.visualization{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Distributes content evenly */
    height: 100vh; /* Full screen height */
    width: 90%;
}

.charts-section {
    display: flex;
    justify-content: space-between;
    min-height: 30vh;
    gap: 2%;
    margin-top: 3%;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 5%;
    box-sizing: border-box;
}


.chart {
    width: 20%;
    max-height: 70vh;
    background-color: var(--color-light);
    padding: 3%;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    h2{
        color: var(--color-dark);
        font-size: 100%;
        margin: 0;
        margin-bottom: 3%;
    }
}



svg {
    width: 80%;  
    aspect-ratio: 1 / 2; 
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

svg:not(#legend-svg):hover {
    outline: 5px solid var(--color-indicator);
    border-radius: 5px;
    cursor: pointer;
}

.hint{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-size: 100%;
    font-weight: bold;
    width: 100%;
    
    p{
        color: var(--color-indicator);
        margin: 0;
        opacity: 0;
        position: relative;
        transform: translateY(-10px); /* Start slightly above */
        animation: blink 2s infinite ease-in-out;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1; /* Fully visible */
    }
    50% {
        opacity: 0; /* Hidden */
    }
}

/* Apply blinking animation only initially */
.hint p {
    color: var(--color-indicator);
    margin: 0;
    position: relative;
    transform: translateY(-10px);
    animation: blink 2s infinite ease-in-out;
}

/* Stop blinking when 'no-blink' class is added */
.hint p.no-blink {
    animation: none;
    opacity: 1; /* Keep the hint visible */
    color: var(--color-light)
}

.weight-height-filter {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    border-radius: 8px;
    width: 100%;
}

.filter-box {
    display: flex;
    justify-content: column;
    align-items: center;
    width: 100%;
    border-radius: 8px;
}

.input-container {
    position: relative;
    width: 100%; 
    padding-bottom: 15%;
    display: flex;
    align-items: center;
}

.input-container input:hover {
    outline: 5px solid var(--color-indicator);
    border-radius: 25px;
}

/* Make the input take up most of the width */
.input-container input {
    width: 100%; 
    padding: 10px;
    height: 30px;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background-color: white;
    outline: none;
}

.unit {
    position: absolute;
    right: 20%;
    font-size: 100%;
    font-weight: bold;
    color: var(--color-dark);
    opacity: 0.7;
}

.unit:hover {
    opacity: 1;
}
.scale {
    display: flex;
    flex-direction: column;
    /* background-color: var(--color-light); */
    /* border-radius: 20px; */
    width: 66%; /* Adjust width to make the scale box longer */
    margin: 0 auto 20px auto; /* Center the scale and add margin to the bottom */
    justify-items: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.scale p {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-light);
    margin: 0; /* Remove default margin */
}

#left, #supine, #right {
    width: 100%;
  }

.reset{
    background-color: var(--color-indicator);
    color: var(--color-light);
    border: none;
    border-radius: 20px;
    width: 100%;
    padding: 10%;
    font-size: 100%;
    font-weight: semi-bold;
    cursor: pointer;
    outline: none;
}

.ui{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-bottom: 5%;
}

.text-section{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: var(--color-light);
    padding: 5%;
}

.scale-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Remove padding to eliminate white space */
    margin: 0; /* Remove margin to eliminate white space */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.scale-box svg {
    width: 100%;
    height: 3.4em;
    background-color: var(--color-background);
    justify-content: center;
    align-items: center;
    margin: 0; /* Remove margin to eliminate white space */
    padding: 0; /* Remove padding to eliminate white space */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.scale-box {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--color-background);
    /* border-radius: 0px; */
    width: 100%;
    padding: 0%;
    margin-bottom: 5%;
}

