/* Alapok */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden; /* ne legyen görgetés */
}

/* Fix háttér */
#fixed-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* ne zavarja a gombot */
}

/* Canvasok */
canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}

/* Canvasok külön */
#c {
  width: auto;
  height: 100%;
}

#c2 {
  width: 100%;
  height: auto;
}

/* Mobil / kis képernyő */
@media (max-width: 600px), (max-aspect-ratio: 1/1) {
  #c {
    width: 100%;
    height: auto;
  }

  #c2 {
    width: auto;
    height: 100%;
  }
}

/* Gomb és bejelentkezés a fa alatt */
#message {
  position: absolute;
  top: 65%; /* a fa alá tolva */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 320px;
}

/* Fejlesztői kód doboz */
#devBox {
  padding: 20px;
  background: rgba(0,0,0,0.45);
  border-radius: 15px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

#devBox input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1rem;
  outline: none;
}

#devBox button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg,#00fff7,#00b8b1);
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  color: #003333;
  box-shadow: 0 0 15px #00fff7;
  transition: 0.3s;
}

#devBox button:hover {
  background: linear-gradient(90deg,#00b8b1,#00fff7);
  color: #fff;
  box-shadow: 0 0 25px #00fff7;
}

/* Hibás kód felugró ablak */
#errorModal {
  display: none;
  margin-top: 15px;
  padding: 10px 15px;
  background: #ff4d4d;
  border-radius: 8px;
  color: #fff;
}

#errorModal button {
  margin-left: 10px;
  padding: 3px 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Mobilra optimalizálás */
@media(max-width: 600px){
  #message {
    top: 60%;
  }
  #devBox {
    width: 90%;
  }
}
