@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&display=swap');

body {
  background: radial-gradient(#0f0f0f, #000);
  color: white;
  font-family: "Doto", Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#menu-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 255, 204, 0.1);
  backdrop-filter: blur(15px);
  padding: 40px 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 10;
}

#menu-screen.fade-out-up {
  opacity: 0;
  transform: translate(-50%, -70%);
  pointer-events: none;
}

.menu-title {
  font-size: 3.5rem;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  margin-bottom: 30px;
}

.menu-label {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #ccc;
}

.menu-select,
.menu-button {
  width: 100%;
  font-size: 1.2rem;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  transition: 0.2s ease;
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.1);
}

.menu-select:hover,
button:hover {
  background: #333;
}


button {
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00ffcc;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

button {
  font-size: 1.2rem;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  transition: 0.2s ease;
  backdrop-filter: blur(5px);
  box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.fade-out-up {
  animation: fadeOutUp 0.5s forwards ease;
}

@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70%);
  }
}

#game-ui {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#game-ui.visible {
  opacity: 1;
  transform: translateY(0);
}


#game-ui {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#game-ui.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .menu-title {
    font-size: 2.5rem;
  }

  .menu-select,
  .menu-button {
    font-size: 1rem;
    padding: 10px;
  }

  #menu-screen {
    width: 95%;
    padding: 30px 20px;
  }
} 
  
  
  #game-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  #countdown, #winner-text {
    font-size: 48px;
    height: 60px;
    margin: 10px;
  }
  
  canvas {
    border: 2px solid white;
    margin: 10px 0;
    cursor: cell;
    max-width: 100%;
    height: auto;
  }  
  
  button, select {
    font-size: 20px;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    font-family: "Doto", Arial, sans-serif;
  }
  
  footer {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.6;
  }
  
  a {
    color: white;
    text-decoration: underline;
    transition: 0.2s ease;
  }

  a:hover {
    color: #00ffcc;
    text-decoration: none;
  }

  @media (max-width: 600px) {
    #menu-screen {
      width: 90%;
      padding: 20px;
    }
  
    #menu-screen h1 {
      font-size: 3rem;
    }
  
    #menu-screen select, button {
      width: 100%;
      font-size: 18px;
      padding: 8px;
    }
  
    #countdown, #winner-text {
      font-size: 36px;
    }
  
    footer {
      font-size: 14px;
    }
  }

  #multiplayer-btn {
    cursor: not-allowed;
    position: relative;
  }

  #multiplayer-btn:hover::after {
    content: "coming soon";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.8);
    color: white;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    white-space: nowrap;
    z-index: 100;
    text-transform: lowercase;
  }

#coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

#coming-soon h1 {
  font-size: 3rem;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  margin-bottom: 20px;
}

#coming-soon p {
  font-size: 1.2rem;
  color: #ccc;
}
