@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
:root {
    --primary: #eee75a;
    --secondary: #fc88d1;
    --light: #ffffff;
}

body {
    background-color: #f9f9f9;
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    margin-left: 78px;
    width: 80%;
}

.right-nav {
    position: sticky;
    width: 100%;
    height: fit-content;
    margin-left: 10px;
}

.left-nav {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 20px;
}

a {
    text-decoration: none;
    color: #0f0f0f;
    cursor: pointer;
    padding-right: 5px;
}

a:hover {
    color: #888;
}

.input-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 5rem;
    margin: 2rem 3rem 3rem 10rem;
}

.text {
    background-color: lightgray;
    margin-top: 2rem;
    padding: 0.5rem;
    width: 50vw;
    height: 5.8vh;
    overflow: hidden;
    position: relative;
    border-radius: 0.5rem;
}

.para-text {
    position: absolute;
    width: 100%;
    white-space: nowrap;
    animation: move 20s linear infinite;
}

@keyframes move {
    from {
        right: -100%;
    }
    to {
        right: 100%;
    }
}

.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: teal;
}

.height-section,
.weight-section,
.age-section {
    display: flex;
    flex-direction: column;
}

.gender-section {
    display: flex;
    flex-direction: column;
    margin-left: 8rem;
}

.activity-section {
    display: flex;
    flex-direction: column;
    margin-left: 3rem;
}

label {
    margin-bottom: 0.7rem;
    font-weight: 500;
}

input {
    width: 15vw;
    height: 5vh;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 0.3rem;
    background-color: lightgray;
    border: none;
}

span {
    color: #1200ff;
}

#gender,
#activity {
    width: 12vw;
    height: 5vh;
    font-size: 0.95rem;
    padding: 0.1rem;
    border-radius: 0.3rem;
    background-color: lightgray;
    border: none;
    color: teal;
}

#activity {
    width: 27vw;
}

.btn-container {
    margin-top: 0;
}

.btn {
    width: 12rem;
    height: 2.5rem;
    font-size: 1.4rem;
    border-radius: 1rem;
    background-color: rgb(238, 98, 79);
    color: white;
    border: none;
}

.btn:hover {
    background-color: red;
}

.footer {
    display: flex;
    justify-content: space-evenly;
    margin-top: auto;
    width: 100%;
    padding: 5px;
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
}

.footer p {
    margin: 0;
}

.icon_container {
    display: flex;
    gap: 15px;
    font-size: 18px;
    cursor: pointer;
}

.icon:hover {
    color: #f2741a;
}

.copyright {
    color: black;
}

@media only screen and (max-width: 800px) {
    .input-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: auto;
        margin-left: auto;
    }
    .gender-section,
    .activity-section {
        margin-left: 0rem;
    }
    input {
        width: 50vw;
    }
    #gender {
        width: 50vw;
    }
    #activity {
        width: 50vw;
    }
}


/* loader */

#loader {
    height: 0;
    width: 0;
    padding: 15px;
    border: 6px solid #ccc;
    border-right-color: #888;
    border-radius: 22px;
    -webkit-animation: rotate 1s infinite linear;
    position: absolute;
    left: 50%;
    top: 50%;
}

@-webkit-keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
    }
}


/* about page */

.about-page {
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin: 2rem;
}

.about-page img {
    max-width: 344px;
    align-self: center;
}

.about-btn {
    padding: 8px 15px;
    border: none;
    transition: 0.2s ease-in-out;
    background-color: #eee75a;
    border-radius: 5px;
    color: #000000;
}

.about-btn:hover {
    opacity: 0.8;
    transition: 0.2s ease-in-out;
    font-weight: bold;
    word-spacing: 2px;
    background-color: #fc88d1;
}


/* contact page */

.contact-form {
    width: 100%;
    margin: 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* gap: 2rem 3rem; */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    width: 60%;
    gap: 1rem;
    /* background-color: yellow; */
}

.contact-btn {
    margin: 15px 0;
    background-color: #eee75a;
    border-radius: 5px;
    border: none;
    outline: none;
    color: #000000;
    width: 100%;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.contact-btn:hover {
    opacity: 0.8;
    transition: 0.2s ease-in-out;
    font-weight: bold;
    word-spacing: 2px;
    background-color: #fc88d1;
}

.contact-info h3 {
    font-size: 32px;
}

.form {
    max-width: 450px;
    background-color: whitesmoke;
    padding: 20px;
}

.form-input {
    padding: 0.5rem 0;
    text-align: center;
    border-radius: 5px;
    border: 0.1px solid rgb(111, 108, 108);
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-label {
    padding: 8px 0;
}

.form-textarea {
    height: 120px;
    border-radius: 5px;
    border: 0.1px solid rgb(111, 108, 108);
    text-align: center;
}


/* OverLay Styles */

.container {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 50, 0.8), rgba(0, 0, 50, 0.8)), url(hero_image.png);
    background-position: center;
    background-size: cover;
    position: relative;
}

.form-box {
    width: 90%;
    max-width: 450px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 50px 60px 70px;
    text-align: center;
}

.form-box h1 {
    font-size: 30px;
    margin-bottom: 60px;
    color: #3c00a0;
    position: relative;
}

.form-box h1::after {
    content: '';
    width: 100px;
    height: 4px;
    border-radius: 3px;
    background: #3c00a0;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}