#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #555;
    transition: opacity 0.5s ease;
    transform: translateZ(0);
    will-change: opacity, transform;
}

.spinner {
    animation: spin 5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

body, html {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #a1d490 0%, #c9a66b 50%, #80b4d9 100%);
    overflow-x: hidden;
    font-family: 'Baloo 2', sans-serif;
}

body.hide {
    overflow: hidden;
    max-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

h1, h2 {
    font-family: 'Baloo 2', cursive;
    text-align: center;
}

p {
    text-align: center;
}

.section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
    font-weight: bold;
    background-size: cover;
    background-repeat: no-repeat;
}

.section.jungle {
    background-image: url("/assets/images/bg_savana.jpg");
}

.section.jungle *,
.section.land * {
    margin-top: auto;
}

.section.land {
    background-image: url("/assets/images/bg_artic.jpg");
    color: #4a4a4a;
}

.section.water {
    background-image: url("/assets/images/bg_water.webp");
    background-color: #80b4d9;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 1.2rem;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.animal {
    width: 100px;
    height: 100px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
    user-select: none;
    margin: 1rem;
}

.land .animal {
    width: 80px;
    height: 80px;
}

.animal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animal-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.invitation {
    height: 100vh;
    background: #fbeec1;
    color: #4a4a4a;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    font-size: 1.5rem;
    position: relative;
}

/* Confetti simples */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f9a825;
    top: 0;
    left: 50%;
    animation: confetti-fall 3s linear infinite;
    border-radius: 3px;
}

.floating {
    position: absolute;
    width: 90px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.deco3 {
    top: 6%;
    left: 20%;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.deco2 {
    bottom: 18%;
    right: 4%;
    transform: rotate(20deg) scale(0.9);
    animation-delay: 1s;
}

.deco1 {
    top: 5%;
    right: 0;
    width: 30%;
    transform: rotate(-25deg) scale(1.1);
    animation-delay: 2s;
}

.deco4 {
    bottom: 0;
    left: 12%;
    transform: rotate(-180deg);
    animation-delay: 0s;
}


/*MAPA*/

#map-section {
    padding: 2rem;
    background: #f0f8ff;
    text-align: center;
}

#map {
    width: 100%;
    height: 400px;
    max-width: 800px;
    margin: 1rem auto;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(30deg);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}
