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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Canvas Container */
#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Info Panel */
#info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

#info p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #39ff14;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

#info p.controls {
    font-size: 12px;
    padding: 8px 16px;
    opacity: 0.7;
    margin-top: 10px;
}

/* Canvas element */
#container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Logo */
#logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: auto;
    opacity: 0.75;
    z-index: 10;
    pointer-events: none;
}

/* Tagline */
#tagline {
    position: fixed;
    top: calc(50% - 3rem);
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #39ff14;
    text-align: center;
    z-index: 5;
    text-shadow: 
        0 0 10px rgba(57, 255, 20, 0.6),
        0 0 20px rgba(57, 255, 20, 0.4);
    letter-spacing: 0.05em;
    opacity: 0.9;
    max-width: 90vw;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading indicator */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    animation: fadeOut 1s ease-in-out 1s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Audio element - hidden */
#backgroundAudio {
    display: none;
}

/* Background Video */
#backgroundVideo {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

/* Dark Overlay */
#darkOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
    pointer-events: none;
}

/* Login Button */
#loginBtn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1px solid rgba(57, 255, 20, 0.4);
    color: rgba(57, 255, 20, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    z-index: 5;
    outline: none;
}

#loginBtn:hover {
    border-color: rgba(57, 255, 20, 0.8);
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    background: rgba(57, 255, 20, 0.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(57, 255, 20, 0.4);
    width: 300px;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: rgba(57, 255, 20, 0.7);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #39ff14;
}

.modal h3 {
    color: #39ff14;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.05em;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-option {
    display: block;
    padding: 12px 0;
    background: transparent;
    border: 1px solid rgba(57, 255, 20, 0.4);
    color: rgba(57, 255, 20, 0.8);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.login-option:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.8);
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* Media queries for responsive design */
@media screen and (max-width: 480px) {
    #logo {
        width: 60px;
        top: 15px;
    }
    
    #info p {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media screen and (max-width: 768px) {
    #logo {
        width: 80px;
        top: 20px;
    }
    
    #info p {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media screen and (min-width: 1200px) {
    #logo {
        width: 120px;
        top: 40px;
    }
}

@media screen and (min-width: 1920px) {
    #logo {
        width: 150px;
        top: 50px;
    }
}

/* Handle landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #logo {
        width: 50px;
        top: 10px;
    }
    
    #info {
        bottom: 10px;
    }
    
    #info p {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Footer Links */
.footer-links {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.footer-links a {
    color: rgba(57, 255, 20, 0.6);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.footer-links a:hover {
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* Responsive adjustments for footer links */
@media screen and (max-width: 768px) {
    .footer-links {
        left: 1rem;
        bottom: 1.5rem;
        gap: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .footer-links {
        left: 0.75rem;
        bottom: 1rem;
        gap: 0.3rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
} 