
body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 50px; 
  background-image: url('images/greyson-joralemon-9IBqihqhuHc-unsplash\ \(2\).jpg'); 
  background-size: cover; 
 
  background-repeat: no-repeat;
}

#home-page h1 {
  color: white;
  font-size: 42px; 
  margin-bottom: 30px; 
  font: italic small-caps bold 50px/2 cursive;
  
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 50px; 
  justify-content: center;
  margin-top: 100px;
}

.card {
  padding: 50px 100px;
  background-color: rgba(255, 255, 255, 0.7); 
  color: #1b263b;
  font-size: 28px; 
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card:hover {
  background-color: #ffd60a; 
  color: #003566;
  transform: scale(1.15);
}


#home-page {
  display: block;
}

#game-page {
  display: none;
}

.game-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px; 
  margin-top: 100px;
  
}


.grid {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  gap: 2px;
  justify-content: center;
  width: 300px; 
  height: 300px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 30px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  margin-left: 20px;
  border-radius: 15px;
}

.grid div {
  width: 60px;
  height: 60px;
  background-color: black;
}

.game-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 300px; 
  height: 300px; 
  background-color: rgba(255, 255, 255, 0.7); 
  padding: 30px;
  margin-left: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
}

#category-title {
  font-size: 24px;
  color: #333;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); 
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.8);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  text-align: center;
  
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#result-image {
  max-width: 100%;
  height: auto;
  margin-left: 500px;
}

#lives {
  font-size: 22px; 
  color: red;
  margin-bottom: 20px; 
}

#message {
  font-size: 22px;
  color: white;
  padding-top: 30px;
}

button {
  margin: 15px;
  padding: 12px 24px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

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

#reveal-button {
  background-color: #28a745;  
  color: white;
  border-radius: 5px;
}

#reveal-button:hover {
  background-color: #218838;  
}


#submit-button {
  background-color: red; 
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

#submit-button:hover {
  background-color: darkred;  
}


#go-back-button {
  background-color: rgb(237, 213, 213);  
  color:black;
  border-radius: 20px;
}

#go-back-button:hover {
  background-color: gray;  
}


#guess-input {
  padding: 12px;
  width: 250px; 
  font-size: 18px;
}
@media (max-width: 768px) {
  body {
    padding: 20px;
    background-size: cover;
    background-position: center;
    height: 100vh;
  }

  #home-page h1 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 50px;
  }

  .card {
    font-size: 18px;
    padding: 15px 30px;
    width: 80%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: 0.3s;
  }

  .card:hover {
    background-color: #ffd60a;
    color: #0d1b2a;
    transform: scale(1.05);
  }

  .game-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    background: none;
  }

  .grid, .game-right {
    width: 80%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(5, 50px);
    gap: 2px;
    justify-content: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .grid div {
    width: 50px;
    height: 50px;
    background-color: black;
  }

  .game-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    width: 75%;
    height: 40%;
  }

  #guess-input {
    width: 80%;
    padding: 12px;
    font-size: 18px;
  }

  #result-image {
    max-width: 80%;
    margin: 20px auto;
  }

  button {
    margin: 15px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
  }

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

  #game-page {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: block;
  }

  #message {
    color: black;
  }
}
