  /* header */

  h1 {
    margin: 0px;
 }

 #header {
    text-align: center;
    background-color: #3a2618;
    margin-bottom: 0px;
}

a {
    text-decoration: none;
    color: #f0ead2;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

        /* navbar */

        .navbar {
            background-color: #3a2618;
            margin-top: 0px;
            font-family:Arial, Helvetica, sans-serif;
        }
        
        .navbar a {
            color: #f0ead2;
        }
        
        .navbar a:hover {
            color: #f0ead2;
        }
        
        @keyframes shadow {
            to {
                box-shadow: 0 0 20px rgb(221, 229, 182)
            }
        }
        
        li:hover {
            animation-name: shadow;
            animation-duration: 1s;
            animation-fill-mode: forwards;
        }

        .navbar-toggler {
            background-color: #f0ead2; 
        }

    /*maincontent */

        body {
            background-color: #f0ead2;
        }

        #maincontent {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f0ead2;
        }
        
        .container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 30px;
            background: #f0ead2;
            color: #3a2618;
            padding: 40px 60px;
            font-family: Georgia, 'Times New Roman', Times, serif;
        }

        h2 {
            font-size: 3em;
            color:#3a2618;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .reset {
            padding: 15px 20px;
            color: #f0ead2;
            background: #3a2618;
            border: none;
            font-size: 1.5em;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            cursor: pointer;
            font-weight: 600;
        }

        .reset:focus {
            color:#f0ead2;
            background: #f0ead2;
        }

        .game {
            width: 440px;
            height: 440px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            transform-style: preserve-3d;
            perspective: 500px;
        }

        .item {
            position: relative;
            width: 100px;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1em;
            background:#3a2618;
            transition: 0.25s;
            color: #f0ead2;
            font-family: Georgia, 'Times New Roman', Times, serif;
        }

        .item.boxOpen {
           transform: rotateY(0deg); 
        }

        .item::after {
            content: '';
            position: absolute;
            inset: 0;
            background: #3a2618;
            transition: 0.25s;
            transform: rotateY(0deg);
            backface-visibility: hidden;
            text-decoration-color: #f0ead2;
        }

        .boxOpen:after, .boxMatch:after {
            transform: rotateY(180deg);
        }

        #pointsDisplay {
            text-align: center;
            color: #3a2618;
            font-size: large;
            font-family: Georgia, 'Times New Roman', Times, serif;
        }


        h4 {
            text-align: center;
        }

        .modal-open {
            padding: 8px 16px;
            background: #3a2618;
            color: #f0ead2;
            border-radius: 4px;
            outline: none;
            border: none;
            margin-top: 50px;
            margin-left: 40px;
            margin-bottom: 100px;
            transition: background-color 0.3s, color 0.3s;
        }

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
            animation: modal-open .5s;
        }

        .modal-content {
            background: #4e3421;
            margin-top: 50px;
            width: 50%;
            margin-left: auto;
            margin-right: auto;
            padding: 8px 24px;
            border-radius: 4px;
            z-index: 4;
        }

        .modal-header {
            font-weight: 500;
            padding: 10px 0;
            font-size: 26px;
            color: #f0ead2;
        }

        .modal-header .modal-close {
            float: right;
            font-size: 20px;
            background: #f0ead2;
            border: 0;
            outline: 0;
            padding: 5px 8px;
            border-radius: 50%;
        }

        .modal-body {
            color: #f0ead2;
            padding: 15px 0;
            text-align: center;
        }

        .modal-footer {
            padding: 15px 0;
        }

        .modal-footer .modal-close {
            padding: 8px 16px;
            font-size: 14px;
            border: none;
            outline: none;
            border-radius: 4px;
            color: #3a2618;
            background-color: #f0ead2;
        }


        @keyframes modal-open {
            from{
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes hovershadow {
            to {
                box-shadow: 0 0 25px rgb(87, 41, 21);
            }
        }
        
        .modal-open:hover {
            animation-name: hovershadow;
            animation-duration: 0.5s;
            animation-fill-mode: forwards;
        }
        




 /* footer */

 section{
    padding: 20px;
}

.footer{
    background-color: #3a2618;
    text-align: center;
    padding: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 3.5rem;
    left: 0;
    right: 0;
    bottom: 0;
}

.footer-content h4{
    color: #f0ead2;
    font-size: 20px;
    margin-bottom: 1rem;
}

.footer-content li{
    margin-bottom: 15px;
    display: block;
}

.footer-content li a{
    color: #f0ead2;
}

.footer-content p{
    color: #f0ead2;
}

@media only screen and (max-width: 600px) {
    header {
        padding: 10px;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }
}
