/*code of ziliang wang unless otherwise stated*/

/*estelles code begins*/
*{
    margin:0;
    box-sizing: border-box;
}


body {
    font-size: calc(2px + 1.5vw);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


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


div{
    margin: 0;
    text-align: center;
}
/*estelles code ends*/
/*estelle designed the look of the header to be the same on all pages, classmates should have followed*/

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


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


header p{
    background-color: #a67442;
    padding-bottom: 1%;
    font-size: calc(2px + 3vw);
}

/*estelle had to add this div to make the flex work*/
.big_container {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin:0;
    padding:0;

}
/* all nav code by estelle*/
nav{
    background-color: #e7d2ac;
    margin: 0;
    width: 30%;
    height: auto;
    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: #a67442;
    color:#66411d;
    padding: 10% 15% 10% 10%;
    margin: 16%;
    width: 65%;
    height: 100%;
    border: none;
    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);
}

/*ziliang's code continues*/
main{
    color:#573616;
    background-color:#fdf4dc;
    min-height: 100vh;
    width: 70%;
    flex: 1;
}

main p{
    padding:0;
    margin:2%;
}

/* Coffee Brewing Tools Styles */
.brewing-tools {
    margin: 32px auto 60px auto;
    padding: 32px;
    background-color: #e7d2ac;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
}

.tool-section {
    margin: 24px 0;
    padding: 16px;
    background-color: #fdf4dc;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
}

.tool-section h4 {
    color: #573616;
    margin-bottom: 16px;
    font-size: calc(2px + 1.8vw);
}

.timer {
    font-size: calc(2px + 3vw);
    font-weight: bold;
    color: #a67442;
    text-align: center;
    margin: 16px 0;
}

input[type="number"] {
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #a67442;
    border-radius: 4px;
    width: 200px;
    font-size: calc(2px + 1vw);
    background-color: #fdf4dc;
}

button {
    background-color: #a67442;
    color: #EBE8DE;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: calc(2px + 1vw);
    margin: 8px 0;
}

button:hover {
    background-color: #573616;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#recipe-result, #temp-result {
    margin-top: 16px;
    padding: 8px;
    color: #573616;
    font-weight: 500;
    font-size: calc(2px + 1vw);
    background-color: #EBE8DE;
    border-radius: 4px;
}

/* Video styling */
.video-section {
    padding: 20px;
    border-radius: 8px;
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
}

.video-container {
    position: relative;
    padding-bottom: 50%;
    height: 0;
    overflow: hidden;
    max-width: 60%;
    margin: 20px auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.image, .content-image {
    width: 100%;
    max-width: 50%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

footer{
    width:100%;
    background-color:#a67442;
    padding: 1%;
    border: 2px solid #a67442;
    margin-top: 1%;
    flex-shrink: 0;
}


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


    .big_container {
        flex-direction: column;
        width: 100%;
    }
    .container1 {
        width: 100%;
    }
    /*estelle did the coding for all the navs*/
    nav {
        text-align:center;
        width: 100%;
        height: 8%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    nav ul{
        margin: 0;
        height: 3%;
        padding: 2%;
    }
    nav li{
        display: inline;
        padding: 2% 2% 1% 2%;
        margin: 2%;
        text-align: center;
        font-size: calc(2px + 0.5vw);
        border-right: 2px solid #a67442;
    }

    main {
        width: 100%;
    }


    iframe {
        width: 40%;
        height: 30%;
    }
}

/* estelle created a lot of the cs format and asked her teammates to follow it multiple times. the navigation is by estelle and
other lines as stated.
 */