@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --terminal-text: #4AF626;
    --terminal-background: #003300;
}

body {
    height: 100vh;
    width: auto;
    background-color: var(--terminal-background);
    font-family: "VT323", monospace;
}

/* Scanlines by https://codepen.io/ynef */

.scanlines {
    overflow: hidden;
    position: relative;
}

.scanlines:before,
.scanlines:after {
    display: block;
    pointer-events: none;
    content: "";
    position: absolute;
}

.scanlines:before {
    width: 100%;
    height: 2px;
    z-index: 2147483649;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.75;
    animation: scanline 6s linear infinite;
}

.scanlines:after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483648;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.3) 51%);
    background-size: 100% 4px;
    animation: scanlines 1s steps(60) infinite;
}

/* ANIMATE UNIQUE SCANLINE */
@keyframes scanline {
    0% {
        transform: translate3d(0, 200000%, 0);
    }
}

@keyframes scanlines {
    0% {
        background-position: 0 50%;
    }
}

/*  */

h1 {
    text-align: center;
    font-size: 5rem;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    color: var(--terminal-text);
}

a {
    color: var(--terminal-text);
}

.container {
    display: flex;
    justify-content: space-around;
}

.gameboard-wrapper {
    display: grid;
    grid-template-columns: 40px 1fr;
}

.notifications {
    width: 200px;
    height: 400px;
    background-color: black;
    color: var(--terminal-text);
    border: 1px solid var(--terminal-text);
    margin-top: 1rem;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: scroll;
}

.columns {
    display: flex;
    justify-content: space-around;
    height: 1rem;
    color: var(--terminal-text);
}

.rows {
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-around;
    color: var(--terminal-text);
}

.gameboard {
    height: 400px;
    width: 400px;
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cell {
    box-sizing: border-box;
    border: 1px solid var(--terminal-text);
    position: relative;
}

.cell-fire {
    position: absolute;
    top: -18px;
    left: -10px;
    width: 150%;
    height: 150%;
    pointer-events: none;
    z-index: 2;
}

.cell-miss {
    font-size: 3rem;
    color: var(--terminal-text);
    position: absolute;
    top: -7px;
    left: 9px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

button {
    font-family: inherit;
    text-transform: uppercase;
    font-size: 1.5rem;
    background-color: transparent;
    color: var(--terminal-text);
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 10px;
    border: 1px solid var(--terminal-text);
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    background-color: rgba(211, 211, 211, 0.4);
}