.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#game-board {
  overflow: hidden;
  position: relative;
  width: 640px;
  height: 800px;
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-image: url(../img/IronHacklaga.png);
  background-size: cover;
  background-position: center;
 
}
.main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body {
  background-image: url(../img/space\ bg.jpg);
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
}

img {
  width: 100%;
  height: 100%;
}

.start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 55px;
  background: linear-gradient(135deg, #0cffe6, #5f94d5);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  font-family: "Monospace", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 500px;
}

.start-btn2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 55px;
  background: linear-gradient(135deg, #ff8a65, #f70a6a);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  font-family: "Monospace", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 500px;
}

.start-btn:hover {
  background: linear-gradient(135deg, #5f94d5, #0cffe6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.start-btn2:hover {
  background: linear-gradient(135deg, #f50057, #ff8a65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.start-btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.start-btn2:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#game-over {
  overflow: hidden;
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 600px;
  height: 765px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ff4d4d;
  font-size: 50px;
  font-family: "Monospace", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  display: none;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.restart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 55px;
  background: linear-gradient(135deg, #00e5ff, #048f7c);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  font-family: "Monospace", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-top: 20px;
}

.restart-btn:hover {
  background: linear-gradient(135deg, #00bfa5, #00e5ff);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.restart-btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.restart-btn2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 55px;
  background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  font-family: "Monospace", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-top: 20px;
}

.restart-btn2:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff4d4d);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.restart-btn2:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffeb3b, #ff9800);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.form-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  font-family: "Monospace", sans-serif;
}

.form-field {
  width: 100%;
  margin-bottom: 15px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 16px;
  font-family: "Monospace", sans-serif;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #ff9800;
  outline: none;
}

.submit-btn {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  font-family: "Monospace", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #ff5722, #ff9800);
}

.hidden {
  display: none;
}

#highscore {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 20px;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
  color: #fff;
  font-family: "Arial", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 2px solid #ffffff66;
}

#highscore h2.form-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid #ffcc00;
  padding-bottom: 10px;
}

#highscore-board {
  padding: 10px;
  font-size: 1.2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 10px;
}

#highscore-board div {
  margin: 10px 0;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-weight: bold;
  color: #ffcc00;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

#highscore-board div:hover {
  background-color: rgba(255, 204, 0, 0.3);
}

.red-buff {
  background-image: url('../img/player.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: radial-gradient(
    circle,
    rgba(251, 63, 63, 1) 0%,
    rgba(255, 238, 238, 1) 100%
  );
  animation: glow1 0.2s infinite;
}

@keyframes glow1 {
  0% {
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(251, 63, 63, 1);
  }
  100% {
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0);
  }
}

.green-buff {
  background-image: url('../img/rockets.gif');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
 
  background-color: radial-gradient(
    circle,
    rgba(63, 251, 66, 1) 0%,
    rgba(238, 255, 250, 1) 100%
  );
  animation: glow2 0.2s infinite;
}

@keyframes glow2 {
  0% {
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(63, 251, 66, 1);
  }
  100% {
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0);
  }
}

.blue-buff {
  background-image: url('../img/speed.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: radial-gradient(
    circle,
    rgba(63, 206, 251, 1) 0%,
    rgba(238, 252, 255, 1) 100%
  );
  animation: glow3 0.2s infinite;
}

@keyframes glow3 {
  0% {
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(63, 206, 251, 1);
  }
  100% {
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0);
  }
}

.enemy {
  position: absolute;
  background-image: url("../img/enemy.png");
  background-size: cover;
  background-position: center;
}

.explosion {
  position: absolute;
  background-image: url("../img/xplosion2.gif");
  background-size: cover;
  background-position: center;
}

#score {
  font-family: Arial, sans-serif;
  font-size: 24px;
  color: #ffcc00;

  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.tutorial {
  width: 400px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  color: #fff;
  font-family: "Monospace", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.tutorial-section {
  margin-bottom: 20px;
}

.tutorial h2 {
  font-size: 1.5em;
  color: #ffcc00;
  margin-bottom: 15px;
  text-align: center;
}

.tutorial h3 {
  font-size: 1.2em;
  color: #ff8a65;
  margin-bottom: 10px;
}

.tutorial-image {
  width: 60px;
  height: 60px;
  margin-right: 10px;
  border-radius: 50%;
}
.tutorial-image1 {
  width: 80px;
  height: 60px;
  margin-right: 10px;
  border-radius: 50%;
}

.enemy-type,
.power-up {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .tutorial {
    display: none;
  }
}

.mute-button {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
}
