/* === Global === */
* {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }

  .left-panel, .right-panel {
    max-width: 100%;
    flex: 1 1 100%;
  }

  #ruleta-container {
    width: 100%;
    height: auto;
  }
}


/* body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: linear-gradient(to right, #e2e4e6, #004aa5);
  color: #333;
} */

html {
  height: 100%;
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background-image: url('../img/home_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: #333;
}

/* === Navbar === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background: linear-gradient(to right, #1904a5, #1b1f94);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
  flex-wrap: wrap;
}

.navbar-left img {
  height: 50px;
  max-width: 100%;
}

.navbar-center {
  flex-grow: 1;
  text-align: center;
}

.navbar h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* === Layout === */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
  justify-content: center;
}

.left-panel,
.right-panel {
  flex: 1 1 400px;
  max-width: 600px;
}

/* === Card Form === */
.card {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card h5 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 420px;
  padding: 10px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  width: auto;
  min-width: 140px;
  transition: 0.2s;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0069d9;
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background-color: #e0a800;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

#ruleta-container {
  position: relative;
  max-width: 90vw;    /* Máximo 90% del ancho viewport */
  max-height: 90vh;   /* Máximo 90% del alto viewport */
  width: 750px;
  height: 750px;
  margin: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

#ruleta {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
}

#flecha {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #ff5252;
  z-index: 10;
}

#centro0-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  z-index: 5;
  border-radius: 50%;
}
#centro-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 135px;
  height: 135px;
  transform: translate(-50%, -50%);
  z-index: 5;
  border-radius: 50%;
}

/* === Floating Buttons === */
.floating-button {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 999;
}

#btnCompartir {
  right: 80px;
  background-color: #007bff;
}

#btnVerGanadores {
  right: 20px;
  background-color: #28a745;
}

.left-panel {
  flex: 1 1 0%;
  max-width: 350px;
}

.right-panel {
  flex: 1 1 100%;
  max-width: 900px;
}

.floating-button:hover {
  filter: brightness(1.2);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}
