/* styles.css */

/* Body styling */
body {
  font-family: 'Bangers', sans-serif;
  background-image: url('images/fortnite-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFFFFF; /* Set default text color to white for better contrast */
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Game container */
#game-container {
  margin: 50px auto;
  width: 100%;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  padding: 30px;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Headings */
h1 {
  color: #FFFFFF;
  text-shadow: 2px 2px #000000;
  font-size: 2em; /* Responsive font size */
}

/* Welcome screen */
#welcome-screen {
  margin-top: 20px;
}

#player-name {
  padding: 10px;
  font-size: 1em;
  width: 100%;
  font-family: 'Bangers', sans-serif;
  box-sizing: border-box;
}

#start-button {
  margin-top: 10px;
  padding: 15px 30px;
  font-size: 1.5em;
  cursor: pointer;
  background-color: #FFD700; /* Yellow color */
  color: #000000; /* Black text */
  border: none;
  border-radius: 10px;
  font-family: 'Bangers', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* Game screen */
#question {
  font-size: 1.5em;
  margin-bottom: 20px;
}

#options button {
  display: block;
  width: 100%;
  margin: 10px auto;
  padding: 15px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: #1E90FF; /* DodgerBlue */
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: 'Bangers', sans-serif;
  box-sizing: border-box;
}

#feedback {
  font-size: 1.2em;
  margin-top: 20px;
}

.highlight {
  color: #FF4500; /* OrangeRed */
  font-weight: bold;
}

#next-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: #FFD700; /* Yellow color */
  color: #000000;
  border: none;
  border-radius: 10px;
  font-family: 'Bangers', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

#score-display {
  font-size: 1.2em;
  margin-top: 20px;
}

/* Music Control Button */
#music-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: #FFD700; /* Yellow color */
  color: #000000;
  border: none;
  border-radius: 10px;
  font-family: 'Bangers', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* Leaderboard */
#leaderboard-container {
  margin-top: 20px;
}

#leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Bangers', sans-serif;
  font-size: 1em;
}

#leaderboard th,
#leaderboard td {
  border: 1px solid #ddd;
  padding: 8px;
}

#leaderboard th {
  background-color: #800080; /* Purple */
  color: #FFFFFF;
}

#leaderboard td {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000000;
}

#play-again-button {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1.5em;
  cursor: pointer;
  background-color: #FFD700; /* Yellow color */
  color: #000000;
  border: none;
  border-radius: 10px;
  font-family: 'Bangers', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#question, #feedback, #options button {
  animation: fadeIn 1s;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  /* Adjust container size */
  #game-container {
    margin: 20px auto;
    padding: 20px;
  }

  /* Adjust font sizes */
  h1 {
    font-size: 1.8em;
  }

  #question {
    font-size: 1.4em;
  }

  #feedback,
  #score-display {
    font-size: 1.1em;
  }

  /* Adjust button sizes */
  #start-button,
  #next-button,
  #play-again-button,
  #music-button {
    font-size: 1.3em;
    padding: 12px 24px;
  }

  #options button {
    font-size: 1.1em;
    padding: 12px;
  }

  /* Adjust input field */
  #player-name {
    font-size: 0.9em;
    padding: 8px;
  }
}

@media only screen and (max-width: 480px) {
  /* Further adjustments for very small screens */
  h1 {
    font-size: 1.5em;
  }

  #question {
    font-size: 1.2em;
  }

  #feedback,
  #score-display {
    font-size: 1em;
  }

  #start-button,
  #next-button,
  #play-again-button,
  #music-button {
    font-size: 1.1em;
    padding: 10px 20px;
  }

  #options button {
    font-size: 1em;
    padding: 10px;
  }

  #player-name {
    font-size: 0.8em;
    padding: 6px;
  }

  /* Leaderboard adjustments */
  #leaderboard th,
  #leaderboard td {
    padding: 6px;
  }

  #leaderboard th {
    font-size: 0.9em;
  }

  #leaderboard td {
    font-size: 0.8em;
  }
}

/* Hover Effects for Non-Touch Devices */
@media (hover: hover) and (pointer: fine) {
  #options button:hover {
    background-color: #4682B4; /* SteelBlue */
  }
}
