@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #341068;
  background-image: repeating-linear-gradient(
    45deg,
    #341068,
    #341068 10px,
    #2a0d54 10px,
    #2a0d54 20px
  );
  font-family: "Montserrat", Arial, sans-serif;
  color: white;
}

#game-container {
  position: relative;
  width: 800px;
  height: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

canvas {
  background: linear-gradient(to bottom, #5425a7, #341068);
}

#start-screen,
#game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(52, 16, 104, 0.9),
    rgba(255, 31, 61, 0.8)
  );
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
}

#game-over {
  display: none;
}

.riley-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.riley-text {
  position: absolute;
  color: rgba(255, 31, 61, 0.15);
  font-size: 72px;
  font-weight: bold;
  transform: rotate(-30deg);
  user-select: none;
}

button {
  background-color: #ff1f3d;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  margin: 8px 2px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #ff1f3d;
}

h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: white;
  text-transform: uppercase;
}

.campaign-message {
  font-size: 20px;
  margin: 20px 0;
  text-align: center;
  max-width: 80%;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 5px;
}

.name-highlight {
  color: #ff1f3d;
  font-weight: bold;
}

.logo-container {
  position: absolute;
  top: 60px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: white;
  border-radius: 5px;
}

#score-display {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 5;
}

.bucc-logo {
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

#controls {
  margin-top: 20px;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 5px;
}

.achievement {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  color: white;
  transform: translateY(100px);
  transition: transform 0.3s ease-out;
  z-index: 5;
}

.achievement.show {
  transform: translateY(0);
}

.stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.stat-box {
  background-color: rgba(255, 31, 61, 0.8);
  padding: 10px;
  border-radius: 5px;
  min-width: 100px;
  text-align: center;
}

#music-control {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  padding: 5px 10px;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.whatsapp-button {
  background-color: #25D366;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 8px 2px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}
.manifesto-button {
  background-color: #ff1f3d;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  margin: 8px 2px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.manifesto-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

/* Add these styles to your style.css file */

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

.name-modal-content {
  background-color: #6B238E;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 80%;
  border: 3px solid #9A3DD2;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.name-modal-content h2 {
  color: white;
  margin-top: 0;
  margin-bottom: 20px;
}

#player-name-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #9A3DD2;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #f0f0f0;
}

#name-submit {
  background-color: #FF1F3D;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#name-submit:hover {
  background-color: #FF4C64;
}

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

.leaderboard-content {
  background-color: #6B238E;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  border: 3px solid #9A3DD2;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-height: 80vh;
  overflow-y: auto;
}

.leaderboard-content h2 {
  color: white;
  margin-top: 0;
  margin-bottom: 20px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  margin-bottom: 20px;
}

.leaderboard-table th, 
.leaderboard-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #9A3DD2;
}

.leaderboard-table th {
  background-color: #9A3DD2;
}

.leaderboard-table tr:nth-child(even) {
  background-color: rgba(154, 61, 210, 0.3);
}

#close-leaderboard {
  background-color: #FF1F3D;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#close-leaderboard:hover {
  background-color: #FF4C64;
}

/* Leaderboard button styles */
.leaderboard-button {
  background-color: #9A3DD2;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s;
}

.leaderboard-button:hover {
  background-color: #B554F5;
}
