@import url('https://fonts.cdnfonts.com/css/thegoodmonolith');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    overflow: hidden;
    position: relative;
}

/* Canvas container */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
}

/* Loading screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: linear 5s infinite;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logoMorpho {
    max-width: 90%;
    align: center;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: 20px;
    background-size: cover;
    
}

/* Instructions */
.instructions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 100px; /* Leave space for the floating button */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 100;
}

.instructions kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'TheGoodMonolith', sans-serif;
                                                
    font-size: 0.8rem;
    color: white;
    margin: 0 2px;
}

/* Floating circular button */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.979);
    user-select: none;
}

.floating-button:hover {
    background-color: rgba(174, 255, 0, 0.439);
    transform: scale(1.05);
    border: 2px solid rgba(179, 255, 2, 0.979);
    box-shadow: 1px 1.2px 1.1px rgba(179, 255, 2, 0.979);
}

.floating-button:active {
    transform: scale(0.95);
}

.floating-button:focus {
    outline: 2px solid rgba(255, 51, 0, 0.805);
    outline-offset: 2px;
}

.button-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.button-logo svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.button-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(0) invert(1);
    pointer-events: none;
}

/* Keyboard Help System */
.keyboard-help {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: helpFadeIn 0.3s ease-out;
}

@keyframes helpFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.help-content h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.help-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.help-item kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    color: white;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.help-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 16px 0 0 0;
    font-style: italic;
}

.help-footer kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.7rem;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions {
        bottom: 10px;
        left: 10px;
        right: 75px; /* Adjust for smaller floating button */
        font-size: 0.8rem;
    }
    
    .loading-text {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .floating-button {
        width: 50px !important;
        height: 50px !important;
        right: 15px !important;
        bottom: 15px !important;
    }
    
    .button-logo svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .button-logo-img {
        width: 28px !important;
        height: 28px !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(0) invert(1) !important;
    }
}