body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    min-height: 100vh;
    text-align: center;

    background: linear-gradient(
        to bottom,
        #0b1d3a,
        #123c69
    );
    color: white;

    overflow-x: hidden;
}

header {
    padding-top: 80px;
}

.christmas-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #ff0000,
        0 0 20px #00ff00;
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}


.description {
    font-size: 18px;
    color: #f1f1f1;
}

.main-btn {
    padding: 15px 25px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    background: #c0392b;
    color: white;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
}

.main-btn:hover {
    background: #a93226;
}


/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.modal-content {
    background: white;
    width: 80%;
    max-width: 600px;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

/* Pantalla de selección de país */
.modal-content {
    background-color: #0f172a; /* azul muy oscuro */
    color: #f8fafc;           /* blanco suave */
}

/* Título */
.modal-content h2 {
    color: #ffffff;
}

/* Texto secundario */
.modal-content p {
    color: #cbd5e1;
}

/* Botones */
.modal-content button {
    background-color: #22c55e; /* verde navideño */
    color: #ffffff;
}

.modal-content button.cancel {
    background-color: #ef4444; /* rojo navideño */
}

.country-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.country-item {
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.country-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: 0.2s;
}

.country-item span {
    margin-top: 8px;
    font-size: 14px;
}

.country-item.selected img {
    border: 3px solid #2ecc71; /* verde marcador */
}

.country-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
}

.country-list input {
    transform: scale(1.2);
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.confirm-btn, .cancel-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

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

.cancel-btn {
    background: #777;
    color: white;
}
.country-list label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.flag-icon {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.country-name {
    font-size: 18px;
    font-weight: 500;
}

/*Apartado de canciones*/

#songsSection {
    margin-top: 40px;
}

#songsList {
    list-style: none;
    padding: 0;
}

#songsList li {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#songsList li:hover {
    background: #eee;
}

#playerContainer iframe {
    margin-top: 20px;
    width: 100%;
    max-width: 560px;
    height: 315px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .countries {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        max-width: 900px;
        margin: auto;
    }

    .country img {
        width: 80px;
        height: 80px;
    }
}
/* MODAL BASE */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* OCULTO */
.hidden {
  display: none;
}

/* CONTENIDO */
.modal-content {
  background: #111;
  padding: 15px;
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  position: relative;
}

/* BOTÓN CERRAR */
.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
