:root {
    --primary-color: #d8a7b1;
    --text-color: #4a4a4a;
    --bg-color: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Background with Flowers */
    background: url('assets/fundo_flores.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

/* Mobile Container */
#app {
    position: relative;
    width: 100%;
    height: 100%;
    /* Fallback */
    height: 100dvh;
    /* Dynamic Full Height */

    /* Only constrain width on larger screens */
    max-width: 480px;

    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* On really small/mobile devices, force full width/height reset */
@media (max-width: 480px) {
    body {
        background-color: #000;
        align-items: flex-start;
        /* Fixes potential vertical centering gap */
    }

    #app {
        max-width: 100%;
        box-shadow: none;
    }
}

/* Loading Screen */
#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Video Section */
#video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Floral background instead of black bars */
    background: url('assets/fundo_flores.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 1s ease;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full video is visible without cropping */
}

/* Invitation Image Section */
#invitation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    transition: opacity 1.5s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#invitation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fdfdfd;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.visible {
    opacity: 1 !important;
    z-index: 20 !important;
}

/* Action Buttons Container */
.actions {
    position: absolute;
    bottom: 0;
    /* Anchored to bottom */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 20;
    padding-bottom: 30px;
    /* Spacing from bottom edge */
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: fadeInUp 0.8s ease backwards;
}

.action-item:nth-child(2) {
    animation-delay: 0.2s;
}

/* 3D Glossy Round Buttons */
.btn-round {
    width: 70px;
    /* Increased size */
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    border: none;

    /* 3D Shadow / Bevel effect */
    box-shadow:
        inset -4px -4px 8px rgba(0, 0, 0, 0.2),
        inset 4px 4px 8px rgba(255, 255, 255, 0.8),
        0 8px 15px rgba(0, 0, 0, 0.2);

    transition: transform 0.2s ease;
}

.btn-round:active {
    transform: scale(0.95);
}

/* Purple Button (Location) */
.btn-purple {
    background: radial-gradient(circle at 30% 30%, #dcd6f7, #afa2db);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Pink Button (Presence) */
.btn-pink {
    background: radial-gradient(circle at 30% 30%, #ffcce0, #f8a1c1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Small sparkle/reflection dots */
.btn-round::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.8;
}

.btn-round::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 12%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.8;
}

/* Icons */
.btn-round svg {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Cursive Text Labels */
.cursive-text {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: 1.5rem;
    /* Larger font */
    line-height: 1;
    text-align: center;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(216, 167, 177, 0.5);
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}