@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 1rem 2rem;
  border-bottom: 2px solid #e33c3c;
}

header h1 {
  color: #e33c3c;
  margin: 0;
}

nav button,
nav form button {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background-color: #e33c3c;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

nav button:hover,
nav form button:hover {
  background-color: #ff5a5a;
}

#image-gallery {
  height: 400px;
  width: 100vw;
  background: url('/images/VGGR-FIN.png');
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

#image-gallery h1 {
  font-size: 7rem;
  color: #e33c3c;
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
  letter-spacing: 2px;

  text-shadow:
    0 0 8px rgba(227, 60, 60, 0.5),
    0 0 12px rgba(227, 60, 60, 0.3);
}

main {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 3rem 1rem;
}

.description p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
  line-height: 1.5;
  color: #ccc;
}

.play-btn {
  font-size: 2rem;
  padding: 1rem 3rem;
  background-color: #e33c3c;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.play-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.play-btn:hover:not(.disabled) {
  background-color: #ff5a5a;
}

.leaderboard {
  width: 300px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 15px;
  color: white;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.leaderboard div {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 5px 0;
  border-radius: 8px;
  transition: background 0.3s;
}

.leaderboard div:hover {
  background: rgba(255, 255, 255, 0.1);
}

#leaderboard div.me {
  border: 2px solid #e33c3c;
  background: rgba(227, 60, 60, 0.1);
  box-shadow: 0 0 12px rgba(227, 60, 60, 0.3);
  font-weight: bold;
}

.leaderboard-title {
  text-align: center;
  color: #e9b422;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(236, 203, 53, 0.3);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #e33c3c;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  color: #fff;
}

.modal-content input {
  width: 94%;
  padding: 0.7rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #0d0d0d;
  color: #fff;
}

.modal-content button {
  width: 100%;
  padding: 0.7rem;
  background-color: #e33c3c;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #ff5a5a;
}

.close {
  color: #fff;
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

.admin-btn {
  background-color: #e36b3c;
  transition: 0.3s;
}

.admin-btn:hover {
  background-color: #ff815a !important;
}

/* --- Footer --- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  border-top: 2px solid #e33c3c;
  color: #e33c3c;
  text-align: center;
  font-family: 'Varela Round';
  font-size: 0.9rem;
  padding: 10px 0;
  box-shadow: 0 -5px 20px rgba(227, 60, 60, 0.2);
  z-index: 10;
}

footer p {
  margin: 0;
  text-shadow: 0 0 10px rgba(227, 60, 60, 0.3);
  letter-spacing: 1px;
  opacity: 0.9;
}

footer p:hover {
  opacity: 1;
  text-shadow: 0 0 15px rgba(227, 60, 60, 0.6);
}