@keyframes cuentaAtras{
    0%{
        transform: scale(0.1);
    }
    25%{
        transform: scale(1);
    }
    50%{
        transform: scale(0.4);
    }
    75%{
        transform: scale(1);
    }
    100%{
        transform: scale(0);
    }
}
@keyframes pulso{
    0%{
        transform: scale(1);
    }
    20%{
        transform: scale(0.5);
    }
    40%{
        transform: scale(1);
    }
    60%{
        transform: scale(0.5);
    }
    80%{
        transform: scale(1);
    }
}
@keyframes zoomI{
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.5);
    }
    100%{
        transform: scale(1);
    }
}
@keyframes cambiar {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    20% {
        opacity: 1;
        transform: translateY(0px);
    }
    80% {
        opacity: 1;
        transform: translateY(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}
@keyframes desvanecer{
    0%{
        transform: translateY(0px);
    }
    100%{
        transform: translateY(2000px);
    }
}
@keyframes colorLetra{
    0%{
        color: black;
    }
    50%{
        color: white;
    }
    100%{
        color: black;
    }
}
@keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@font-face {
    font-family: 'bakso';
    src: url(../fonts/Bakso\ Menu\ TTF.ttf);
}
@font-face{
    font-family: 'bright';
    src: url(../fonts/Bright\ Dusty.otf);
}
@font-face {
    font-family: 'night';
    src: url(../fonts/Night\ Clash.otf);
}
@font-face {
    font-family: 'regal';
    src: url(../fonts/Regal\ Palms.otf);
}
@font-face {
    font-family: 'sunday';
    src: url(../fonts/Sunday\ Drift.otf);
}
body{
    overflow: hidden;
    background-color: rgb(255, 25, 25);
    font-family: 'night';
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
}
main{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
}
span{
    display: inline-block;
}
.intro{
    position: absolute;
    background-color: black;
    width: 100vw;
    height: 100vh;
    color: white;
    align-items: center;
    justify-content: center;
    z-index: 999999999999;
}
.intro.desvanecer {
    animation: desvanecer 2s ease-in-out forwards;
}
.intro h1{
    animation: cuentraAtras 1s ease-in-out;
    font-size: 60px;
}
.fondo-texto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}
.fila {
    overflow: hidden;
    white-space: nowrap;
}
.fila span {
    display: inline-block;
    animation: scrollHorizontal 10s linear infinite;
    font-family: 'sunday';
    
}
.seccion {
    display: none;
}
.seccion.activo {
    display: flex;
}
.main-cumple-titulo{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.main-cumple{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    backdrop-filter: blur(2px);
    padding: 100px;
    z-index: 1;
    font-family: 'regal';
    color: white;
}
.main-cumple-titulo h1{
    font-size: 60px;
    color: white;
}
.main-cumple-video video{
    position: relative;
    border-radius: 5px;
    width: 300px;
}
.main-cumple-video video:hover{
    animation: pulso 5s ease-in-out
}
.texto-flotar{
    border: 2px solid black;
    border-radius: 3.5px;
    padding: 10px 15px;
    text-align: center;
    font-size: 25px;
}
.controles-botones{
    position: absolute;
    bottom: 3%;
    display: flex;
    gap: 50px;
    z-index: 2;
}
.siguiente{
    padding: 15px 20px;
    background-color: red;
    border: none;
    font-size: 18px;
    border-radius: 5px;
    box-shadow: 2px 4px 6px rgba(255, 36, 36, 0.713);
    transition: transform 0.2s ease;
    color: white;
}
.anterior{
    padding: 15px 20px;
    background-color: rgb(255, 255, 255);
    border: none;
    font-size: 18px;
    border-radius: 5px;
    box-shadow: 2px 4px 6px rgba(255, 255, 255, 0.713);
    transition: transform 0.2s ease;
    color: red;
}
.siguiente:hover, .anterior:hover{
    transform: scale(0.9);
}
.main-recuerdos{
    background-color: black;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.matrix{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.main-cuadrito{
    position: absolute;
    backdrop-filter: blur(2px);
    font-family: 'night';
    padding: 30px;
    border-radius: 10px;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}
.main-fotos{
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.main-fotos h1{
    font-size: 60px;
    color: white;
}
.corcho {
    background-color: rgb(177, 123, 85);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.03) 0px,
        rgba(0,0,0,0.03) 2px,
        transparent 2px,
        transparent 10px
    );
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
    min-height: 50vh;
    z-index: 999;
    backdrop-filter: blur(5px);
}
.foto:nth-child(5) {
    grid-column: 1 / 2;
}
.foto:nth-child(6) {
    grid-column: 2 / 3;
}
.foto:nth-child(7) {
    grid-column: 3 / 4;
}
.foto {
    position: relative;
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
    width: 200px;
    height: 250px;
    transform: rotate(var(--rot));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999;
}
.marcar{
    position: absolute;
    top: 45%;
    left: 16%;
    width: 22%;
    z-index: 2;
}
.marcar1{
    position: absolute;
    top: 60%;
    left: 10%;
    width: 22%;
    z-index: 2;
    color: white;
    font-size: 40px;
}
.marcar1 img{
    width: 50px;
}
.foto:nth-child(1) { --rot: -3deg; }
.foto:nth-child(2) { --rot: 2deg; }
.foto:nth-child(3) { --rot: -1.5deg; }
.foto:nth-child(4) { --rot: 3deg; }
.foto:nth-child(5) { --rot: -2deg; }
.foto:nth-child(6) { --rot: 1.5deg; }
.foto:nth-child(7) { --rot: -2.5deg; }
.foto:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 6px 6px 20px rgba(0,0,0,0.5);
}
.foto img {
    width: 100%;
    display: block;
}
.chincheta {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 40% 40%, #ff6b6b, #c0392b);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.chincheta::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: #888;
    border-radius: 0 0 2px 2px;
}
.contador-amistad {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: red;
    font-family: 'regal';
    z-index: 999;
    background-color: #dbdbdb62;
    padding: 50px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    font-size: 30px;
}
.numero-dias {
    font-size: 120px;
    font-family: 'regal';
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    animation: zoomI 2s linear infinite;
}
.carta-seccion {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sobre {
    position: relative;
    width: 300px;
    height: 200px;
    background: #f5e6c8;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
    transition: height 0.6s ease;
}
.sobre-tapa {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 100px solid #e8c99a;
    transform-origin: top;
    transition: transform 0.6s ease;
    z-index: 2;
}
.sobre.abierto .sobre-tapa {
    transform: rotateX(180deg);
}
.sobre-cuerpo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: 'regal';
    color: #888;
    font-size: 18px;
}
.carta {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: white;
    padding: 20px;
    border-radius: 3px;
    font-family: 'regal';
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
    pointer-events: none;
    z-index: 2;
}
.sobre.abierto .carta {
    opacity: 1;
    transform: translateY(-60px);
    pointer-events: all;
}