body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: url("https://images.pexels.com/photos/10838922/pexels-photo-10838922.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
  background-color: rgb(170, 170, 170);
}


#winning-number-display {
  display: none;
}


h1 {
  margin-top: 20px;
  color: #fff;
}

#grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  width: 1200px;
  margin: 20px auto;
}

.number-btn {
  width: 100%;
  padding: 25px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  background-color: #ddd;
  color: #333;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.number-btn:hover {
  background-color: #ccc;
}

.incorrect {
  background-color: red;
  color: white;
}

.correct {
  background-color: #b1d4e0;
  color: white;
}

/* New Game and Reveal Buttons */
#buttons-container {
  margin-top: 20px;
}

#new-game-btn,
#reveal-btn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #b1d4e0;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px;
}

#new-game-btn:hover,
#reveal-btn:hover {
  background-color: #b1d4e0;
}

.main-container {
  background-color: #b1d4e0;
  width: 30%;
  padding: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  align-items: center;
  flex-direction: center;
}
/* Authentication Styling */
#auth-container {
  display: block;
  margin-top: 50px;
}

#auth-container input {
  padding: 10px;
  margin: 5px;
  font-size: 16px;
}

#auth-container button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #b1d4e0;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#auth-container button:hover {
  background-color: #45a049;
}

#error-message {
  color: red;
  font-size: 14px;
}

/* Game container */
#game-container {
  display: none;
}

/* Settings Form */
#settings-container {
  margin-top: 50px;
}

#settings-container input {
  padding: 10px;
  margin: 10px;
  font-size: 16px;
}

#settings-container button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #b1d4e0;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#settings-container button:hover {
  background-color: #b1d4e0;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.4); /* Black with transparency */
  padding-top: 60px;
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  text-align: center;
}

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

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

/* Title Style */
.modal h2 {
  color: #4caf50;
  font-size: 2em;
  margin-bottom: 10px;
}

/* Message Style */
.modal p {
  font-size: 1.2em;
  color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Adjust the grid layout for smaller screens */
  #grid {
    grid-template-columns: repeat(5, 1fr); /* 5 columns on medium screens */
    width: 90%;
  }

  .number-btn {
    padding: 20px;
    font-size: 18px;
  }

  #auth-container input,
  #auth-container button,
  #settings-container input,
  #settings-container button {
    width: 90%; /* Make inputs and buttons full width */
    font-size: 14px;
    padding: 12px;
  }

  /* Center the auth container */
  .main-container {
    width: 80%; /* Make the main container smaller on mobile */
    padding: 4rem;
  }

  /* Adjust the modal content */
  .modal-content {
    width: 90%; /* Make modal take more space on smaller screens */
    padding: 15px;
  }

  /* Increase font sizes slightly */
  .modal h2 {
    font-size: 1.5em;
  }

  .modal p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  /* For very small screens (phones in portrait) */
  #grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on small screens */
  }

  .number-btn {
    padding: 15px;
    font-size: 16px;
  }

  /* Further adjust container widths and padding */
  .main-container {
    width: 90%;
    padding: 3rem;
  }

  #auth-container input,
  #auth-container button,
  #settings-container input,
  #settings-container button {
    width: 100%; /* Full width for mobile */
    font-size: 12px;
    padding: 10px;
  }

  /* Modal content further adjustments */
  .modal-content {
    width: 95%; /* Increase the width for smaller devices */
    padding: 10px;
  }

  .modal h2 {
    font-size: 1.2em;
  }

  .modal p {
    font-size: 0.9em;
  }
  

}
