body {
  text-align: center;
  background-color: #011F3F;
}

h1 {
  line-height: 1.5;
}

h2 {
  line-height: 1.2;
}

#toggleAudio {
  font-size: x-large;
  margin-left: auto;
  margin-right: 8%;
  text-align: center;
  width: 50px;
  cursor: pointer;
}

#level-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.5rem;
  margin:  3% 5% 2% 5%;
  color: #FEF2BF;
}

.container {
  display: block;
  width: 70%;
  margin: auto;
}

.btn {
  margin: 25px;
  display: inline-block;
  height: 200px;
  width: 200px;
  border: 10px solid black;
  border-radius: 20%;
  cursor: pointer;
}

.game-over {
  background-color: red;
  opacity: 0.8;
}

.red {
  background-color: red;
}

.green {
  background-color: green;
}

.blue {
  background-color: blue;
}

.yellow {
  background-color: yellow;
}

.pressed {
  box-shadow: 0 0 20px white;
  background-color: grey;
}

.primary-button {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  border: 2px solid black;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 16px 40px 40px;
}

.hide-element {
  display: none;
}

#closeRules {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  border: 2px solid black;
  border-radius: 5px;
  padding: 5px 20px;
  margin-top: 20px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
}

.overlay-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f5f5f5;
  padding: 40px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  border-radius: 10px;
}

.rules-description {
  font-size: 1.2rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  margin-bottom: 20px;
  text-align: left;
}

/* 404 page styles */
.error-container {
  min-height: 90vh;
  display: flex;      
  flex-direction: column;  
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FEF2BF;
}

.error-code {
  font-family: 'Press Start 2P', monospace;
  font-size: 3.5rem;
  color: #FEF2BF;
}

.error-message {
  font-size: 2rem;
  font-weight: 600;
  color: #FEF2BF;
  font-family: 'Courier New', Courier, monospace;
}

.back-home-button {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  border: 2px solid black;
  border-radius: 5px;
  padding: 10px 30px;
  background-color: #FEF2BF;
  color: #011F3F;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.back-home-button:hover {
  background-color: #011F3F;
  color: #FEF2BF;
  border-color: #FEF2BF;
}

/* Responsive styles */
@media (max-width: 1000px) {
  .container {
    width: 80%;
  }


  .btn {
    width: 150px;
    height: 150px;
    margin: 16px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 90%;
  }

  .btn {
    width: 100px;
    height: 100px;
    margin: 12px;
  }

  #level-title {
    font-size: 2rem;
  }

  .primary-button {
    font-size: 1rem;
    padding: 8px 16px;
    margin: 16px 20px;
  }

  .rules-description {
    font-size: 1rem;
  }
}