@font-face {
    font-family: 'Symbola';
    src: url('/static/Symbola.ttf') format('truetype');
}

#matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}


body {
    background-color: #0a0a0a;
    color: #b4ffdc;
    background-image: url('/header_banner.png'); 
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: auto;
    font-family: 'Symbola', 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 30px 20px;
    box-sizing: border-box;
}

.main-container {
    max-width: 1100px;
    width: 90%;
    background-color: rgba(10, 10, 10, 0.85);
    border: 1px solid #64b496;
    box-shadow: 0 0 25px rgba(100, 180, 150, 0.6);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    color: #b4ffdc;
    text-decoration: none;
    font-size: 28px;
    transition: color 0.3s, text-shadow 0.3s;
}

.social-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px #ffffff;
}

.separator {
    border: none;
    border-top: 2px dashed #b4ffdc;
    background: none;
    height: 0;
    margin: 30px auto;
    opacity: 0.7;
}

.header-button-container {
    padding: 10px 0;
}

.main-action-button {
    display: inline-block;
    background-color: rgba(28, 90, 67, 0.5); 
    border: 1px solid #64b496;
    color: #b4ffdc;
    padding: 12px 30px;
    font-family: 'Symbola', 'Courier New', Courier, monospace;
    font-size: 1.4em; 
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    text-shadow: 0 0 5px #b4ffdc;
    transition: all 0.2s ease-in-out;
}

.main-action-button:hover {
    background-color: #64b496;
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(180, 255, 220, 0.8);
    text-shadow: none;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #64b496;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info {
    text-align: left;
}

.profile-info h1 { margin: 0; font-size: 2.2em; font-weight: normal; text-shadow: 0 0 10px #b4ffdc; }
.profile-info p { margin: 5px 0 0; font-size: 1.2em; opacity: 0.8; }

.signal-post { background-color: rgba(0,0,0,0.3); padding: 10px 20px; border-radius: 5px; border: 1px solid #2a4a3a; }
.signal-post pre { font-size: 1.1em; text-align: left; white-space: pre-wrap; word-wrap: break-word; margin: 0; }

.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; border-radius: 5px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.generator-body h1 { font-size: 2.2em; font-weight: normal; text-shadow: 0 0 10px #b4ffdc; margin: 20px 0 5px 0; }
.generator-body .subtitle { margin: 0 auto 30px auto; max-width: 600px; font-size: 1.2em; opacity: 0.8; }

textarea#seedText, pre#signalOutput {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #2a4a3a;
    color: #b4ffdc;
    font-family: 'Symbola', 'Courier New', Courier, monospace;
    font-size: 1.1em;
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea#seedText { height: 200px; resize: vertical; }
textarea#seedText:focus { outline: none; border-color: #64b496; box-shadow: 0 0 15px rgba(100, 180, 150, 0.5); }

#generateBtn { margin-top: 20px; }

#resultContainer { margin-top: 20px; }
#resultContainer h2 { font-size: 1.5em; text-align: left; margin-bottom: 10px; opacity: 0.9; }

pre#signalOutput {
    height: 350px;
    white-space: pre-wrap;
    overflow-x: auto; 
    overflow-y: auto;
    word-wrap: break-word;
}


.copy-button-container {
    text-align: center; 
    margin-top: 15px;
}

.main-action-button:disabled { opacity: 0.5; cursor: not-allowed; }


.status-message-block {
    padding: 40px 0;
}

.status-h1 {
    font-size: 5em;
    font-weight: bold;
    margin-bottom: 0;
    text-shadow: 0 0 15px #b4ffdc; 
}

.status-p {
    font-size: 1.5em;
    opacity: 0.8;
    margin-top: 10px;
}


.header-button-container {
    display: flex;
    justify-content: center;
    gap: 20px; 
    padding: 10px 0;
}

.main-action-button.playing {
    background-color: #64b496;
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(180, 255, 220, 0.8);
    text-shadow: none;
}


@media (max-width: 768px) {
    .header-button-container {
        flex-direction: column; 
        align-items: center;    
        gap: 15px;              
    }

    .main-action-button {
        width: 80%; 
        max-width: 300px;
    }
}



/* --- Game Page Specifics --- */
.game-area-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    border: 1px solid #2a4a3a;
    border-radius: 5px;
    overflow: hidden;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    background-color: rgba(10, 10, 10, 0.75);
}

.game-overlay-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#startMessage {
    color: #b4ffdc;
    text-shadow: 0 0 10px #b4ffdc;
    font-size: 2.5em;
}

#gameOverMessage {
    color: #ff6868;
    text-shadow: 0 0 10px #ff0000;
    font-size: 4em;
}

.game-controls-status {
    text-align: center;
    padding: 10px;
}


.game-controls-status p {
    font-size: 1.4em;  
    margin-bottom: 15px;
    font-weight: bold;  
    text-shadow: 0 0 8px rgba(180, 255, 220, 0.6);  
}


.game-scoreboard-container h2 {
    font-family: 'Symbola', 'Courier New', Courier, monospace;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #b4ffdc;
}

.scoreboard-columns {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.scoreboard-column {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

.scoreboard-column li {
    font-family: 'Symbola', 'Courier New', Courier, monospace;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(100, 180, 150, 0.3);
    font-weight: bold; 
    text-shadow: 0 0 8px rgba(180, 255, 220, 0.6); 
}


.scoreboard-column .score-value {
    font-weight: bold;
}


/* --- Mobile Responsive Styles FOR GAME --- */
@media (max-width: 768px) {
    #startMessage {
        font-size: 1.8em;
    }

    #gameOverMessage {
        font-size: 2.5em;
    }

    .game-area-wrapper {
        height: 60vh;
    }

    #gameCanvas {
        height: 100%;
    }
    
    .scoreboard-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    .scoreboard-column {
        padding-left: 0;
        margin: 0;
        text-align: center;
    }
}
