:root{
    --main-bg-color:rgba(15, 15, 18, 1);
    --main-text-color:rgba(212, 175, 55, 1);
    --main-accent-color:rgba(139, 0, 0, 1);
}
*{
    margin: 0px;
    padding: 0px;
}
body{
    width:100vw;
    height:100vh;
    display:grid;
    place-items:center;
    font-family: monospace;
    overflow:hidden;
}
#background{
    position:absolute;
    width:100vw;
    height:100vh;
    top:0px;
    left:0px;
    background-color: var(--main-bg-color);
    overflow: hidden;
    color:var(--main-accent-color);
    z-index:1;
}

/* SEED */
#seed{
    background:var(--main-text-color);
    width:30vw;
    height:40vh;
    display:grid;
    z-index:2;
    place-items:center;
    padding: 20px;
    box-sizing: border-box;
    position:relative;
    opacity: 0;
    transform: translateY(20px);
    animation: seedEntry 0.5s ease-out 1.5s forwards;
    
}
#seed-container{
    text-align: center;
}
#seed-label{
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--main-accent-color);
}
#seed-input{
    width: 25vw;
    padding: 10px;
    font-size: 16px;
    font-family: monospace;
    border: 2px solid var(--main-accent-color);
    background: black;
    color: var(--main-accent-color);
    text-align: center;
    box-sizing: border-box;
}
#seed-input:focus{
    outline: none;
    border-color: var(--main-text-color);
}
#char-count{
    margin-top: 8px;
    font-size: 12px;
    color: var(--main-accent-color);
}
#seed-submit{
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: monospace;
    background: black;
    color: var(--main-accent-color);
    border: 2px solid var(--main-accent-color);
    cursor: pointer;
    transition: all 0.2s;
}
#seed-submit:hover{
    background: var(--main-accent-color);
    color: red;
}
#seed-submit:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}



/* MATRIX bg */
.matrix-column {
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    pointer-events: none;
}
.matrix-char {
    position: absolute;
    left: 0;
    color: var(--main-accent-color);
    text-shadow: 0 0 5px var(--main-accent-color);
}
.matrix-bright {
    color: var(--main-text-color);
    text-shadow: 0 0 10px var(--main-text-color);
}

/* TITLE */
#title{
    color: var(--main-text-color);
    font-size:12;
    z-index: 2;
    text-shadow: 0 0 10px var(--main-accent-color);
    user-select: none;
    transform: scale(0.5);
    animation: titleEntry 2s ease-out forwards;
}
#title.exit{
    animation: titleExit 2.5s ease-in forwards;
}

.ascii{
    font-family: monospace; 
    line-height: 0.75;
    letter-spacing: 0.75px;
    white-space: pre;
}

#gameContainer {
    display: none;
    width: 100vw;
    height: 100vh;
    grid-template-columns: 100vh 30vh calc(100vw - 130vh);
    opacity: 0;
    transform: scale(0.95);
    z-index:2;
    color: var(--main-text-color);

}

#gameContainer.show {
    display: grid;
    animation: fadeIn 0.7s ease-out forwards;
}

@keyframes fadeIn {
    to {
    opacity: 1;
    transform: scale(1);
    }
}

.game-panel {
    background: var(--main-bg-color);
    border: 2px solid var(--main-accent-color);
}

#factory {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dice {
    aspect-ratio: 1/2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#waspStats {
    height: 40vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatLog {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes titleEntry {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
        filter: blur(10px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
        filter: blur(0);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}
@keyframes seedEntry {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes titleExit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(7);
        filter: blur(40px);
    }
}