body {
    background-color: black;
}

h2 {
    text-align: center;
    width: 20%;
    margin: auto;
}

p {
    border: 2px solid black;
    padding: 1%;
    border-radius: 10px;
    background-color: rgb(0, 0, 0, 0.5);
}

video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 3;
}


.dive {
    position: absolute;
    float: right;

    width: 20em;
    height: auto;
    margin-left: 50%;
    margin-top: 3.5%;
    color: white;
    padding: 10px;
    border-radius: 8px;
}


#guardNom {
    width: 10em;

    height: 4em;
}

.texto-encima {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: white;

    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}



.texto-encima input {
    width: 50%;
    padding: 10px;
    margin-top: 6em;
    margin-bottom: 6em;
    font-size: 18px;
    border: 1px solid white;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8);
}

#text {
    text-align: center;
    position: absolute;
    font-size: 20px;
    width: 20em;
    margin: auto;
    padding: 1%;
    margin-top: 2em;
    color: white;

}

#textcont {
    position: absolute;
    width: 15em;
    height: 1em;
    z-index: 4;
    left: 8%;
    color: white;
    padding: auto;
    font-size: 18px ;
    text-align: center;
}

.cent {

    border: 2px solid black;
    border-radius: 10px;
    width: 60%;
    height: 60vh;
    margin: auto;
    margin-top: 3%;
    flex-direction: column;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;

}
/* Responsive container: keep aspect ratio on small screens */
@media (max-width: 1024px) {
    .cent {
        width: 90%;
        height: calc(90vw * 0.5625);
        max-height: 70vh;
    }
}
@media (max-width: 768px) {
    .cent {
        width: 95%;
        height: calc(95vw * 0.5625);
        max-height: 70vh;
    }
}

#combate {
    position: absolute;
    z-index: 4;
    width: 14em;
    height: 2em;
    margin-top: 10%;
    right: 38%;
}


#mainC {
    position: absolute;
    margin-top: 6em;
    left: 12%;
    width: auto;
    height: 90%;
}

#enem {
    position: absolute;
    margin-top: 8em;
    right: 10em;
    width: auto;
    height: 60%;
    z-index: 1;
}
@media (max-width: 768px) {
    #mainC {
        margin-top: 4em;
        left: 5%;
        height: 80%;
    }
    #enem {
        margin-top: 5em;
        right: 4em;
        height: 50%;
    }
}



#barrap,
#barrae {
    position: absolute;
    width: 35%;
    height: 1em;
    border-radius: 10px;
    z-index: 5;

}
@media (max-width: 768px) {
    #barrap,
    #barrae {
        width: 45%;
        height: 1.2em;
    }
}

#barrap {
    left: 12%;
}

#barrae {
    right: 12%;
}

#barrap p,
#barrae p {
    position: absolute;
    left: 5%;

    color: white;
    text-align: center;
}

#textoro {
    width: 5em;
    height: 1em;
    position: absolute;
    z-index: 3;
    left: 65%;
    top: 55%;
    color: white;
    text-align: center;
}
@media (max-width: 768px) {
    #textoro {
        left: 60%;
        top: 58%;
    }
}

#perdido {
    position: absolute;
    color: red;
    width: 70%;
    font-size: 90px;
    font-family: 'Franklin Gothic Medium';
    text-align: center;
    left: 15%;
    z-index: 4;
    top: 25%;
}

#ganado {
    position: absolute;
    color: green;
    width: 70%;
    font-size: 90px;
    font-family: 'Franklin Gothic Medium';
    text-align: center;
    left: 15%;
    z-index: 4;
    top: 25%;
}
@media (max-width: 768px) {
    #perdido, #ganado {
        font-size: 12vw;
        left: 10%;
        width: 80%;
        top: 30%;
    }
}

.cent2 {
    border-radius: 10px;
    width: 60%;
    height: 30vh;
    margin: auto;
    padding: 1%;

}

button {
    width: 15em;
    height: 4em;
    border: 2px solid #4a342a;
    background-color: #2e2c2a;
    color: #d7c6a8;
    font-size: 16px;
    font-family: "Georgia", serif;
    letter-spacing: 1px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}
@media (max-width: 768px) {
    button {
        width: 40vw;
        max-width: 18em;
        height: 3.2em;
        font-size: 14px;
    }
}

button:hover {
    background-color: #3b3836;
    color: #fff0d6;
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.6);
}

.sa {
    width: 40em;
    height: 4em;
    margin-top: 1%;
    border: 2px solid #6b2d2d;
    background-color: #3a2929;
    color: #d7c6a8;
    font-size: 16px;
    font-family: "Georgia", serif;
    letter-spacing: 1px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

.sa:hover {
    background-color: #5a1f1f;
    color: #fff0d6;
    transform: scale(1.08);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.6);
}

#genshinNever {
    width: 7em;
    height: 2.5em;
    margin: auto;
    margin-top: 22em;
    margin-bottom: 1em;
    position: absolute;
    z-index: 4;
    border: 2px solid #4a342a;
    background-color: #2e2c2a;
    color: #d7c6a8;
    font-size: 14px;
    font-family: "Georgia", serif;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}
@media (max-width: 768px) {
    #genshinNever {
        margin-top: 16em;
    }
}

#genshinNever:hover {
    background-color: #3b3836;
    color: #fff0d6;
    transform: scale(1.1);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.6);
}

.but {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.but2 {
    width: 90%;
    height: 4em;
    margin: auto;
    display: flex;
    flex-direction: row;
}



#mAtq {
    width: 7em;
    height: 3em;
    border: 2px solid #4a342a;
    background-color: #2e2c2a;
    color: #d7c6a8;
    font-size: 16px;
    font-family: "Georgia", serif;
    letter-spacing: 1px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

#mAtq:hover {
    background-color: #2600ff;
    color: #fff0d6;
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.6);
}

#mVida {
    width: 7em;
    height: 3em;
    border: 2px solid #4a342a;
    background-color: #2e2c2a;
    color: #d7c6a8;
    font-size: 16px;
    font-family: "Georgia", serif;
    letter-spacing: 1px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

#mVida:hover {
    background-color: #ff0000;
    color: #fff0d6;
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.6);
}



#divva {
    position: absolute;
    z-index: 4;
    width: 18em;
    margin-left: 50%;
    margin-top: 35%;
}



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

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: red;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out, sparkle 3s infinite ease-in-out;
    box-shadow: 0 0 10px 2px rgb(179, 116, 0);
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.2);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px 4px red;
    }
}