/* Prevzaté a upravené z /kolo/kolo.css pre potreby vyraďovacieho kolesa */

.whell-to-hell {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.wheel-container {
  position: relative;
  width: 500px;
  margin: 20px auto;
}

#wheel {
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.arrow {
  position: absolute;
  top: calc(50% - 5px);
  right: -20px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid var(--green);
  z-index: 10;
}

#spinBtn {
  margin: 20px 0;
  padding: 15px 40px;
  font-size: 20px;
  background: var(--green);
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.5s;
  position: relative;
}
#spinBtn:hover { background: #000; color: var(--green); }
#spinBtn:disabled { opacity: 0.5; cursor: not-allowed; }
#spinBtn::before {
  content: '';
  background-image: url(/kolo/whell-black.svg);
  background-size: contain;
  width: 30px;
  height: 32px;
  display: block;
  position: absolute;
  left: 5px;
  background-repeat: no-repeat;
  transition: all 3s;
  animation-name: rotate;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
#spinBtn:hover::before {
  background-image: url(/kolo/whell-green.svg);
  animation-name: rotate;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#resultBlock {
  text-align: center;
  padding: 20px;
  background: #000000;
  color: var(--green);
  border: 5px solid var(--green);
  margin-top: 20px;
  border-radius: 0px;
  width: 400px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
p#resultText {
  font-size: 1.6em;
  font-weight: bold;
}

/* Štýly pre zväčšovacie tlačidlo */
.maximus {
  display: inline-block;
  padding: 10px 15px;
  background: #000;
  color: var(--green);
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8em;
  transition: background 0.3s;
  border: 0;
}
.maximus:hover { background: var(--green); color: #000; }

#mainSection:fullscreen {
  background-color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
#mainSection:fullscreen h1,
#mainSection:fullscreen p {
  color: white;
}
#mainSection:fullscreen .whell-to-hell {
  transform: scale(1.2);
  margin: 40px 0;
}

.selector { display: inline-block; }

audio {
  max-width: 300px;
  top: 16px;
  position: relative;
  height: 40px;
}

/* Vstup mien */
.names-input-wrap {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}
.names-input-wrap .column-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#namesInput {
  padding: 12px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 160px;
}
#namesInput:focus-visible {
  outline: none;
  box-shadow: 0px 0px 10px 3px #fff, inset 3px 3px 5px -2px #000000bd;
}
.names-input-wrap #generuj {
  align-self: flex-start;
}

/* Modálne okno pri vyradení mena */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  border: 5px solid #000;
}
.eliminate-name {
  font-size: 2em;
  font-weight: bold;
  background: #f0f0f0;
  border: 2px dashed #333;
  padding: 15px;
  margin: 15px 0;
  word-break: break-word;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-eliminate {
  background-color: #d80000;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}
.cta-eliminate:hover { background-color: #000; }
.modal-content .close-btn {
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  display: inline-block;
}
.modal-content .close-btn:hover { background: #555; }

@media (max-width: 560px) {
  .wheel-container, #wheel { width: 100%; max-width: 500px; }
  #resultBlock { width: 100%; }
}
