/*Reset Styling*/
* {
    margin: 0;
}

/*Styling for all pages*/
#mainFrame {
    margin: 0;
    box-sizing: border-box;
    gap: 1rem;
}

/*Styling and Positioning*/
.header {
    background-color: #48CAE4;
}

.siteID {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.title {
    display: flex;
    align-items: center;
}

#nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
}

.nav_items {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

a {
    text-decoration: none;
    color: black;
}

/*add hover state to links*/
.nav_items a:hover {
    color: white;
}

/*add hover state to buttons*/
.button:hover {
    background-color: #48CAE4;
}

.nav_item {
    align-content: center;
}

h1,h2,h3 {
    font-family: "interstate", sans-serif;
}

p {
    font-family: "expressway", sans-serif;
    font-size: 0.875rem;
    line-height: 1.5rem;
    font-weight: 100;
}

/*Home page*/

.img_class img {
    border-radius: 0.625rem;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    margin: 0.5rem 1rem;
    gap: 1rem;
    background-color: #EEFCFF;
}

.contents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text {
    display: flex;
    flex-direction: column;
}

#one {
    border-style: solid;
    border-color: #48CAE4;
    border-radius: 1rem;

}

#two {
    border-style: solid;
    border-color: #0077B6;
    border-radius: 1rem;
}

#three {
    border-style: solid;
    border-color: #03045E;
    border-radius: 1rem;
}


.button {
    background-color: #CAF0F8;
    display: flex;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    border: none;

    /*Centers text horizontally*/
    justify-content: center;

    /*Centers text vertically*/
    align-items: center;

    /*Centers button horizontally*/
    align-self: stretch;
}

#grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/*Set dimensions of imgs within 'grid'*/
#grid img {
    width: 100%;
    aspect-ratio: 1/1;
}

/*ABOUT PAGE*/
.profile_card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    margin: 0.5rem 1rem;
    gap: 1rem;
    background-color: #EEFCFF;
    align-items: center;
    flex: 1 1 15.5rem;
}

.page_title {
    padding: 2rem 8.19rem 2rem 1.5rem;
}

.profile {
    width: 17rem;
    border-radius: 20rem;
}

.card_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

/*SHOP PAGE*/
.product_card {
    display: flex;
    width: 25rem;
    padding: 1.5rem;
    gap: 1rem;

    border: 0.25rem solid #48CAE4;
    background: #EEFCFF;
}

.product_card img {
    width: 11rem;
    aspect-ratio: 1/1;
}

.card_contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    flex: 1 0 0;
    gap: 1.5rem;
}

.message{
    background-color: #0077B6;
    padding: 1rem;
    margin: 1rem;
}

.message h3{
    color: white;
}


/*Shop button*/

#buy{
    background-color: #CAF0F8;
    display: flex;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    border: none;

    /*Centers text horizontally*/
    justify-content: center;

    /*Centers text vertically*/
    align-items: center;
}

#buy:hover{
    background-color: #48CAE4;
}


/*Nav Menu for Mobile Mode*/

.menu_top{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

#overlay {
    display: none;
    background-color: #CAF0F8;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-bottom: 1rem;
    height: fit-content;
}

#overlay ul{
    display: flex;
    flex-direction: column;
    list-style: none;
}

#overlay li{
    padding: .5rem;
}

#overlay ul li:hover{
    background-color:#48CAE4;
}


#overlay:target {
    display: flex;
    flex-direction: column;
}

/*Mobile mode*/
@media screen and (max-width:800px) {
    .title {
        display: none;
    }

    .nav_item {
        display: none;
    }

    .text {
        gap: 32px;
    }

    .product_card{
        width: 100%;
    }
}

/*Tablet and Desktop mode*/
@media screen and (min-width: 800px) {

    .menu {
        display: none;
    }

    .card {
        flex-direction: row;
        gap: 10rem;
    }

    .contents {
        justify-content: space-between;
    }

    #grid img {
        width: 200px;
    }

    .img_class img {
        width: 400px;
    }

    .text {
        gap: 40px;
    }

}