* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Audiowide', sans-serif;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(10px) brightness(0.35); /* Размытие и затемнение */
}

body {
  opacity: 0;
  transition: opacity 1.5s ease;
  background: #261B37;
  color: white;
  min-height: 100vh;
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hexagon container */
.hexagon {
  width: 150px;
  height: 170px;
  background: #7245B1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.logo {
  width: 90%;
}

/* Content styling */
.content {
  text-align: center;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.login-form input {
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 20px;
  border: none;
  background: #1a1a1a;
  color: #9B66E5;
  width: 250px;
  transition: all 0.3s ease;
}

.login-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #7245B1;
}

.login-form input::placeholder {
  color: #5a4b69;
  font-family: 'Audiowide', sans-serif;
}

.login-form button {
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 19px;
  border: none;
  background: #7245B1;
  color: white;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.5s ease;
}

.login-form button:hover {
  background: #a769ff; 
}

.admin-session-controls input {
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 20px;
  border: none;
  background: #1a1a1a;
  color: #9B66E5;
  width: 250px;
}
/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #502C7C;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.icon img {
  width: 60%;
}

.icon:hover {
  transform: scale(1.2);
}

.container {
  position: relative;
  z-index: 2;
  margin: 50px auto;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

#admin-panel {
  background: rgba(114, 69, 177, 0.95);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 500px;
  display: none;
}

#admin-panel.visible {
  display: block;
  animation: fadeIn 0.5s ease;
}

#admin-panel label {
  display: block;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

#team-select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: #2A1B3D;
  color: white;
  border: 2px solid #502C7C;
  border-radius: 8px;
}

#assign-hijacker,
#start-game {
  width: 100%;
  margin: 10px 0;
  padding: 15px;
  font-size: 1.1rem;
}

/* Кнопка выхода */
#logout-button {
  display: block;
  padding: 10px 15px; /* Уменьшаем размер */
  background: #b42834;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 1rem; /* Уменьшаем шрифт */
  transition: background 0.3s;
  width: auto; /* Автоматическая ширина */
  max-width: 100px; /* Максимальная ширина */
}

#logout-button:hover {
  background: #d43845;
}

.leave-session-btn {
  display: block;
  padding: 10px 15px; /* Уменьшаем размер */
  background: #b42834;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 1rem; /* Уменьшаем шрифт */
  transition: background 0.3s;
  width: auto; /* Автоматическая ширина */
  max-width: 500px; /* Максимальная ширина */
}

.leave-session-btn:hover {
  background: #d43845;
}

.info-block {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  margin: 20px 0;
  backdrop-filter: blur(5px);
}

.greeting {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 15px;
}

.menu-button {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.disabled-button {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

.map-button {
  background: #7245B1;
  color: white;
  transition: background 0.3s;
}

.map-button:hover{
  background: #a769ff
}
.session-form {
  background: rgba(0,0,0,0.7);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  width: 80%;
  max-width: 400px;
}

.session-form input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #7245B1;
  background: #2A1B3D;
  color: white;
}

#roulette-container {
  height: 300px;
  width: 200px;
  overflow: hidden;
  position: relative;
  margin: 20px auto;
  border: 2px solid #fff;
}

.session-form input,
#admin-session-controls input {
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 20px;
  border: none;
  background: #1a1a1a;
  color: #9B66E5;
  width: 100%; /* Ширина на весь контейнер */
  margin: 10px 0;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.session-form input:focus,
#admin-session-controls input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #7245B1;
}

.session-form input::placeholder,
#admin-session-controls input::placeholder {
  color: #5a4b69;
  font-family: 'Montserrat', sans-serif;
}

.roulette-container {
  height: 100px;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
  perspective: 1000px;
}

.roulette-wheel {
  position: absolute;
  width: 100%;
  text-align: center;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.roulette-item {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  backface-visibility: hidden;
}

.hunter {
  background: linear-gradient(135deg, #1e5799 0%,#207cca 100%);
}

.hijacker {
  background: linear-gradient(135deg, #d31111 0%,#f06d06 100%);
}

@keyframes roulette-spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1000px); }
}

.spinning {
  animation: roulette-spin 3s cubic-bezier(0.1, 0.7, 0.1, 1);
}

/* Анимация остановки */
@keyframes roulette-stop {
  0% { transform: translateY(-1000px); }
  100% { transform: translateY(calc(-50px * var(--stop-position))); }
}

.stopping {
  animation: roulette-stop 1.5s ease-out forwards;
}

/* Звуковые иконки */
.sound-control {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  z-index: 100;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

