@font-face {
    font-family: 'ClickCheese';
    src: url('../01_Shaojie_243218M_A2/fonts/Click\ Cheese.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'Letteris';
    src: url('../01_Shaojie_243218M_A2/fonts/Letteris.otf') format('opentype');
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

*{
    font-family: 'ClickCheese';
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #eeece7;
    margin: 10px;
    padding: 10px 30px;
    position: relative;

    h1 {
        font-size: xxx-large;
        color:#97714b;
    }
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    list-style-type: none;
}

.navbar li button {
    display: flex;
    padding: 20px 30px;
    position: relative;
    align-items: center;
    border: none;
    background-color: inherit;
    cursor: pointer;
    font-size: 16px;
}

.navbar li button:hover {
    color: brown;
    text-decoration: overline;
}

#hamIcon{display:none;}

.page {
    padding: 20px;
}

.spacing.spacingsmall {
    height: 24px;
}

.spacing.spacingmid {
    height: 48px;
}

#page1 {
    .intro {
        display: flex;
        align-items: center;

        .title {
            z-index: 1;
            padding: 0 0 0 60px;

            h2 {
                font-size: 80px;
                padding: 10px 0;
            }

            p {
                font-size: 30px;
                max-width: 600px;
            }
        }

        div.image {
            background-image: url("images/RoastedPotatoes\(Home\).jpg");
            background-size: cover;
            background-position: center;
            width: 100%;
            min-height: 575px;
            border-radius: 10px;
            margin: 0 calc(50% - 50vw + 40px) 0 -150px;;
        }
    }

    .content {
        .container1{
            display: block;
            align-items: center;
            background-color: #f5f3ef;
            padding: 50px 100px;
            margin: 40px;
            border-radius: 10px;

            h2 {
                text-align: center;
                font-size: 50px;
                padding: 30px;
                color:#97714b;
            }

            p{
                font-size: 20px;
                padding: 20px;

                button {
                    border: none;
                    background-color: inherit;
                    cursor: pointer;
                    font-size: 20px;
                    color: brown;
                    text-decoration: underline;
                }

                button:hover {
                    color: rgb(104, 26, 26);
                }
            }
        }

        .container2{
            display: block;

            h2 {
               display: flex;
                align-items: center;
                font-size: 40px;
                padding: 0 0 0 100px; 
                margin: 0 0 30px 0;
            }

            .recipes {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
                margin: 0 90px;

                .image {
                    height: 370px;
                    display: flex;
                    align-items: flex-end;
                    padding: 16px;
                    border: none;
                    cursor: pointer;
                    transition: all 0.3s;

                    div {
                        background-color: white;
                        font-size: 20px;
                        padding: 20px;
                        border-radius: 10px;
                        transition: all 0.3s;

                        span {
                            color: #1ab843;
                        }
                    }
                }

                .image:hover {
                    transform: translateY(-5px); 
                    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

                    div {
                        background-color: #1ab843;
                        color: white;

                        span {
                            color: white;
                        }
                    }
                }

                .image1 {
                    background-image: url("images/CheesyMashedPotatoes.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                }

                .image2 {
                    background-image: url("images/FrenchFries.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                }

                .image3 {
                    background-image: url("images/BakedPotatoes.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                }

                .image4 {
                    background-image: url("images/WaffleFries.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                }

                .image5 {
                    grid-row: 1 / 3;
                    height: 756px;
                    background-image: url("images/PotatoChips.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                }
            }
        }

        .container3 {
            display: block;
            align-items: center;
            padding: 0px 100px;
            margin: 40px;
            border-radius: 10px;

            .divider {
                font-family: 'Letteris';
                text-align: center;
                font-size: 50px;
                color: darkgray;
            }

            h2 {
                text-align: center;
                font-size: 60px;
                padding: 30px;
                color: black;
            }

            p{
                font-size: 20px;
                line-height: 30px;
                padding: 20px;
                text-align: center;
            }
        }

        .container4 {
            display: block;
            align-items: center;
            background-color: #f5f3ef;
            padding: 50px 100px;
            margin: 0 50px;
            border-radius: 10px;

            .flexcontainer {
                display: flex;
                padding: 40px 0;
                margin: 20px 0;

                .image {
                    background-image: url("images/PotatoGrowing.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                    width: calc(50% - 36px);
                    margin: 0 100px 0 0;
                    flex-shrink: 0;
                    filter: drop-shadow(0 0 12px rgba(0, 0, 0, .2));
                }

                .text {
                    h2 {
                        font-size: 60px;
                        padding: 30px 0;
                    }

                    p {
                        font-size: 20px;
                        line-height: 30px;
                    }
                }
            }
        }

        .container5 {
            display: block;
            position: relative;

            .flexcontainer {
                display: flex;
                min-height: 480px;
                align-items: center;
                position: initial;

                .image {
                    width: 100%;
                    left: 0;

                    background-image: url("images/PotatoFunFact.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                    
                    position: absolute;
                    height: 480px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .text {
                    z-index: 1;
                    padding: 30px;
                    margin: 0 15% 0 55%;
                    background-color: rgba(255, 255, 255, 0.8);
                    border-radius: 5px;

                    h2 {
                        font-size: 40px;
                        padding: 0 0 30px 0;
                    }

                    p {
                        line-height: 25px;
                    }
                }
            }

            .flexcontainer1 {
                display: block;
                padding: 10px;
                margin: 0 100px;
                align-items: center;

                h2 {
                    font-size: 35px;
                }

                .collapsiblecontainer {
                    display: flex;
                    flex-direction: column;
                    align-items: left;
                    justify-content: center;

                    .collapsible {
                        background: inherit;
                        border: none;
                        cursor: pointer;
                        padding: 30px;
                        margin: 0 20px;
                        text-align: left;
                        font-size: 25px;
                        color: #97714b;
                    }

                    .collapsible:after {
                        content: "+";
                        color: #1ab843;
                        float: right;
                    }

                    .active:after {
                        content: "-";
                        color: black;
                    }

                    .text {
                        padding: 0 20px;
                        margin: 0 30px;
                        max-height: 0;
                        overflow: hidden;
                        border-bottom: 2px solid #eeece7;
                        transition: max-height 0.3s ease-out;
                    }
                }
            }
        }

        .container6 {
            justify-content: center;
            align-items: center;
            overflow: hidden;
            
            .game {
                background-color: #f5f3ef;
                border-radius: 5px;
                position: relative;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 20px;
                min-height: 600px;
                min-width: 400px;

                #gamescreen {
                    display: block;
                    background-color: #eeece7;
                }

                #scoredisplay {
                    font-size: 25px;
                    margin-bottom: 15px;
                    padding-left: 80%;
                    text-align: right;
                }
                
                #gameUI {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(0, 0, 0, 0.7);
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    color: white;
                    font-size: 40px;
                    text-align: center;
                    border-radius: 5px;
                    z-index: 1;
                }

                #gameUI button {
                    background-color: #1ab843;
                    color: white;
                    padding: 15px 30px;
                    border: none;
                    border-radius: 10px;
                    font-size: 25px;
                    cursor: pointer;
                    margin-top: 20px;
                    transition: background-color 0.3s ease-out, transform 0.2s ease-out;
                }

                #gameUI button:hover {
                    background-color: #ea580c;
                    transform: translateY(-2px);
                }

                #gameUI button:active {
                    transform: translateY(0);
                }

                .hidden {
                    display: none;
                }
            }
        }
    }
}

#page2 {
    .intro {
        display: flex;
        align-items: center;

        .title {
            z-index: 1;
            padding: 0 0 0 60px;

            h2 {
                font-size: 80px;
                padding: 10px 20px 10px 0;
                background: white;
            }

            p {
                font-size: 30px;
                max-width: 600px;
            }
        }

        div.image {
            background-image: url("images/TypesOfPotatoes.jpg");
            background-size: cover;
            background-position: center;
            width: 50%;
            min-height: 575px;
            border-radius: 10px;
            margin: 0 calc(50% - 50vw + 40px) 0 -150px;;
        }
    }

    .content {
        .container1 {
            display: block;
            align-items: center;
            background-color: #f5f3ef;
            padding: 50px 0px;
            margin: 40px;
            border-radius: 10px;

            h2 {
                text-align: center;
                font-size: 50px;
                padding: 30px;
                color:#97714b;
            }

            p{
                text-align: center;
                font-size: 20px;
                padding: 20px 60px;
                line-height: 30px;
            }
        }

        .container2 {
            display: block;

            h2 {
                text-align: center;
                align-items: center;
                font-size: 30px;
            }

            .typesofpotatoes {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                margin: 0 90px;

                a {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    width: 200px;
                    padding: 30px;
                    text-decoration: none;
                    color: black;

                    .image {
                        width: 100%;
                        height: 175px;
                        margin: 30px 0;
                        background-size: contain;
                        background-repeat: no-repeat;
                        background-position: center;
                    }

                    .image1 {
                        background-image: url("images/russet.webp");
                    }

                    .image2 {
                        background-image: url("images/red.webp");
                    }

                    .image3 {
                        background-image: url("images/white.webp");
                    }

                    .image4 {
                        background-image: url("images/yellow.webp");
                    }

                    .image5 {
                        background-image: url("images/purple.webp");
                    }

                    .image6 {
                        background-image: url("images/fingerling.webp");
                    }

                    .image7 {
                        background-image: url("images/petite.webp");
                    }

                    .text {
                        font-size: 16px;
                        text-transform: uppercase;
                        padding: 0 36px 0 0;
                        position: relative;
                        transition: .4s all;
                    }

                    .text::before {
                        content: "";
                        position: absolute;
                        bottom: 0;
                        left: -4px;
                        height: 6px;
                        width: calc(100% + 4px);
                        background-color: rgba(255, 167, 0, .3);
                        transition: .4s all;
                    }

                    .text::after {
                        content: ">";
                        width: 15px;
                        height: 10px;
                        position: absolute;
                        right: 4px;
                        bottom: 6px;
                    }
                }

                a:hover .text{
                    padding: 0 42px 0 0;
                }

                a:hover .text:before {
                    background-color: rgba(255, 167, 0, .7);
                }
            }
        }

        .container3 {
            display: flex;
            background-color: #f5f3ef;
            margin: 30px;
            align-items: center;
            border-radius: 3px;

            iframe {
                border-radius: 3px;
                width: 50%;
            }

            .text {
                padding: 50px;
                text-align: left;
                align-items: center;
                width: 50%;

                h2 {
                    font-size: 30px;
                    padding: 20px 0;
                }
            }
        }

        .container4 {
            .title {
                text-align: center;
                font-size: 40px;
                color: #97714b;
            }

            .list {
                display: flex;
                flex-wrap: wrap;
                align-items: center;

                .listitems {
                    display: flex;
                    justify-content: center;
                    flex-direction: row;
                    padding: 50px;
                }

                h2 {
                    width: 50%;
                    padding: 30px;
                    font-size: 50px;
                    border-right: 2px solid #eeece7;
                    text-align: right;
                }

                p {
                    width: 50%;
                    padding: 30px;
                    line-height: 25px;
                }
            }
        }
    }
}

#page3 {
    .intro {
        display: flex;
        align-items: center;

        .title {
            z-index: 1;
            padding: 0 0 0 60px;
            width: 50%;

            h2 {
                font-size: 80px;
                padding: 10px 20px 10px 0;
                background: white;
            }

            p {
                font-size: 30px;
                max-width: 600px;
            }
        }

        div.image {
            background-image: url("images/HowToCookPotatoes.jpg");
            background-size: cover;
            background-position: center;
            width: 50%;
            min-height: 575px;
            border-radius: 10px;
        }
    }

    .content {
        .container1 {
            display: block;
            position: relative;

            .flexcontainer {
                display: flex;
                min-height: 480px;
                align-items: center;
                position: initial;

                .image {
                    background-image: url("images/BGImage1.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                    width: 100%;
                    left: 0;
                    position: absolute;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .text {
                    z-index: 1;
                    width: 50%;
                    background-color: rgba(255, 255, 255, .8);
                    margin: 70px 30px;
                    padding: 40px;

                    h2 {
                        font-size: 30px;
                        padding: 30px 0;
                    }

                    p {
                        line-height: 20px;
                        font-size: 20px;
                    }

                    ul {
                        padding: 0 10px;
                        font-size: 20px;
                        li {
                            padding: 15px 0;
                        }
                    }
                }
            }
        }

        .container2 {
            background: #f5f3ef;
            position: relative;
            margin: 0 50px;

            .flexcontainer {
                display: flex;
                min-height: 480px;
                align-items: center;
                position: initial;
                margin: 0 50px;

                .image {
                    background-image: url("images/Preparing.jpg");
                    background-size: contain;
                    background-position: center;
                    border-radius: 3px;
                    right: 0;
                    width: 50%;
                    position: absolute;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .text {
                    padding: 40px;
                    padding-left: 0;
                    width: 40%;

                    h2 {
                        font-size: 30px;
                        padding: 30px 0;
                    }

                    h3 {
                        font-size: 25px;
                        padding: 30px 0 10px 0;
                    }

                    p {
                        line-height: 25px;
                        font-size: 20px;
                    }

                    ul {
                        padding: 0 10px;
                        font-size: 20px;
                        li {
                            padding: 15px 0;
                        }
                    }
                }
            }
        }

        .container3 {
            background: #eeece7;
            padding: 70px 0;
            position: relative;
            margin: 0 50px;

            .flexcontainer {
                display: flex;
                padding: 0 80px;

                .image {
                    background-image: url("images/Peeling.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                    width: calc(50% - 36px);
                    margin: 0 72px 0 0;
                    flex-shrink: 0;
                    filter: drop-shadow(0 0 12px rgba(0, 0, 0, .25));
                }

                .text {
                    padding: 40px;
                    padding-left: 0;
                    width: 40%;

                    h2 {
                        font-size: 30px;
                        padding: 30px 0;
                    }

                    h3 {
                        font-size: 25px;
                        padding: 30px 0 10px 0;
                    }

                    p {
                        line-height: 25px;
                        font-size: 20px;
                    }

                    ul {
                        padding: 0 10px;
                        font-size: 20px;

                        li {
                            padding: 15px 0;
                        }
                    }
                }
            }
        }

        .container4 {
            padding: 50px;

            h2 {
                font-size: 40px;
            }

            .flexcontainer {
                display: flex;
                flex-direction: column;

                #baked {
                    flex-direction: row-reverse;
                    .image {
                        background-image: url("images/BakedRecipe.jpg");
                    }
                }

                #mashed {
                    .image {
                        background-image: url("images/MashedRecipe.jpg");
                    }
                }
                
                #fries {
                    flex-direction: row-reverse;
                    .image {
                        background-image: url("images/FriesRecipe.jpg");
                    }
                }

                #roasted {
                    .image {
                        background-image: url("images/RoastedRecipe.jpg");
                    }
                }

                #chips {
                    flex-direction: row-reverse;
                    .image {
                        background-image: url("images/ChipsRecipe.webp");
                    }
                }

                #scalloped {
                    .image {
                        background-image: url("images/ScallopedRecipe.jpg");
                    }
                }
            }

            .recipes {
                display: flex;
                min-height: 480px;
                background: #eeece7;
                margin: 50px 0;
                position: relative;
                
                .image {
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                    right: 0;
                    width: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .text {
                    padding: 40px;
                    width: 50%;

                    h3 {
                        font-size: 30px;
                        padding: 30px 0;
                    }

                    h4 {
                        font-size: 30px;
                        padding: 30px 0;
                        color: #863c69;
                    }

                    p {
                        line-height: 25px;
                        font-size: 20px;
                    }

                    ul {
                        padding: 0 10px;
                        font-size: 20px;

                        li {
                            padding: 15px 0;
                        }
                    }
                }
            }
        }
    }
}

#page4 {
    .intro {
        display: flex;
        flex-direction: column;
        padding: 50px;

        h2 {
            font-size: 40px;
        }

        .image {
            padding: 50px 0;
            border-radius: 3px;
            max-height: 575px;
            height: auto;
            width: 100%;
        }
    }

    .content {
        .container1 {
            padding: 0 50px;
            .flexcontainer {
                display: flex;

                nav {
                    padding: 30px;
                    background: #f5f3ef;
                    width: 20%;

                    p {
                        font-size: 25px;
                        padding: 0 0 30px;
                    }

                    .navbar {
                        display: flex;
                        flex-direction: column;

                        a {
                            text-decoration: none;
                        }

                        div {
                            padding: 20px 0;
                        }
                    }
                }

                .text {
                    padding: 30px;
                    width: 80%;

                    h2 {
                        padding: 0 0 30px 0;
                        font-size: 30px;
                    }

                    p {
                        line-height: 25px;
                        font-size: 20px;
                    }
                }
            }
        }

        .container2 {
            background: #f5f3ef;
            padding: 70px 0;
            position: relative;
            margin: 0 50px;

            .flexcontainer {
                display: flex;
                padding: 0 80px;
                min-height: 1000px;

                .image {
                    background-image: url("images/NutritionFacts.png");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                    width: calc(50% - 36px);
                    margin: 0 72px 0 0;
                    flex-shrink: 0;
                    filter: drop-shadow(0 0 12px rgba(0, 0, 0, .25));
                }

                .text {
                    display: flex;
                    flex-direction: column;
                    align-items: left;

                    h2 {
                        font-size: 30px;
                        padding: 40px;
                    }

                    .collapsible {
                        background: inherit;
                        border: none;
                        cursor: pointer;
                        padding: 30px;
                        margin: 0 20px;
                        text-align: left;
                        font-size: 25px;
                        color: #97714b;
                    }

                    .collapsible:after {
                        content: "+";
                        color: #1ab843;
                        float: right;
                    }

                    .active:after {
                        content: "-";
                        color: black;
                    }

                    .text {
                        padding: 0 20px;
                        margin: 0 30px;
                        max-height: 0;
                        overflow: hidden;
                        border-bottom: 2px solid #eeece7;
                        transition: max-height 0.3s ease-out;
                    }
                }
            }
        }

        .container3 {
            padding: 70px 0;
            position: relative;
            margin: 0 50px;

            h2 {
                font-size: 40px;
                padding: 0 30px 50px 30px;
            }

            .flexcontainer {
                display: flex;
                padding: 0 50px;

                .image {
                    background-image: url("images/NutritionMythsFacts.jpg");
                    background-size: cover;
                    background-position: center;
                    border-radius: 3px;
                    width: calc(30% - 36px);
                    margin: 0 72px 0 0;
                    flex-shrink: 0;
                    filter: drop-shadow(0 0 12px rgba(0, 0, 0, .25));
                }

                .text {
                    padding: 40px;
                    padding-left: 0;
                    width: 70%;

                    p {
                        background-color: #f5f3ef;
                        padding: 20px;
                        margin: 10px;
                        line-height: 25px;
                        font-size: 20px;

                        span {
                            font-weight: bold;
                            padding-right: 40px;
                        }

                        .myth {
                            color: red;
                        }

                        .fact {
                            color: green;
                        }
                    }
                }
            }
        }
    }
}

footer {
    background: black;
    color: white;
    text-align: center;
    padding: 50px;
}

@media screen and (max-width:800px){
    .navbar {
        display: block;

        li {
            border-bottom: 2px solid #eeece7;
        }
    }

    #hamIcon{
        display:block;
        text-decoration: none;
        border: none;
        background-color: white;
        float: right;
        font-size: 25px;
        padding-top: 10px;
    }

    .navbar {display: none;}

    #page1 {
        .flexcontainer {
            flex-direction: column;
        }
    }
}
/*to unhide menu items*/
.menuShow{display:block;}