body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.card-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.card {
    width: 300px;
    height: 300px;
    border: 2px solid #000;
    background-color: #fff;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border-radius: 10px;
    overflow: hidden; /* Added this line */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Added this line */
}

.card:hover {
    transform: scale(1.05);
}

.hidden {
    display: none;
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
}

#play-again {
    margin-top: 10px;
    width: 100%;
    max-width: 620px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#play-again:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.image-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    height: 100%;
    margin: 10px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden; /* Added this line */
}

.image-container p {
    margin: 10px;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: none;
}

/* Mobile Styles */
body {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
  }
  
  .container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  
  /* Tablet Styles */
  @media (min-width: 768px) {
    body {
      font-size: 18px;
    }
  
    .container {
      padding: 40px;
    }
  }
  
  /* Desktop Styles */
  @media (min-width: 1024px) {
    body {
      font-size: 20px;
    }
  
    .container {
      padding: 60px;
    }
  }
  