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

@font-face {
  font-family: pixel_nums;
  src: url('../fonts/SuperMario.ttf');
}
html,
body {
  zoom: 100%;
  max-zoom: 100%;
  min-zoom: 100%;
  background: #21757e;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  height: 100%;
  width: 100%;
  color: #f0f0f0;
  font-family: pixel_nums;
}
#game {
  margin: 0px;
  padding: 0px;
  height: 100%;
  width: 100%;
  font-family: pixel_nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Noscript alert */
.alertpopup {
  position: fixed;
  z-index: 1039;
  width: 35vw;
  max-width: 1440px;
  background: rgba(50, 50, 50, 0.25);
  box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.15);
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-right: 4rem;
  padding-left: 4rem;
  margin-left: 50%;
  margin-right: 50%;
  font-family: 'Quicksand', sans-serif;
}
.blurbg{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    background: rgba(50, 50, 50, 0.15);
    display: grid;
    box-sizing: content-box;
    place-items: center;
}

#name-form {
  background-color: rgba(133, 133, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  color: white;
  font-family: Arial, sans-serif;
  max-width: 300px;
}

#player-name {
  padding: 10px;
  margin: 15px 0;
  width: 100%;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

#start-game {
  padding: 10px 25px;
  background-color: #21626b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#start-game:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#start-game:not(:disabled):hover {
  background-color: #21626b;
}

#error-message {
  margin-top: 10px;
  font-size: 14px;
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #21757e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 200px;
  height: auto;
  margin-bottom: 30px;
  animation: pulse 1.5s infinite ease-in-out;
}

.preloader-progress {
  width: 300px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  margin: 0 auto;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0;
  background: #ffffff;
  border-radius: 5px;
  transition: width 0.3s ease;
}

.preloader-text {
  margin-top: 15px;
  font-family: 'pixel_nums', sans-serif;
  color: white;
  font-size: 18px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}