@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: 
        radial-gradient(ellipse at top, rgba(16, 20, 40, 0.8), transparent),
        radial-gradient(ellipse at bottom, rgba(8, 12, 25, 0.9), transparent),
        linear-gradient(180deg, #0a0e1a 0%, #1a1f3a 50%, #0d1421 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Subtle animated stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 75px 45px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 125px 75px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 175px 125px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starTwinkle 8s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Elegant floating planets */
.planets {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: planetFloat 25s ease-in-out infinite;
    filter: blur(0.5px);
}

.planet-1 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.6), rgba(59, 130, 246, 0.3));
    top: 15%;
    left: 85%;
    animation-delay: 0s;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.planet-2 {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.6), rgba(139, 92, 246, 0.3));
    top: 75%;
    left: 8%;
    animation-delay: -10s;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.planet-3 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.6), rgba(16, 185, 129, 0.3));
    top: 25%;
    left: 12%;
    animation-delay: -20s;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

@keyframes planetFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    25% { 
        transform: translateY(-15px) translateX(8px); 
    }
    50% { 
        transform: translateY(-30px) translateX(-8px); 
    }
    75% { 
        transform: translateY(-15px) translateX(-12px); 
    }
}

/* Subtle nebula effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    animation: nebulaDrift 40s ease-in-out infinite;
    z-index: 1;
}

@keyframes nebulaDrift {
    0%, 100% { 
        transform: translateX(0px) translateY(0px);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(20px) translateY(-20px);
        opacity: 0.9;
    }
}

.container {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(148, 163, 184, 0.05),
        inset 0 1px 0 rgba(148, 163, 184, 0.1);
    padding: 48px;
    max-width: 1100px;
    margin: 20px;
    position: relative;
    z-index: 10;
    animation: containerGlow 6s ease-in-out infinite;
    text-align: center;
}

@keyframes containerGlow {
    0%, 100% { 
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.8),
            0 0 0 1px rgba(148, 163, 184, 0.05),
            inset 0 1px 0 rgba(148, 163, 184, 0.1);
    }
    50% { 
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.8),
            0 0 0 1px rgba(148, 163, 184, 0.1),
            inset 0 1px 0 rgba(148, 163, 184, 0.15),
            0 0 40px rgba(99, 102, 241, 0.1);
    }
}

/* Minimal elegant border */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(168, 85, 247, 0.1), 
        rgba(59, 130, 246, 0.1));
    border-radius: 24px;
    z-index: -1;
    animation: borderShimmer 8s ease-in-out infinite;
}

@keyframes borderShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

header h1 {
    color: #f8fafc;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    margin-bottom: 32px;
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #cbd5e1 50%, 
        #94a3b8 100%);
    background-size: 200% 200%;
    animation: textShimmer 4s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* New Split Screen Layout */
.split-layout {
    display: flex;
    width: 100%;
    align-items: stretch;
    margin-top: 32px;
    gap: 32px;
}

.content-panel, .notice-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    border-radius: 16px;
}

.content-panel {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.notice-panel {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    text-align: left;
    animation: noticeFloat 6s ease-in-out infinite alternate;
}

@keyframes noticeFloat {
    from {
        transform: translateY(-5px);
    }
    to {
        transform: translateY(5px);
    }
}

.domain-notice {
    width: 100%;
}

.domain-notice h2 {
    color: #fbbf24;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.domain-notice p {
    color: rgba(203, 213, 225, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.domain-notice .email-link {
    display: inline-block;
    background-color: #60a5fa;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s ease;
    text-align: center;
    word-break: break-all;
}

.domain-notice .email-link:hover {
    background-color: #93c5fd;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    transform: translateY(-2px);
}

.music-player-container {
    margin-top: 24px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.music-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.image-container {
    margin-bottom: 0;
    position: relative;
}

/* Elegant orbital ring */
/* .image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(99, 102, 241, 0.3) 90deg,
        transparent 180deg,
        rgba(168, 85, 247, 0.3) 270deg,
        transparent 360deg
    );
    animation: orbitRing 15s linear infinite;
    filter: blur(1px);
} */

/* @keyframes orbitRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} */

/* Subtle Saturn ring */
/* .image-container::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -25px;
    right: -25px;
    bottom: -15px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    animation: saturnRing 20s linear infinite reverse;
} */

/* @keyframes saturnRing {
    from { 
        transform: rotate(0deg) scaleX(1.3);
        opacity: 0.2;
    }
    to { 
        transform: rotate(360deg) scaleX(1.3);
        opacity: 0.5;
    }
} */

#mainImage {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 3px solid rgba(248, 250, 252, 0.9);
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: starPulse 4s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { 
        box-shadow: 
            0 0 40px rgba(99, 102, 241, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 60px rgba(99, 102, 241, 0.4),
            0 12px 48px rgba(0, 0, 0, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.15);
    }
}

.message {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(203, 213, 225, 0.95);
    margin-bottom: 32px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease 0.3s both;
}

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

footer p {
    margin-top: 32px;
    font-size: 1rem;
    color: rgba(148, 163, 184, 0.9);
    font-weight: 500;
    animation: fadeInUp 1.2s ease 0.6s both;
}

footer p::after {
    content: '🌙';
    display: inline-block;
    animation: moonFloat 3s ease-in-out infinite;
    margin-left: 8px;
    font-size: 1.2em;
    filter: drop-shadow(0 0 8px rgba(148, 163, 184, 0.6));
}

@keyframes moonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Shooting stars */
.shooting-star {
    position: fixed;
    width: 1px;
    height: 1px;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 50%;
    z-index: 5;
    animation: shootingStar 4s ease-out infinite;
    box-shadow: 0 0 6px rgba(248, 250, 252, 0.8);
}

@keyframes shootingStar {
    0% {
        transform: translateX(-100px) translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* Subtle sparkle effects */
.sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Cosmic sparkle variation */
.cosmic-sparkle {
    position: fixed;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: cosmicSparkle 3s ease-in-out infinite;
    z-index: 8;
}

@keyframes cosmicSparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0);
        box-shadow: 0 0 0px currentColor;
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1);
        box-shadow: 0 0 6px currentColor;
    }
}

/* Cute dog in the corner */
.cute-dog-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100; /* Ensure it's above other elements */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: dogFloat 3s ease-in-out infinite;
}

#cuteDog {
    width: 100px; /* Adjust size as needed */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(-10deg); /* Slight tilt */
    transition: transform 0.3s ease;
}

#cuteDog:hover {
    transform: rotate(-10deg) scale(1.1);
}

.dog-label {
    background-color: rgba(99, 102, 241, 0.8); /* Cute blue background */
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-align: center;
    font-weight: 500;
}

@keyframes dogFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 32px;
        margin: 16px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .split-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .content-panel, .notice-panel {
        padding: 24px;
    }

    .domain-notice h2 {
        font-size: 1.5rem;
    }

    .domain-notice p {
        font-size: 1rem;
    }

    .domain-notice .email-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    #mainImage {
        width: 280px;
        height: 280px;
    }
    
    .message {
        font-size: 1rem;
    }
    
    .planet-1, .planet-2, .planet-3 {
        transform: scale(0.8);
    }
}

/* Button Styles */
#revealMessageButton {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 1.5em;
    color: white;
    background: linear-gradient(45deg, #ff007f, #ffcc00); /* Pink to Gold gradient */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif; /* Fun, romantic font */
}

#revealMessageButton:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.6);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    /* The following (flex) properties are for when the modal is active */
    /* They will be applied via the .modal.active class */
}

.modal.active {
    display: flex; /* ADDED for centering when active */
    align-items: center; /* ADDED for centering when active */
    justify-content: center; /* ADDED for centering when active */
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-family: 'Arial', sans-serif;
    color: #333;
}

.modal-content h2 {
    color: #ff007f; /* Romantic pink */
    margin-bottom: 20px;
}

.modal-content input[type="text"] {
    width: calc(100% - 40px);
    padding: 12px 20px;
    margin: 10px 0 20px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
}

.modal-content button {
    background-color: #ff007f; /* Romantic pink */
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #e60073; /* Darker pink */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style for the new incorrect name modal's paragraph */
#incorrectNameModal .modal-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

/* Style for the new incorrect name modal's OK button */
.close-incorrect-name-button {
    background-color: #777; /* Neutral gray */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.close-incorrect-name-button:hover {
    background-color: #666; /* Darker gray */
}

/* Ensure message container takes up space when shown */
#messageContainer {
    /* Add any specific styling for the container when visible */
    /* For now, it will just rely on its content */
} 