
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #000;
}

.gallery {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.photo {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease;
    z-index: 1;
}

.photo video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.photo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.2);
    z-index: 0;
}

/* Liquid Glass effect para background de vídeos */
.video-bg-glass {
    background-size: cover !important;
    filter: blur(40px) saturate(180%) brightness(0.9);
}

.text-overlay h1, .text-overlay h2, .text-overlay h3 {
    margin: 10px 0;
}

.text-overlay h1 {
    font-size: 2rem;
    overflow-wrap: break-word;
    white-space: normal;
}

.text-overlay h2 {
    font-size: 1rem;
}

.text-overlay h3 {
    font-size: 1rem;
}

.text-overlay {
    position: absolute;
    top: 40%;
    left: 5%;
    right: 5%;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    z-index: 10;
    transition: all 1s ease;
    padding: 10px;
}

.header-title {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 20;
    font-size: 1.5rem;
    transition: all 1s ease;
}

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    display: flex;
    z-index: 20;
}

.progress-bar {
    flex: 1;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 1px;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    transition: width 5s linear;
    border-radius: 1px;
}

/* Loading screen */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #b2d579;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    font-family: Arial, sans-serif;
    z-index: 999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.loading-screen h1 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.loading-screen p {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.start-btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.start-btn:hover {
    background-color: #555;
    transform: scale(1.05);
}

.start-btn:active {
    transform: scale(0.98);
}

/* Simple helper classes */

.mt-1 { margin-top: 4px; }
.mt-3 { margin-top: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-white { color: #fff; }
.fw-bold { font-weight: 700; }

/* PWA Install Button - Liquid Glass Effect */
.pwa-install-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;

    /* Liquid Glass Effect */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.15);

    transition: all 0.3s ease;
    animation: pwa-float 3s ease-in-out infinite;
}

.pwa-install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.pwa-install-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.25);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

.pwa-install-btn:active {
    transform: translateY(0) scale(0.98);
}

.pwa-install-btn i {
    font-size: 1.1rem;
}

@keyframes pwa-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Light background - dark text */
.pwa-install-btn.light-bg {
    color: #333;
}

/* Dark background - light text */
.pwa-install-btn.dark-bg {
    color: #fff;
}
