:root{
    --letras: rgb(198, 142, 174);
    --bkg: #81260b;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: var(--bkg);
    height: 100%;
    overflow-x: hidden;
}

.pg1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 45rem;
    padding: 20px;
    background-image: url("fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h2 {
    color: var(--bkg);
    margin-bottom: 20px;
    font-family: "Schoolbell", serif;
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.0); 
    background-image: url(tablon.jpg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0px 0px 10px 0.5px black;
    padding: 1rem;
    border-radius: 10px;
}

h3 {
    color: var(--bkg);
    margin-bottom: 20px;
    font-family: "Schoolbell", serif;
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.0); 
    background-image: url(tablon.jpg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0px 0px 10px 0.5px black;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

video {
    width: 105%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    
}

.sombrero{
    height: 100%;
    width: 100%;
    background-image: url(sombrero.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.pg2{
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    margin: 0;
    max-width: 100%;
    max-height: 100vh;
    background-image: url("2.gif");
    height: 40rem;
    position: relative; /* Asegura que el temporizador esté dentro de este contenedor */
}
.pg3{
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    margin: 0;
    max-width: 100%;
    max-height: 100vh;
    background-image: url("3.gif");
    height: 40rem;
    position: relative; /* Asegura que el boton esté dentro de este contenedor */
}
.pg4{
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    margin: 0;
    max-width: 100%;
    max-height: 100vh;
    background-image: url("4.gif");
    height: 40rem;
    position: relative; /* Asegura que el boton esté dentro de este contenedor */
}
.timer{
    position: absolute;
    top: 25%; /* Ajusta la posición según desees */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0); 
    background-image: url(tablon.jpg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--bkg);
    padding: 1rem;
    font-size: 1rem;
    font-family: "Roboto", serif;
    font-weight: 400;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0.5px black;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-family: "Schoolbell", serif;
    text-shadow: rgb(0, 0, 0) 0.5px 0.5px;
}
.time-value {
    font-size: 2rem; /* Tamaño del valor numérico */
    font-weight: bold;
}
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0.2rem; /* Espaciado entre bloques de tiempo */
}


.btn-ubi{
    background-color: rgba(0, 0, 0, 0.7); /* Fondo translúcido */
    color: var(--letras);
    position: absolute;
    top: 0%; /* Ajusta la posición según desees */
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px 0.5px black;
    border-radius: 20px;
    padding: 0.5rem;
    font-family: "Schoolbell", serif;
    font-size: 1.5rem;
    text-shadow: rgb(0, 0, 0) 1px 1px;
}
.btn-ubi-a{
    text-decoration: none;
    color: #FFF;
}

.btn-ubi2{
    background-color: rgba(0, 0, 0, 0.7); /* Fondo translúcido */
    color: var(--letras);
    position: absolute;
    top: 10%; /* Ajusta la posición según desees */
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px 0.5px black;
    border-radius: 20px;
    padding: 0.5rem;
    font-family: "Schoolbell", serif;
    font-size: 1.5rem;
    text-shadow: rgb(0, 0, 0) 1px 1px;
}
.btn-ubi2-a{
    text-decoration: none;
    color: #FFF;
}

.btn-conf{
    background-color: rgba(104, 31, 31, 0.7); /* Fondo translúcido */
    color: var(--letras);
    position: absolute;
    top: 25%; /* Ajusta la posición según desees */
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px 0.5px black;
    border-radius: 20px;
    padding: 0.5rem;
    font-family: "Schoolbell", serif;
    font-size: 1.5rem;
    text-shadow: rgb(0, 0, 0) 1px 1px;
}
.btn-conf-a{
    text-decoration: none;
    color: #FFF;
}

.btn-music {
    position:absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--letras);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: "Schoolbell", serif;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0px 0px 10px 0.5px black;
    text-shadow: yellow 1px 1px;
}
.btn-music:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.scroll-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.681);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: "Schoolbell", serif;
    font-size: 1.2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

.scroll-message .arrow {
    animation: bounce 1s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}



@media (width > 450px ){
    .pg1, .pg2, .pg3, .pg4{
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;
        margin: 0;
        max-width: 100%;
        max-height: 100vh;

    }
}

@media (min-width: 1024px) {
    .pg1 {
        height: 60rem;
        background-size: contain;
    }

    video {
        max-width: 600px;
    }
}

@media (min-width: 768px) {
    .pg1 {
        height: 50rem;
    }

    video {
        max-width: 500px;
    }
}