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

body {
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* Background gradient */
.gradient-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #F5F5DC, #FFC0CB, #FFFFFF);
    z-index: 0;
}

/* Flower trigger */
.flower-trigger {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.flower-trigger:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Video styles */
.video-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 1rem;
}

#backgroundVideo {
    width: 95%;
    max-width: 800px;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255,105,180,0.3);
}

.fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Welcome content */
.welcome-content {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem; /* Default margin for desktop */
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    pointer-events: none;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.welcome-text {
    font-size: clamp(2.5rem, 10vw, 5rem);
    background: linear-gradient(45deg, #FFB6C6, #FF69B4, #FFFFFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 10px rgba(255,192,203,0.8);
    font-weight: 800;
}

.name-text {
    font-size: clamp(3rem, 12vw, 6rem);
    background: linear-gradient(45deg, #FFB6C6, #FF69B4, #FFB6C6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 8px rgba(255,105,180,0.6);
    font-weight: 800;
}

/* Skip button */
.skip-button {
    pointer-events: auto;
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.5rem;
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: white;
    background: #FF69B4;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    width: auto;
    max-width: 90%;
}

.skip-button.visible {
    animation: floatButton 2s ease-in-out infinite;
    opacity: 1;
}

.pulse-effect {
    position: absolute;
    inset: 0;
    background: rgba(255,105,180,0.5);
    animation: pulse 2s ease-in-out infinite;
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,192,203,0.9));
    padding: 1.5rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255,105,180,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    margin: 1rem;
}

.modal-content h2 {
    color: #FF1493;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(255,20,147,0.2);
}

.modal-content input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid rgba(255,105,180,0.3);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: #FF1493;
    box-shadow: 0 0 15px rgba(255,20,147,0.3);
}

.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-buttons button:first-child {
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    color: white;
    box-shadow: 0 4px 15px rgba(255,20,147,0.3);
}

.modal-buttons button:last-child {
    background: rgba(255,255,255,0.5);
    color: #666;
}

.modal-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,20,147,0.4);
}

.error-message {
    color: #FF0000;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    text-shadow: 0 2px 4px rgba(255,0,0,0.2);
    animation: shake 0.5s ease-in-out;
}

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

@keyframes floatButton {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.hidden {
    display: none;
}

/* Add media queries for smaller screens */
@media (max-width: 768px) {
    .video-container {
        padding: 1rem;
    }
    
    #backgroundVideo {
        width: 95%;
        max-width: none;
    }

    .welcome-content {
        padding: 1rem;
    }

    .title {
        margin-top: 3rem;
    }

    .skip-button {
        bottom: 2rem;
    }

    .error-message {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .title {
        margin-top: 1rem; /* Smaller margin for desktop to avoid video collision */
    }

    .video-container {
        padding-top: 4rem;
    }
} 