/* all estelle's code*/

* {
    margin: 0;
    box-sizing: border-box;
}

/*
Estelle's code, made to follow the general consistent formatting of all pages
 */
body {
    font-size: calc(2px + 1.5vw);
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 90%;
    margin: 0 5vw;
}

div {
    margin: 0;
    text-align: center;
}

header {
    background-color: #253f1f;
    padding: 1%;
    margin-bottom: 1%;
    border: 1px solid #253f1f;
    text-align: center;
    color: #EBE8DE;
    position: relative;
}

header h1 {
    background-color: #507746;
    padding: 1%;
    font: bold small-caps calc(2px + 6vw) "Georgia", serif;
}

button {
    color: #EBE8DE;
    background-color:#253f1f;
    position: absolute;
    left: 70%;
    top: 74%;
}
header p {
    background-color: #507746;
    padding-bottom: 1%;
    font-size: calc(2px + 3vw);
}

#matcha-still{
    max-width:30%;
    position: absolute;
    left: 71%;
    top: 8%;
    z-index: 1;
    visibility: visible;
}
#matcha-gif {
    visibility: hidden;
    position: absolute;
    max-width:30%;
    left: 71%;
    top: 8%;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1%;
    /*learned online that gap can help to create gaps or gutters, used with flex objects to create space between flexlines*/
    margin:0;
    padding:0;
}

nav {
    margin: 0;
    background-color: #EBE8DB;
    width: 30%;
    height: 100%;
    display: inline;
    text-align: center;
    flex-direction: row;
    justify-content: space-evenly;
}

nav ul {
    padding: 5%;
    text-align: center;
}

nav li {
    list-style-type: none;
    background-color: #507746;
    padding: 10% 15% 10% 10%;
    margin: 16%;
    width: 65%;
    height: 100%;
    border: none;
    color: #253f1f;
    font-size: calc(2px + 2.1vw);
    text-align: center;
}

nav a {
    text-decoration: none;
    color: #EBE8DE;
    text-align: center;
    margin:0;
    padding: 0;
    font-size: calc(2px + 2.1vw);
}


main {
    display: block;
    color: #253f1f;
    width: 70%;
    background-color: #EBE8DE;
}

main p{ margin: 0 5%}

.first-section {
    font-size: calc(2px + 1.5vw);
    display: inline;
    text-align: center;
    color: #253f1f;
    background-color: #EBE8DE;
    text-decoration: none;
    margin: 10% 10% 10% 5%;
}
.second-section {
    font-size: calc(2px + 1.5vw);
    display: inline;
    text-align: center;
    color: #253f1f;
    background-color: #EBE8DE;
    text-decoration: none;
    margin: 0 10%;
}

.second-section a{
    color: #253f1f;
}
ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-decoration: none;
    text-align: center;
}

iframe {
    display: block;
    margin: 1% 1% 0 30%;
    width: 40%;
    height: 30%;
    border: 2px solid #253f1f;
}

/* footer abides by the styles that estelle developed*/
footer {
    width: 100%;
    background-color: #8fc284;
    padding: 1%;
    border: 2px solid #253f1f;
    text-align: center;
    margin-top: 1%;
}

footer a {
    color: #253f1f;
    text-decoration: none;
}

footer a:hover {
    color: #507746;
}


@media screen and (max-width: 750px) {
    header {
        text-align: center;
    }

    .content-wrapper {
        flex-direction: column;
        width: 100%;
    }


    .first-content {
        width: 100%;
    }

    nav {
        text-align: center;
        width: 100%;
        margin: 0;
        height: 8%;
        display: flex;
        flex-direction: column;
    }

    nav ul {
        margin: 0;
        height: 3%;
        padding: 2%;
    }

    nav li {
        display: inline;
        border: none;
        text-align: center;
        font-size: calc(2px + 0.5vw);
        padding: 2% 2% 1% 2%;
        margin: 2%;

    }

    main {
        width: 100%;
        font-size: calc(2px + 3vw);
    }

    iframe {
        width: 40%;
        height: 30%;
    }
    #matcha-still{
        max-width:8%;
        position: absolute;
        left: 74%;
        top: 6%;
        z-index: 1;
        visibility: visible;
    }
    #matcha-gif {
        visibility: hidden;
        position: absolute;
        max-width:8%;
        left: 74%;
        top: 6%;

    }
    button {
        color: #EBE8DE;
        background-color: #253f1f;
        position: absolute;
        left: 70%;
        top: 72%;
        width:15%;
        font-size: calc(2px + 0.6vw);
    }
    .first-section {
        font-size: calc(2px + 3vw);
    }
    .second-section {
        font-size: calc(2px + 3vw);
    }
}