/* ===================== */
/* --- ESTILO GENERAL --- */
/* ===================== */
body {
  background: #f5f5f5;
  color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
  transition: background 0.3s, color 0.3s;
  margin: 0;
  padding: 0;
}

h1 { margin-top: 20px; }

#controls {
  margin-bottom: 15px;
}

#opponent-container {
  margin-bottom: 25px;
}

#controls button, #controls select, #controls input {
  padding: 8px 12px;
  margin: 5px;
  border-radius: 6px;
  border: 1px solid #444;
  cursor: pointer;
  background: #222;
  color: white;
  transition: 0.2s;
}

#controls button:hover,
#controls select:hover,
#controls input:hover {
  background: #333;
}

/* ===================== */
/* --- TABLERO RULETA --- */
/* ===================== */
.roulette-container {
  display: grid;
  grid-template-columns: 60px repeat(12, 60px); /* 0 + 12 números por fila */
  grid-template-rows: repeat(3, 60px);
  gap: 4px;
  justify-content: center;
  padding: 10px;
  border: 2px solid #222;
  border-radius: 12px;
  background: #111;
  margin-bottom: 20px;
}

.number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  color: white;
  transition: 0.2s;
}

.number.red { background: #ff424d; }
.number.black { background: #111; }
.number.green { background: #4caf50; }

.number.selected {
  outline: 3px solid #f5d142;
}

/* ===================== */
/* --- APUESTAS EXTRA --- */
/* ===================== */
.extra-bets {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.extra-bet-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #222;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.extra-bet-btn:hover {
  transform: scale(1.05);
}

.extra-bet-btn.selected {
  background: gold;
  color: black;
}

/* ===================== */
/* --- VIDEO RECOMPENSA --- */
/* ===================== */
#reward-video {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  z-index: 1000;
  border: 3px solid #000;
  border-radius: 10px;
  background-color: black;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* ===================== */
/* --- VIDEOS DESBLOQUEADOS --- */
/* ===================== */
#unlocked-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;          /* espacio entre videos */
  margin: 20px 10px;  /* margen superior/inferior y lateral */
  padding: 10px;
}

#unlocked-videos video {
  width: 250px;        /* ancho fijo, ajustable */
  height: 140px;       /* altura proporcional */
  border-radius: 10px; /* bordes redondeados */
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#unlocked-videos video:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}


/* ===================== */
/* --- MODO OSCURO --- */
/* ===================== */
body.dark {
  background-color: #121212;
  color: #f5f5f5;
}

body.dark .roulette-container {
  border-color: #888;
}

body.dark .number.red { background: #b03030; }
body.dark .number.black { background: #1e1e1e; }
body.dark .number.green { background: #207567; }

body.dark button,
body.dark select,
body.dark input {
  background: #1e1e1e;
  color: #eee;
  border: 1px solid #555;
}

body.dark button:hover {
  background: #333;
}

/* ===================== */
/* --- TRANSICIONES --- */
/* ===================== */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#patreon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: #f96854; /* color oficial de Patreon */
  border: 1px solid #e05b4f;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#patreon-btn:hover {
  background-color: #e05b4f;
}

#patreon-btn .patreon-icon {
  width: 20px;
  height: 20px;
}