html, body {
  margin: 0;
  background-color: #94ee9b;
}
canvas {
  display: block;
  margin: 100px auto 0; /* centers horizontally and adds 40px margin on top */
  border: 2px solid white; /* optional, for visibility */
}

/* Navigation Bar */
nav {
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem 3rem;
  background-color: darkgreen;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.3);
}

nav a{
  margin: auto;
  font-family: "Comic Sans MS", cursive, sans-serif;
  text-decoration: underline;
  font-size: 2rem;
  font-weight: 800;
  color: #caf0a7;
}

nav  a:hover {
  color: #93c5fd;
  text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.8);
}

/* Game Styling */
    /* Game Board Styles */
    .game-board {
        margin-top: 100px;
        justify-content: center;
        scale: 1.1;
        align-items: center;
        display: grid;
        grid-template-columns: repeat(6, 100px);
        grid-template-rows: repeat(6, 100px);
        gap: 10px
    }
    
    @media (max-width: 1900px) {
    .game-board {
      margin-top: 0px;
      scale: 0.9;
      }
    canvas {
      margin-top: 0px;
    }
     }

    /* Card Styles */
    .card {
        width: 100px;
        height: 100px;
        perspective: 1000px;
    }

    /* Card Inner Styles */
    .card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.6s;
    }

    /* Card Inner Flipped Styles */
    .card-inner.flipped {
        transform: rotateY(180deg);
    }

    /* Card Front and Back Styles */
    .card-front {
        width: 100%;
        height: 100%;  
        position: absolute;
        backface-visibility: hidden;
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        background: url(../matching/images/soccer.jpg);
        background-size: contain;
    }

    .card-back {
        width: 100%;
        height: 100%;  
        position: absolute;
        backface-visibility: hidden;
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        transform: rotateY(180deg);
        background-position: center;;
        background-size: contain;;
    }
@media (max-width: 1200px) {
 body {
  scale: 0.8;
 }
}