body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    color: white;
}

#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease;
    z-index: 10;
}

#animation-container.faded-out {
    opacity: 0;
    pointer-events: none;
}

canvas {
    display: block;
}

/* Main content - hidden initially */
#main-content {
    opacity: 0;
    transition: opacity 1s ease;
    position: relative;
    z-index: 5;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-content.faded-in {
    opacity: 1;
}

/* --- BUTTON STYLES --- */
#home-redirect-btn {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden; 
    transition: all 0.8s ease;
    z-index: 100; 
    white-space: nowrap;
}

#home-redirect-btn:hover {
    background-color: white;
    color: black;
}

#home-redirect-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    #home-redirect-btn {
        bottom: 15%;
        padding: 15px 40px; /* Larger touch target */
        font-size: 14px;
        width: auto;
        max-width: 90%;
    }
    
    #main-content {
        padding: 10px;
    }
}