@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

:root {
    --accent-color: #a7a6ac;
    --base-color: white;
    --text-color: #2E2B41;
    --input-color: #f5f5f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Varela Round', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

body {
    background-image: linear-gradient(to top, rgba(0, 221, 255, 0.258), rgb(255, 255, 255));
    color: var(--text-color);
    min-height: 100vh;

}


header {
    display: flex;
    border-radius: 15px;
}




.logo {
    display: flex;
    background: linear-gradient(135deg, #00d4cc, #00a39a);
}

#slider {
    width: 420px;
    position: absolute;
    left: 32%;
    top: 78%;
    border-radius: 8px;
    outline: none;
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
    accent-color: #00d4cc;
}


#slider:focus {
    box-shadow: 0 0 0 4px rgba(167, 166, 172, 0.12);
}


#age-input {
    position: absolute;
    top: 76.5%;
    left: 60%;
    width: 70px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: var(--base-color);
    color: var(--text-color);
    font-weight: 600;
    z-index: 10;
    text-align: center;
    transition: all 0.3s ease;
}

#age-input:hover {
    border-color: #00d4cc;
}

#age-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 212, 204, 0.15);
    outline: none;
    border-color: #00d4cc;
}

h1 {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Varela Round', sans-serif;
    letter-spacing: 3px;
    margin-left: 5%;
    margin-top: 3%;
    background: linear-gradient(135deg, #00d4cc, #00a39a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    position: absolute;
    top: 5.5%;
    right: 34%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 500px;
    padding: 12px 20px;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

nav:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #00d4cc;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #00d4cc;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

.box-1 {
    position: absolute;
    top: 23%;
    left: 25%;
    width: 50%;
    height: 30%;
    background-color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-radius: 20px;
    gap: 20px;
    min-height: fit-content;
    transition: box-shadow 0.3s ease;
}

.box-1:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.box-2 {
    position: absolute;
    top: 60%;
    left: 25%;
    width: 50%;
    height: 30%;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-radius: 20px;
    transition: box-shadow 0.3s ease;
}

.box-2:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}



.symbox .symptoms {
    position: static;
    background-color: var(--accent-color);
    color: white;
    display: inline-block;
    border-radius: 10px;
    font-family: "Varela Round";
    font-size: .9rem;
    padding: 5px;
    border: 2px solid var(--accent-color);
    text-align: center;
    top: 10%;
    margin-bottom: 5%;

}

.symbox {
    display: flex;
    gap: 5px;
    position: relative;
    margin: 160px;
    top: 320px;
    z-index: 10;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 400px;
    overflow: auto;

    align-items: center;
}

.buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;


}

.bt,
.active {
    padding: 12px 24px;
    width: 180px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.bt:hover {
    border-color: #00d4cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 204, 0.2);
}

.active {
    background: linear-gradient(135deg, #00d4cc, #00a39a);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 212, 204, 0.3);
}

.bt.active {
    background: linear-gradient(135deg, #00d4cc, #00a39a);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 212, 204, 0.3);
}


span {
    font-weight: 600;

}


.hr1 {

    text-align: center;
    position: relative;
    min-width: 500px;
}

.dashboard{
    display: grid;
}

.hr2 {
    top: 8%;
    right: 18%;
    transform: translateX(18%);
    text-align: center;
    position: relative;
    min-width: 500px;
}

button.start {
    position: fixed !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    font-size: 1rem !important;
    color: #0077b6 !important;
    cursor: pointer !important;
    bottom: 20px !important;
    right: 20px !important;
}


@media screen and (max-width: 1135px) and (min-width: 1000px) {
    nav {
        right: 30% !important;
        min-width: 400px;
        gap: 20px;
    }

    .box-1 {
        left: 20%;
        width: 70%;
        top: 20%;
    }

    .box-2 {
        left: 20%;
        width: 70%;
        top: 55%;
    }
    #age-input {
        left: 75%;
        transform: translateX(-50%);
    }
    #slider {
        left:30%;
    }

    .hr1, .hr2 {
        min-width: 300px;
    }

    #age {
        font-size: 1.5rem;
    }

    .bt {
        width: 150px;
        padding: 10px 18px;
    }

}
@media screen and (max-width: 950px) and (min-width: 650px) {
    nav {
        right: 29% !important;
        min-width: 400px;
        gap: 20px;
    }

    .box-1 {
        left: 10%;
        width: 80%;
        top: 20%;
    }

    .box-2 {
        left: 10%;
        width: 80%;
        top: 55%;
    }
    #age-input {
        left: 75%;
        transform: translateX(-50%);
    }
    #slider {
        left: 20%;
    }

    .hr1, .hr2 {
        min-width: 300px;
    }

    #age {
        font-size: 1.5rem;
    }

    .bt {
        width: 150px;
        padding: 10px 18px;
    }
}


@media screen and (max-width: 420px) {
    nav {
        position: absolute;
        top: 5.5%;
        right: 14% !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 300px;
        padding: 10px;
        gap: 20px;
        background-color: #ecececd1;
        border-radius: 20px;
        backdrop-filter: blur(2px);
        z-index: 1;}

        .box-1 {
            width: 70%;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
        }

        .dashboard{
            display: grid;
        }

        .start{
            place-self: end end !important;
            position: relative !important;

        }

     h1 {
            display: none;
            background: linear-gradient(135deg, #00d4cc, #00a39a);
        }
        
        h2{
            font-size: 20px;
            text-align: center;
            display: flex;
        }

        #age{
            position: relative;
            left: -8%;
        }

        .box-1{
            height: 38%;
            top: 15%;
        }

        .box-2{
            width: 70%;
            left: 15%;
            bottom: 20%;
        }

        .buttons {
            position: absolute;
            top: 57.5%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: block;
        }

        button{
            margin: 2px !important;
        }

        #slider{
            width: 55%;
            left: 22.5%;
        }


        #age-input{
            left: 43.5%;
            transform: translateY(100%);
        }

        html, body {
            overflow: hidden;
            height: 100vh;
        }
    }

