
:root {
    --primary-bg-color: #E74C3C;
    --lighter-bg-color: #EA6D60;
    --darker-bg-color: #D43727;
    --darker-bg-color-100: #810f00;
    --secondary-bg-color: #FFD54F;
    --text-color: white;
    --info-icon-color: var(--secondary-bg-color);
    --button-color-01: #272626;
    --countdown-bg-color: #000000;
    --countdown-bg-color-2: #353535;
    --location-bg-color: #000000;
    --location-bg-color-2: #353535;
    --footer-bg-color: #720B3A;
    --footer-bg-lighter-color:rgb(213, 66, 132);
}

@font-face {
    font-family: 'Archivo Black';
    src: url('../fonts/archivoblack-regular-webfont.woff2') format('woff2'),
        url('../fonts/archivoblack-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VCR OSD Mono';
    src: url('../fonts/VCR_OSD_MONO_1.001.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Anni Use Your Telescope';
    src: url('../fonts/AnnieUseYourTelescope.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.vcr-font {
    font-family: 'VCR OSD Mono', monospace;
}

.AnniUseYourTelescope-font {
    font-family: 'Anni Use Your Telescope', monospace;
}


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box; 
}

body {
    font-family: 'Archivo Black', sans-serif;
    background: linear-gradient(to bottom, #f9f3e7, #f9e8d4, #f9ddc2);
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-bg-color) #f9f3e7;
}

/* Estilos para scrollbar personalizado */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f9f3e7;
    border-radius: 20px;
    box-shadow: inset 2px 2px 5px #b5b5b5, inset -5px -5px 10px #ffffff;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-bg-color);
    border-radius: 20px;
    box-shadow: none;
}

/* Estilo para el botón de volver arriba */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 100%;
    z-index: 9999;
    border: none;
    outline: none;
    background-color: var(--button-color-01);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    display: none;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
    background-color: var(--secondary-bg-color);
}

.hero-section {
    background-image: url('../images/Banner.jpg');
    background-size: cover;
    background-position: center;
    height: 700px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (max-width: 576px) and (orientation: portrait) {
    .hero-section {
        background-image: url('../images/Banner-Mobile.jpg');
    }
}

.section {
    padding: 50px 0;
    background: linear-gradient(to right, var(--lighter-bg-color), var(--primary-bg-color), var(--darker-bg-color));
    border-bottom: 1px solid #ddd;
    color: var(--text-color);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cumpleanero-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: url('../images/Photo.jpg');
    background-size: cover;
    background-position: center;
    margin: 20px auto;
    border: 5px solid var(--secondary-bg-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s;
}

.cumpleanero-photo:hover {
    transform: scale(1.1);
}

.info-icon {
    color: var(--info-icon-color);
    margin-right: 10px;
    transition: transform 0.5s;
}

.info-icon:hover {
    transform: rotate(30deg);
}

audio {
    width: 100%;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.gallery img:hover {
    transform: scale(1.1);
}

.btn-dark {
    background-color: #333;
    border-color: #333;
    transition: background-color 0.5s, border-color 0.5s;
}

.btn-dark:hover {
    background-color: var(--secondary-bg-color);
    border-color: var(--secondary-bg-color);
}

/* Estilos para el efecto parallax */
.parallax{
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Desactivar parallax en dispositivos iOS */
.ios-device .parallax {
    background-attachment: scroll; 
    background-size: cover; 
    background-position: center;
}

/* Estilo para el mapa */
#map {
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid var(--primary-bg-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, #000000, #808080);
    max-width: 100%;
    overflow-x: hidden;
}

/* Estilos para mejorar inputs en móviles */
@media (max-width: 576px) {
    .form-control {
        padding-left: 2.75rem;
    }
}

/* Estilo para los iconos internos de los inputs */
.input-icon {
    position: absolute;
    left: 10px;
    top: calc(75% - 0.5em);
    pointer-events: none;
    color: #000;
    font-size: 1.2rem;
}

.form-control {
    padding-left: 2.75rem;
}

.bounce {
    transition: transform 0.5s;
}

.bounce:hover {
    transform: scale(1.1);
}

#audioControl {
    position: relative;
}

/* Nuevos Estilos */

#Logo {
    width: 500px;
    height: 500px;
    background-image: url('../images/Logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0px auto;
    /* transition: transform 0.5s; */
}

#Logo:hover,
#Logo:active {
    animation: shake 0.6s;
    /* transform: scale(1.1); */
}

@keyframes shake {
    0%, 100% { transform: scale(1.1) translate(0, 0) rotate(0); }
    20% { transform: scale(1.12) translate(-5px, 0) rotate(-1deg); }
    40% { transform: scale(1.14) translate(5px, 0) rotate(1deg); }
    60% { transform: scale(1.16) translate(-5px, 0) rotate(0); }
    80% { transform: scale(1.18) translate(5px, 0) rotate(-1deg); }
}

#Personaje01 {
    width: 80%;
    height: 80%;
}

#Message01 {
    font-size: 70px;
}

#Message02 {
    font-size: 32px;
}

.event-icons {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px auto;
}

/* Mobile */
@media (max-width: 576px) {
    #Logo {
        width: 330px;
        height: 330px;
    }

    #Message01 {
        font-size: 48px;
    }

    #Message02 {
        font-size: 22px;
    }
}

#Section-Information {
background: radial-gradient(circle, var(--lighter-bg-color), var(--primary-bg-color), var(--darker-bg-color)), url("../patterns/bg-pattern-o-transparent.svg"); 
background-blend-mode: overlay;
}


#Section-Information .section-content {
opacity: 1;
}

#Section-Theme-Song {
background: url("../patterns/bg-pattern-theme-song.jpg"); 
background-size: 600px 600px;
background-repeat: repeat;
animation: moveBackground 60s linear infinite; 
}

@keyframes moveBackground {
0% {
    background-position: 0% 0%;
}
25% {
    background-position: 25% 50%;
}
50% {
    background-position: 50% 100%;
}
75% {
    background-position: 75% 50%;
}
100% {
    background-position: 0% 0%;
}
}

#Section-Birthday {
background: linear-gradient(to right, var(--lighter-bg-color), var(--primary-bg-color), var(--darker-bg-color)), url("../patterns/bg-curve.png"); 
background-blend-mode: overlay;
}

#Section-Gallery {
background: linear-gradient(to right, var(--lighter-bg-color), var(--primary-bg-color), var(--darker-bg-color)), url("../patterns/overlay-pattern-big.png"); 
background-blend-mode: overlay;
}

#Section-Location {
background:  url("../patterns/bg-pattern-location.webp"); 
background-size: 600px 600px;
animation: moveBackgroundInverse 60s linear infinite; 
}


@keyframes moveBackgroundInverse {
0% {
    background-position: 100% 0%;
}
25% {
    background-position: 50% 25%;
}
50% {
    background-position: 100% 50%;
}
75% {
    background-position: 50% 75%;
}
100% {
    background-position: 100% 0%;
}
}

#Section-Gifts {
    background: radial-gradient(circle, var(--lighter-bg-color), var(--primary-bg-color), var(--darker-bg-color)), url("../patterns/bg-pattern-o-transparent.svg"); 
    background-blend-mode: overlay;
}

#Section-Confirmation {
    padding-top: 350px;
    background: url("../images/bg-confirmation.jpg"); 
    background-size: cover;
    background-position: top;
    height: 980px;
}

#Section-ImportantNotes {
    background: radial-gradient(circle, var(--footer-bg-lighter-color), var(--footer-bg-color), var(--footer-bg-color)), url("../patterns/bg-pattern-o-transparent.svg"); 
    background-blend-mode: overlay;
}

#Section-Footer {
    background: var(--footer-bg-color);
    padding: 20px;
}


/* Countdown Timer*/
#Section-CountdownTimer {
background: radial-gradient(circle, var(--countdown-bg-color-2), var(--countdown-bg-color), var(--countdown-bg-color-2)), url("../patterns/bg-pattern-o-transparent.svg"); 
background-blend-mode: overlay;
}

.time-section {
display: flex;
gap: 18px; 
justify-content: center;
align-items: center;
text-align: center;
background-color: transparent;            
}

.time-label {
font-size: 0.6em;
opacity: 0.7;
width: 60px;
background-color: transparent;    
}

#countdownMessage {
font-size: 1.5em;
font-weight: bold;
color: #FFD700; 
text-align: center;
overflow-wrap: break-word;
word-break: break-word;
margin-bottom: 0px;
white-space: normal;
max-width: 100%;
display: inline-block;
}

textarea.form-control {
resize: none; /* Desactiva el cambio de tamaño manual */
padding-left: 2.75rem; /* Espacio para el ícono */
}

#wishCounter {
font-size: 0.9em; /* Tamaño más pequeño */
text-align: right;
display: block;
margin-top: 5px;
}

/* Loader container */
#loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 10000;
}

/* Logo */
#loader-logo {
width: 100px;
height: auto;
margin-bottom: 20px;
}

/* Rainbow spinner */
.rainbow-spinner {
width: 50px;
height: 50px;
border: 6px solid transparent;
border-top: 6px solid red;
border-radius: 50%;
animation: spin 1s linear infinite, rainbow 3s linear infinite;
}

/* Spinner rotation */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Rainbow color change */
@keyframes rainbow {
0% { border-top-color: red; }
16% { border-top-color: orange; }
33% { border-top-color: yellow; }
50% { border-top-color: green; }
66% { border-top-color: blue; }
83% { border-top-color: indigo; }
100% { border-top-color: violet; }
}

/* Adjust logo size for portrait orientation */
@media (orientation: portrait) {
#loader-logo {
    width: 50vw; 
}
}

#locationIframe {
width: 100%;
max-width: 100%;
}

#playModal {
z-index: 1051;
display: flex;
align-items: center;
justify-content: center; 
background-color: rgba(0, 0, 0, 0.8);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

#playModal .modal-content {
background: transparent;
border: none;
display: flex; 
align-items: center; 
justify-content: center;
}

#playToggleIcon {
width: 300px;
height: auto;
cursor: pointer;
transition: transform 0.3s ease;
}

#playToggleIcon:hover {
transform: scale(1.1);
}

.fs-14 {font-size: 14px;}
.fs-16 {font-size: 16px;}
.fs-18 {font-size: 18px;}
.fs-20 {font-size: 20px;}
.fs-22 {font-size: 22px;}
.fs-24 {font-size: 24px;}
.fs-26 {font-size: 26px;}

#toggleAudio {
position: fixed;
top: 10px;
right: 10px;
width: 60px;
height: 60px;
border: none; /* Sin borde */
z-index: 1100;
cursor: pointer;
display: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
background-color: transparent;
outline: none; /* Elimina el borde de enfoque */
}

.ios-device  #toggleAudio {
top: -10px;
right: -10px;
width: 100px;
height: 100px;
}

#toggleAudio:hover {
transform: scale(1.1);
}

#toggleAudio img {
width: 100%;
height: 100%;
object-fit: contain;
margin: auto;
display: block;
}

/* Animación de rebote */
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
} 

.gift-options {
display: flex;
justify-content: center;
gap: 20px;
}

.gift-icon {
width: 150px;
height: auto;
transition: transform 0.3s ease;
cursor: pointer;
}

.gift-icon:hover {
transform: scale(1.1);
}

.hidden {
display: none;
}

/* General styles */
#Section-ImportantNotes {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Imagen del ícono */
.important-note-icon {
    flex: 0 0 auto;
    margin-right: 15px;
}

.note-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.important-note-text {
    flex: 1;
}

.note-text {
    font-size: 16px;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 576px), (orientation: portrait) {
    .d-flex.align-items-center.flex-wrap {
        flex-direction: column; 
        text-align: center;
    }

    .important-note-icon {
        margin: 0 auto 15px auto;
    }

    .note-image {
        width: 120px; 
        height: 120px;
    }

    .note-text {
        font-size: 14px;
    }
}


/* Flecha de scroll */
#scrollIndicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    display: none; /* Oculto por defecto */
    animation: bounce 1.5s infinite; /* Animación de rebote */
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -10px); /* Rebote */
    }
}

/* Solo en dispositivos móviles */
@media (max-width: 576px) {
    #scrollIndicator {
        display: block;
    }
}
