body{
    background-color: var(--background-secondary);
    height: 100vh;
}

:root{
    --background-primary: #fff;
    --background-secondary: #f8f6f4;
    --accent-color: #d27251;
    --button-color: #2b2c27;
    --secondary-accent: #208b79;
}

*{
    padding: 0;
    margin: 0;
}

.main{
    font-family: Open Sans;
    width: 80%;
    display: flex;
    flex-direction: column;
    margin: 0 10%;
    margin-top: 2rem;
    gap: 3rem;
}

a{
    text-decoration: none;
    color: inherit;
}

.header{
    font-family: Open Sans;
    background-color: white;
    width: 100vw;
    height: 7.5vh;
}

.intro{
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.intro .heading{
    color: var(--accent-color);
    font-size: 2rem;
}

.intro .description{
    font-size: 1.5rem;
}

.navbar{
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 5%;
}

.navbar .links-container{
    margin-left: auto;
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 1rem;
}

.navbar .links-container .link{
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 0 1rem;
    height: 100%;
}

.navbar .links-container .link:before{
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform ease 200ms;

 }

.navbar .links-container .link:hover{
    color: var(--accent-color);
}

.navbar .links-container .link:hover:before{
    transform: scaleX(1);

}

 .link i{
    width: 2rem;
    height: 2rem;
}


.mobile-navbar{
    position: absolute;
    background-color: var(--background-primary);
    width: 20rem;
    height: 100vh;
    z-index: 10;
    transition: ease width 200ms;
    border-top: solid 2px var(--accent-color);
 }

 .mobile-navbar .links-container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    margin-left: 1rem;
    opacity: 0;
    list-style: none;
    transition: opacity ease 220ms;
 }

#logo{
    height: 100%;
}

#menu-bar{
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}
.menu{
    text-align: center;
    vertical-align: center;
}


.al{
    font-size: .75rem;
    position: fixed;
    width: 300px;
    height: 350px;
    padding: 2rem;
    background-color: var(--background-secondary);
    border-radius: 10px 10px 0 10px;
    box-shadow: 0 0 1rem rgba(0 0 0 / .3);
    bottom: 0;
    right: 0;
    z-index: 6;

}

.al .header{
    font-size: 1.5rem;
    font-weight: bold ;
    background-color: var(--accent-color);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(300px + 4rem);
    height: 12%;
    border-radius: 10px 10px 0 0;
    left: 0;
    top: 0;
}

.al .close, .al .open{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    right: .5rem;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    cursor: pointer;
}


.al .fa-xmark, .al .open{
    color: black;
}
.al .header .close:hover{
    transform: scale(1.1);
}

.al.hidden .header{
    height: 50px;
}

.al.hidden{
    height: 0px;
    margin-bottom: -14px;
}

.al.hidden .open, .al .close{
    display: flex;
}

.al.hidden .close, .al .open{
    display: none;
}

.al.hidden .content, .al.hidden #chatbot{
    display: none;
}

.al .content{
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 2rem;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-left: -1.5rem;
    height: 80%;
}

.al .ask{
    border: none;
    font-size: 1.2em;
    text-align: center;
    padding: .25rem;
    margin-top: .75rem;
}

.al #chatbot{
    padding: .25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.al .blurb{
    position: relative;
    box-shadow: 0 0 1rem rgba(0 0 0 / .3);
    padding: .75rem 1.5rem 1.5rem .75rem;
    border-radius: 10px 10px 10px 0px;
    width: 70%;
}

.al .blurb.user{
    margin-left: 15%;
    border-radius: 10px 10px 0px 10px;
}

.al .blurb.user .speaker{
    color: var(--secondary-accent);
}

.al .blurb.thinking::after{
    content: " ...";
    display: inline-block;
    animation-name: load-elipses;
    animation-timing-function: linear;
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

.al .speaker{
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-weight: bold;
    color: var(--accent-color);
}

.answer-submit{
    display: none;
}

.mobile-inputs{
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;

}

.mobile-inputs .num-btns{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 1.25em;
    gap: .5rem;
}

 .mobile-exponent-btn{
    padding: .25em .75em;
    font-weight: bold;
    background-color: var(--button-color);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.mobile-inputs .mobile-exponent-btn:hover{
    background-color: #fff;
    color: var(--button-color);
    border: 1px solid var(--button-color);
}


@keyframes load-elipses {
    0%{
        content: " ";
    }
    33%{
        content: " ."
    }
    66%{
        content: " .."
    }
    100%{
        content: " ..."
    }

}

@media only screen and (max-width: 800px) {
    :root{
        font-size: .8rem;
    }
     .header{
        position: sticky;
        top: 0;
        z-index: 6;
     }

     .answer-submit{
        display: block;
     }

     .mobile-inputs{
        display: flex;
    }


     .navbar .links-container .link:not(.menu-bar){
        display: none;
     }

     .navbar .links-container .menu-bar{
        display: block;
     }

     .mobile-navbar.hidden{
        width: 0;
     }

     .mobile-navbar.hidden .links-container .link{
        display: none;
     }

     .mobile-navbar.show .links-container{
        opacity: 1;
        padding-left: 2rem;
     }

}

@media only screen and (min-width: 801px){
    #menu-bar{
        display: none;
    }

    .mobile-navbar{
        display: none;
    }
}

@media screen and (max-width: 500px) {
    :root{
        font-size: .6rem;
    }

    .al .content{
        margin-top: 5rem;
    }
    .al .blurb{
        font-size: 1rem;
    }

    .al .ask{
        font-size: 1rem;
    }
    .al{
        height: 70%;
        max-width: 500px;
        width: 90%;
    }
    .al.hidden{
        margin-bottom: 0;
    }
    .al .header{
       width: 100%;
    }

    .al .close, .al .open{
        right: 1.5rem;
    }

}
.title{
    position: relative;
}

.title::before{
    content: '';
    position: absolute;
    width: 0;
    bottom: -.25rem;
    height: 4px;
    background-color: var(--secondary-accent);
    transition: width ease 200ms;
}
.card:hover .title:before{
    width: 100%;
}



