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

body, html {
    height: 100%;
    font-family: 'Courier Prime', monospace;
    background-color: #000;
    color: #ccc;
    overflow: hidden;
    text-transform: lowercase;
}

body {
    opacity: 0;
    transition: opacity 1s ease;
}

.contact-form {
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: rgba(0, 0, 0, 1);
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 320px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
}

.container {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #000;
}

/* Page Layout */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.hidden {
    display: none;
    opacity: 0;
}

/* Logo Styling */
.logo {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

/* Page 1: Landing Page */
.main-text-container {
    position: relative;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.main-text {
    font-size: 1.5rem;
    color: #ddd;
    letter-spacing: 1px;
    transition: color 0.5s ease, transform 0.3s ease;
    cursor: pointer;
}

.hover-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
    font-size: 0.9rem;
    color: #bbb;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
    pointer-events: all;
    white-space: normal;
    width: 80%;
    text-align: center;
}

.main-text-container:hover .main-text {
    color: #bbb;
}

.main-text-container:hover .hover-text {
    opacity: 0.9;
    transform: translateX(-50%) translateY(-5px);
}

/* Make sure the hover text is clickable */
.hover-text:hover {
    opacity: 1 !important;
    color: #bbb;
}

.hover-text:hover {
    opacity: 0.9 !important;
}

/* Page 2: Video Page */
.video-container {
    position: relative;
    margin: 40px auto;
    max-width: 960px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
}

/* Password Protection Overlay */
.password-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Deck Viewer Overlay */
.deck-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 110;
}

.deck-viewer-overlay.hidden {
    display: none;
}

.deck-viewer {
    width: 90vw;
    height: 90vh;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
}

.deck-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deck-page-info {
    display: none; /* Hide page numbers */
    color: #777;
    font-size: 14px;
    font-family: 'Courier Prime', monospace;
    text-transform: lowercase;
}

.deck-canvas-container {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#deckCanvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.deck-slides-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #000;
    padding: 8px 0;
}

.deck-slide {
    width: 100%;
    flex-shrink: 0;
    background: #000;
}

.deck-slide canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.deck-close-mobile {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    font-family: 'Courier Prime', monospace;
    padding: 0;
    transition: all 0.2s ease;
}

.deck-close-mobile:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.95);
}

.deck-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
    cursor: pointer;
    user-select: none;
}

.loader-content {
    text-align: center;
    padding: 30px;
    max-width: 90%;
}

.loader-text {
    color: #777;
    font-size: 18px;
    font-family: 'Courier Prime', monospace;
    text-transform: lowercase;
    margin-bottom: 15px;
    min-height: 24px;
}

.snake-game-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#snakeCanvas {
    border: 1px solid #333;
    background: #000;
    display: block;
    max-width: 100%;
    height: auto;
    touch-action: none;
}

.snake-score {
    color: #999;
    font-size: 20px;
    font-family: 'Courier Prime', monospace;
    text-transform: lowercase;
}

.snake-instructions-top {
    color: #999;
    font-size: 15px;
    font-family: 'Courier Prime', monospace;
    text-transform: lowercase;
    margin-bottom: 10px;
    font-weight: normal;
}

.snake-instructions {
    color: #555;
    font-size: 12px;
    font-family: 'Courier Prime', monospace;
    text-transform: lowercase;
    opacity: 0.7;
}

/* Whack-a-Dot Game (Mobile) */
.whack-game-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.whack-prompt {
    color: #777;
    font-size: 16px;
    font-family: 'Courier Prime', monospace;
    text-transform: lowercase;
}

.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 300px;
    padding: 20px;
}

.whack-cell {
    aspect-ratio: 1;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.whack-cell.active {
    background: #222;
    border-color: #777;
}

.whack-cell.active::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 40%;
    background: #999;
    border-radius: 50%;
    animation: dotPulse 0.8s ease-in-out infinite;
}

.whack-cell.hit {
    background: #333;
    transform: scale(0.9);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.whack-score {
    color: #999;
    font-size: 20px;
    font-family: 'Courier Prime', monospace;
    text-transform: lowercase;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Mobile-friendly full-screen PDF viewer */
@media (max-width: 480px) {
    .deck-viewer-overlay {
        align-items: stretch;
    }
    .deck-viewer {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        flex-direction: column;
    }
    
    /* Hide toolbar completely on mobile */
    .deck-toolbar {
        display: none !important;
    }
    
    .deck-canvas-container {
        height: 100dvh;
        display: flex;
        overflow: hidden;
        padding: 0;
    }
    
    /* Hide single canvas on mobile */
    #deckCanvas {
        display: none !important;
    }
    
    /* Show slides container on mobile */
    .deck-slides-container {
        display: flex !important;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Show mobile close button */
    .deck-close-mobile {
        display: flex !important;
        top: calc(20px + env(safe-area-inset-top));
    }
    
    .deck-loader {
        padding-bottom: 0;
    }
    
    .loader-text {
        font-size: 16px;
    }
    
    #snakeCanvas {
        width: 90vw;
        max-width: 300px;
        height: 90vw;
        max-height: 300px;
    }
    
    .snake-score {
        font-size: 18px;
    }
    
    .snake-instructions {
        font-size: 11px;
    }
    
    .whack-grid {
        max-width: 280px;
        gap: 12px;
        padding: 15px;
    }
    
    .whack-score {
        font-size: 18px;
    }
    
    .whack-prompt {
        font-size: 14px;
    }
}

.password-container {
    text-align: center;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    max-width: 350px;
    width: 90%;
}

.password-prompt {
    font-family: 'Special Elite', cursive;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.password-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

#passwordInput {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    padding: 12px 0;
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: lowercase;
    outline: none;
    transition: border-color 0.3s ease;
}

#passwordInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

#passwordInput:focus {
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.password-btn {
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.password-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.password-btn:active {
    transform: translateY(1px);
}

.password-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.password-error {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: rgba(255, 100, 100, 0.8);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-style: italic;
}

.password-error:not(.hidden) {
    opacity: 1;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

#promo-video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    background-color: #000;
    object-fit: contain;
    max-height: 540px;
}

/* Ensure video fills the screen in fullscreen mode */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen,
:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen,
.video-container:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.video-container:fullscreen #promo-video,
.video-container:-webkit-full-screen #promo-video,
.video-container:-moz-full-screen #promo-video,
.video-container:-ms-fullscreen #promo-video {
    object-fit: contain !important;
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    pointer-events: auto;
}

.video-container:hover .custom-video-controls {
    opacity: 1;
}

.video-controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    height: 40px;
}

.play-pause-btn, .mute-btn, .fullscreen-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.play-pause-btn:hover, .mute-btn:hover, .fullscreen-btn:hover {
    opacity: 1;
}

.control-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.play-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
}

.pause-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>');
}

.volume-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>');
}

.muted-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/></svg>');
}

.fullscreen-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');
}

.video-progress {
    flex: 1;
    margin: 0 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    margin-bottom: 5px;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 12px;
}

.progress-indicator {
    height: 100%;
    background-color: #ff0000;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.1s ease;
}

.progress-indicator::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-indicator::after {
    opacity: 1;
}

.time-display {
    font-size: 12px;
    color: white;
    opacity: 0.9;
}

.video-container .hover-text {
    position: absolute;
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
    bottom: -40px;
    cursor: pointer;
    padding: 10px 0;
    z-index: 30; /* Higher than video controls */
    text-align: center;
    left: 0;
    right: 0;
    color: #bbb;
}

.video-container:hover .hover-text {
    opacity: 0.9;
    transform: translateY(-5px);
}

/* Video Caption */
.video-caption {
    text-align: center;
    margin: 20px auto;
    font-family: 'Special Elite', sans-serif;
    font-size: 12px;
    color: #bbb;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 15px;
    border-radius: 4px;
    max-width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.dismiss-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 101;
}

.dismiss-button:hover {
    opacity: 1;
}

.dismiss-button::before,
.dismiss-button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 1px;
    background-color: #aaa;
}

.dismiss-button::before {
    transform: rotate(45deg);
}

.dismiss-button::after {
    transform: rotate(-45deg);
}

.video-caption:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    position: absolute;
    bottom: 40px;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.contact-prompt {
    font-size: 0.8rem;
    color: #ddd;
    margin-bottom: 15px;
    opacity: 0.6;
}

.contact-icons {
    display: none;
}

.ig-icon, .email-icon {
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.email-icon {
    font-size: 1.2rem;
    color: #aaa;
}

.ig-icon:hover, .email-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.form-prompt {
    font-size: 0.8rem;
}

.input-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    width: 100%;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4px;
}

.input-wrapper:hover {
    opacity: 1;
    background-color: rgba(51, 51, 51, 0.05);
}

.input-icon {
    margin-bottom: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: text;
}

.input-wrapper:hover .input-icon {
    opacity: 1;
}

.email-icon-svg, .ig-icon-svg {
    width: 24px;
    height: 24px;
    fill: #aaa;
}

#emailInput, #igInput {
    background: transparent;
    border: none;
    border-bottom: 1px dotted rgba(120, 120, 120, 0.3);
    padding: 8px 0;
    width: calc(100% - 40px);
    max-width: 280px;
    color: #ccc;
    font-family: inherit;
    text-align: center;
    outline: none;
    cursor: text;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 0 rgba(120, 120, 120, 0.1);
    font-size: 0.85rem;
    margin: 0 auto;
}

#emailInput::placeholder, #igInput::placeholder {
    color: #999;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#emailInput:focus::placeholder, #igInput:focus::placeholder {
    opacity: 0.2;
}

#emailInput:focus, #igInput:focus {
    box-shadow: 0 2px 4px rgba(51, 51, 51, 0.05);
    text-shadow: 0 0 1px rgba(51, 51, 51, 0.2);
}

/* Subtle pulsing cursor effect */
@keyframes subtleCursorPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

.input-wrapper:hover #emailInput, .input-wrapper:hover #igInput {
    animation: subtleCursorPulse 2s infinite;
}



.form-prompt {
    font-size: 0.9rem;
    color: #aaa;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 20px;
    padding: 5px 10px;
    background-color: rgba(120, 120, 120, 0.05);
    border-radius: 4px;
    display: inline-block;
}

/* Consent opt-in (brand-aligned, subtle) */
.consent-wrapper {
    margin-top: 0px;
    margin-bottom: 5px;
}

.consent-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #aaa;
    opacity: 0.9;
    cursor: pointer;
    user-select: none;
}

.consent-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 1px solid rgba(120, 120, 120, 0.4);
    background: transparent;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.consent-label input[type="checkbox"]:checked {
    background: rgba(200, 200, 200, 0.25);
    border-color: rgba(180, 180, 180, 0.5);
}

.consent-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(220, 220, 220, 0.9);
    font-size: 12px;
    font-weight: bold;
}

.consent-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(120, 120, 120, 0.15);
}

#submitContact {
    background: rgba(120, 120, 120, 0.1);
    border: 1px solid rgba(120, 120, 120, 0.2);
    border-radius: 4px;
    color: #aaa;
    font-family: inherit;
    margin-top: 20px;
    padding: 8px 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#submitContact:hover {
    opacity: 1;
    background: rgba(51, 51, 51, 0.15);
    transform: translateY(-1px);
}

#formSuccess {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 15px;
    font-style: italic;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-text {
        font-size: 1.2rem;
    }
    
    .quote {
        font-size: 1.1rem;
    }
    
    .video-container .hover-text {
        width: 80%;
        max-width: 280px;
        margin: 0 auto;
        font-size: 0.8rem;
        bottom: -50px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    #formSuccess {
        margin: 15px auto;
        padding: 15px;
        font-size: 0.85rem;
        background-color: rgba(51, 51, 51, 0.2);
    }
    
    .main-text {
        font-size: 1rem;
    }
    
    .quote {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .author {
        padding-right: 10%;
        font-size: 0.9rem;
    }
    
    /* Fix for the contact section */
    .contact-section {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0 20px;
        z-index: 100;
        background-color: rgba(0, 0, 0, 0.9);
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }
    
    /* Contact section when hidden */
    .contact-section.slide-down {
        transform: translateY(100%);
    }
    
    /* Dismiss button */
    .dismiss-button {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.3s ease;
        z-index: 101;
    }
    
    .dismiss-button:hover {
        opacity: 1;
    }
    
    .dismiss-button::before,
    .dismiss-button::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 1px;
        background-color: #333;
    }
    
    .dismiss-button::before {
        transform: rotate(45deg);
    }
    
    .dismiss-button::after {
        transform: rotate(-45deg);
    }
    
    /* Swipe indicator */
    .swipe-indicator {
        width: 40px;
        height: 4px;
        background-color: rgba(51, 51, 51, 0.3);
        border-radius: 2px;
        margin: 10px auto;
    }
    
    /* Make the form prompt more visible */
    .form-prompt {
        margin-bottom: 20px;
        margin-top: 15px;
        font-size: 0.85rem;
        display: block;
        background-color: rgba(51, 51, 51, 0.15);
        padding: 8px 12px;
        border-radius: 4px;
    }
    
    /* Improve form visibility */
    .contact-form {
        background-color: rgba(51, 51, 51, 0.2);
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        margin-bottom: 20px;
    }
    
    /* Stack inputs vertically */
    .input-group {
        flex-direction: column;
        gap: 25px;
        margin: 20px 0;
        align-items: center;
    }
    
    /* Make input wrappers more visible */
    .input-wrapper {
        width: 100%;
        max-width: 250px;
        padding: 12px;
        background-color: rgba(51, 51, 51, 0.15);
        border-radius: 4px;
    }
    
    /* Style the input fields */
    #emailInput, #igInput {
        font-size: 0.85rem;
        width: 100%;
    }
    
    /* Make the submit button stand out */
    #submitContact {
        margin-top: 25px;
        padding: 12px 30px;
        width: auto;
        font-size: 0.9rem;
        background-color: rgba(51, 51, 51, 0.25);
        border-radius: 4px;
        border: 1px solid rgba(51, 51, 51, 0.3);
    }
    
    /* Fix hover text positioning */
    .video-container .hover-text {
        width: 90%;
        font-size: 0.8rem;
        bottom: -70px;
        line-height: 1.5;
        padding: 15px 0;
    }
    
    /* Center the quote in the page */
    .page {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Position the video container */
    .video-container {
        margin-top: -40px;
    }
}

#bgVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    filter: brightness(0.4) contrast(1.2);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.content {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
    text-align: center;
}

.enter-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

.warning-text {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    opacity: 0.8;
}

.enter-btn {
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    text-transform: lowercase;
}

.enter-btn:hover {
    color: rgba(255, 255, 255, 0.5);
}



.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.fund-name {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
    color: rgb(85, 138, 182);
    text-shadow: 0 0 10px rgba(85, 138, 182, 0.5);
}

.quote-container {
    margin-bottom: 4rem;
}

.quote {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    min-height: 140px;
}

.author {
    font-size: 1.2rem;
    text-align: right;
    opacity: 0.8;
}

.form-container {
    background-color: transparent;
    padding: 2rem 0;
    border: none;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 2.5s;
    opacity: 0;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    display: block !important;
    visibility: visible !important;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container h2 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    display: block;
}

input {
    width: 100%;
    padding: 0.8rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(85, 138, 182, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

input:focus {
    outline: none;
    border-color: rgba(85, 138, 182, 0.4);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.submit-btn {
    font-family: 'Special Elite', cursive;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0.8rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    text-transform: lowercase;
    margin-top: 1rem;
}



.loading {
    display: inline-block;
    position: relative;
    width: 20px;
    text-align: center;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.submit-btn:hover {
    color: rgb(85, 138, 182);
}

.hidden {
    display: none;
}

#formSuccess {
    text-align: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: 1rem;
    font-family: 'Special Elite', cursive;
    color: rgb(85, 138, 182);
    margin: 20px auto;
    max-width: 300px;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quote {
        font-size: 1.5rem;
        min-height: 120px;
    }
    
    .enter-btn {
        font-size: 1.8rem;
        padding: 0.8rem 2rem;
    }
    
    .fund-name {
        font-size: 2.2rem;
    }
    
    .warning-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .quote {
        font-size: 1.2rem;
        min-height: 100px;
    }
    
    .enter-btn {
        font-size: 1.5rem;
        padding: 0.7rem 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin-top: 1rem;
        width: 100%;
        z-index: 100;
    }
    
    .fund-name {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .warning-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    input {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
        padding: 0.8rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-appearance: none;
        appearance: none;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .form-group {
        margin-bottom: 1.5rem !important;
        display: block !important;
        width: 100% !important;
    }
    
    .submit-btn {
        width: 100% !important;
        margin-top: 1rem !important;
        padding: 1rem !important;
        display: block !important;
    }
    
    /* Fix for iOS and Safari */
    .content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Raise the landing text slightly on small screens */
    #page1 .main-text-container {
        transform: translateY(-8vh);
    }
}