/* General Body Styling */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Game Container Styling */
#game-container {
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Title and Headings */
h1 {
  color: #fff; /* White color for better contrast */
}
h2, h3 {
  color: #ffd700;
  margin: 10px 0;
  font-weight: bold;
}

/* Buttons Styling */
button {
  background: #ff6f61;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 5px;
}

button:hover {
  background: #ff8a75;
  transform: scale(1.05);
}

button:active {
  background: #e65b50;
}

/* Scoreboard Styling */
#scoreboard {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#scoreboard h3 {
  margin: 0;
  font-size: 22px;
  text-shadow: 1px 1px 2px black;
}

#scoreboard p {
  margin: 5px 0;
  font-size: 18px;
  font-weight: bold;
}

/* Question Area */
#high-brow-question, #low-brow-question, #answer {
  margin: 10px 0;
  font-size: 40px;
  text-shadow: 1px 1px 2px black;
}

.hidden {
  display: none;
}

/* Inputs for Team Names */
input[type="text"] {
  padding: 10px;
  margin: 10px 5px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  width: 45%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation Buttons */
#navigation button {
  background: #007bff;
  font-size: 16px;
  margin: 10px 5px;
}

#navigation button:hover {
  background: #5aa0ff;
}

/* Final Score Screen */
#score-screen {
  text-align: center;
}

#team1-final-score, #team2-final-score, #team3-final-score, #team4-final-score, #team5-final-score {
  font-size: 24px;
  margin: 15px 0;
  color: #ffd700;
}

.team-score {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.team1 {
  color: red;
}

.team2 {
  color: blue;
}

.team3 {
  color: green;
}

.team4 {
  color: purple;
}

.team5 {
  color: orange;
}

.team-button {
  padding: 10px 15px;
  margin: 5px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white; /* White text color for better contrast */
}

.team1 {
  background-color: red; /* Red button for Team 1 */
}

.team2 {
  background-color: blue; /* Blue button for Team 2 */
}

.team3 {
  background-color: green; /* Green button for Team 3 */
}

.team4 {
  background-color: purple; /* Purple button for Team 4 */
}

.team5 {
  background-color: orange; /* Orange button for Team 5 */
}

/* Optional: Change button appearance when hovered */
.team-button:hover {
  opacity: 0.8; /* Slightly reduce opacity on hover */
}

/* Media Queries for Responsiveness */

/* For devices with width 768px and below (tablets and mobile phones) */
@media screen and (max-width: 768px) {
  /* Game Container */
  #game-container {
    width: 95%;
    padding: 15px;
  }

  /* Button Styling */
  button {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* Team Inputs */
  input[type="text"] {
    width: 80%;
    font-size: 14px;
  }

  /* Scoreboard Styling */
  #scoreboard h3 {
    font-size: 18px;
  }

  /* Question Area */
  #high-brow-question, #low-brow-question, #answer {
    font-size: 18px;
  }

  /* Final Score */
  #team1-final-score, #team2-final-score, #team3-final-score, #team4-final-score, #team5-final-score {
    font-size: 20px;
  }

  /* Team Buttons */
  .team-button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* For smaller mobile devices with width 480px and below */
@media screen and (max-width: 480px) {
  /* Game Container */
  #game-container {
    width: 100%;
    padding: 10px;
  }

  /* Button Styling */
  button {
    padding: 8px 15px;
    font-size: 12px;
  }

  /* Team Inputs */
  input[type="text"] {
    width: 90%;
    font-size: 12px;
  }

  /* Scoreboard Styling */
  #scoreboard h3 {
    font-size: 16px;
  }

  /* Question Area */
  #high-brow-question, #low-brow-question, #answer {
    font-size: 16px;
  }

  /* Final Score */
  #team1-final-score, #team2-final-score, #team3-final-score, #team4-final-score, #team5-final-score {
    font-size: 18px;
  }

  /* Team Buttons */
  .team-button {
    font-size: 12px;
    padding: 6px 10px;
  }
}
/* Modal content */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
  padding-top: 60px;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;  /* Reduce the margin for a smaller pop-up */
  padding: 15px;  /* Reduce the padding */
  border: 1px solid #888;
  width: 25%;  /* Reduce the width of the modal */
  text-align: left;
  color: black;  /* Set text color to black */
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
