/* Video de Fondo */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('/assets/background.jpg') no-repeat center center/cover;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in-out;
}

.container {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    animation: slideUp 1s ease-in-out;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInTitle 1.5s ease-in-out 0.5s forwards;
}

p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.8s forwards;
}

.form-group {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-in-out 1s forwards;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

input {
    width: 80%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    transition: box-shadow 0.3s ease;
}

input:focus {
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.8);
    outline: none;
}

button {
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    background-color: #1e90ff;
    color: white;
    transition: background-color 0.3s, transform 0.2s;
    animation: fadeIn 1s ease-in-out 1.2s forwards;
}

button:hover {
    background-color: #4682b4;
    transform: scale(1.05);
}

.hidden {
    display: none;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#startGame {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease-in-out;
}

#startGame.show {
    opacity: 1;
    transform: scale(1);
    animation: pulse 1.5s infinite;
}