@font-face {
  font-family: 'FredokaOne';
  src: url('/Fonts/FredokaOne-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'FlappyFont';
  src: url('/Fonts/PUNTUA_DSPL.ttf') format('truetype');
}
@font-face {
  font-family: 'Cheveuxdange';
  src: url('/Fonts/Cheveuxdange.ttf') format('truetype');
}

body {
  font-family: Arial, sans-serif;
  background-color: #00b140;
  transition: background-color 0.5s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  user-drag: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -moz-drag-over: none;
  -moz-window-dragging: no-drag;
  -moz-user-drag: none;
  -moz-user-select: -moz-none;
  draggable: false;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.spin-trigger {
  pointer-events: auto;
  position: relative;
}
.hold-to-spin-hint {
  position: absolute;
  letter-spacing: 1px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'FredokaOne', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: fadeInOut 2s ease-in-out infinite;
  pointer-events: none !important;
  touch-action: none;
  z-index: 1;
  transition: opacity 0.3s ease-out;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.hold-to-spin-hint i {
  color: #00ff88;
}

.image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2% 0;
  min-height: 500px;
}

.skin-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}
.skin-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.skin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgb(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 1.2rem;
  pointer-events: auto;
  margin: 0;
  position: relative;
}
.skin-button:hover {
  background: rgb(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1);
  border-color: #00ff88;
}
.skin-change {
  animation: changeSkin 0.5s ease;
}

#oiia-image {
  max-width: 500px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#oiia-image:hover {
  transform: scale(1.05);
}

#current-timer {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 3rem;
  font-family: 'Arial Black', sans-serif;
  background: linear-gradient(45deg, #00ff88, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px white;
  pointer-events: none;
  font-weight: 900;
  letter-spacing: 2px;
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: all 0.15s ease;
  min-width: 120px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#current-timer.heartbeat {
  animation: heartBeat 1s infinite;
}

.bottom-section {
  display: grid;
  grid-template-rows: auto auto 1fr;
  position: relative;
}

.spin-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.epilepsy-warning {
  font-family: 'FredokaOne', sans-serif;
  background: rgba(255, 0, 0, 0.2);
  color: white;
  padding: 8px 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 0, 0, 0.3);
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  animation: warningPulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.acknowledge-btn {
  font-family: 'FredokaOne', sans-serif;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-color: #000000;
  padding: 5px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  white-space: nowrap;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.acknowledge-btn:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}
.epilepsy-warning.hidden {
  display: none;
}

@keyframes warningPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.menu-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
  width: 15px;
  margin-right: 4px;
}
.equalizer-bar {
  width: 2px;
  background: #00ff88;
  animation: equalize 1s ease-in-out infinite;
  border-radius: 1px;
}
.equalizer-bar:nth-child(1) { animation-delay: 0.0s; }
.equalizer-bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes equalize {
  0% { height: 3px; }
  50% { height: 12px; }
  100% { height: 3px; }
}
@keyframes rgbRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.music-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 5px auto;
  padding: 5px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0, 0, 0, 0.5);
  max-width: 350px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: rgbBorder 4s linear infinite;
  background-clip: padding-box;
  position: relative;
}
.music-player::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  z-index: -1;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,0,0,0.4), rgba(255,165,0,0.4), rgba(255,255,0,0.4), rgba(0,128,0,0.4), rgba(0,0,255,0.4), rgba(75,0,130,0.4), rgba(238,130,238,0.4));
  animation: rgbRotate 4s linear infinite;
}
.music-player:hover {
  background: rgb(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1);
  border-color: #00ff88;
}
.music-player button {
  color: white;
  font-size: 1rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  cursor: pointer;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.music-player button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}

.song-select {
  font-family: 'FredokaOne', sans-serif;
  letter-spacing: 1px;
  flex: 1;
  padding: 8px 15px;
  border: none;
  border-radius: 10px;
  background: rgb(0, 0, 0, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-size: 0.9rem;
  min-width: 130px;
  border: 1px solid rgb(0, 0, 0, 0.5);
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.song-select:hover, #play-mode-songs button:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}
.song-select option {
  background: darkgreen;
  color: white;
}

.mode-toggles {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 10px;
}

.menu-select {
  display: none;
}

.mode-toggle input {
  display: none;
}
.round-toggle-label {
  cursor: pointer;
  color: white;
  font-size: 1rem;
  width: 20px;
  height: 20px; 
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 10px;
  background: rgb(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.round-toggle-label:hover {
  background: rgb(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1);
  border-color: #00ff88;
}



/* MOBILE *//* MOBILE *//* MOBILE *//* MOBILE *//* MOBILE *//* MOBILE *//* MOBILE *//* MOBILE *//* MOBILE */
@media (max-width: 768px) {
  #oiia-image {
    max-width: 270px;
  }

  .skin-button {
    width: 40px;
    height: 40px;
    font-size: 12px;
    background: rgb(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgb(0, 0, 0, 0.2);
  }

  .skin-button.skin-prev {
    transform: translateX(0px);
  }

  .skin-button.skin-next {
    transform: translateX(0px);
  }

  .skin-button:hover.skin-prev {
    transform: translateX(0px) translateY(-2px);
  }

  .skin-button:hover.skin-next {
    transform: translateX(0px) translateY(-2px);
  }

  .skin-buttons {
    width: 100%;
  }

  #current-timer {
    font-size: 2.5rem;
  }

  #leaderboard-container, #chat-container {
    width: 95%;
    margin: 50px auto;
  }

  .image-container {
    padding: 0;
    margin-top: -100px;
    margin-bottom: -100px;
  }

  .mode-toggles .menu-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mode-toggles {
    justify-content: center;
    width: 100%;
  }

  @keyframes orbit {
    from {
      transform: rotate(0deg) translate(120px) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translate(120px) rotate(-360deg);
    }
  }
  
  .menu-container {
    margin: 10px 0;
  }
  
  .epilepsy-warning {
    flex-direction: column;
    gap: 10px;
    padding: 12px 15px;
  }

  .epilepsy-warning span {
    text-align: center;
  }
}
