
/* stack of elements */
.snake-game {
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.game-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.game-container {
    position: absolute;
    top: 0;
    z-index: 1;
    height: 20%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5rem;

    margin-left: -10rem;
}

.game-stat {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.game-stat-text {
    font-size: 1.65rem;
    font-family: "Kenney Mini", sans-serif;
}

.game-stat-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* 8-bit style name input dialog */
.name-input-container {
    text-align: center;
}

.pixel-input {
    background-color: #000000;
    border: none;
    box-shadow:
        /* Outer border */
        0 0 0 4px #ffffff,
        /* Inner shadow */
        inset 0 0 0 2px #7f7f7f;
    color: #ffffff;
    font-family: 'Kenney Mini', monospace;
    font-size: 1.2rem;
    padding: 12px;
    text-align: center;
    width: 80%;
    image-rendering: pixelated;
    outline: none;
}

.pixel-input:focus {
    box-shadow:
        /* Outer border */
        0 0 0 4px #ffff00,
        /* Inner shadow */
        inset 0 0 0 2px #7f7f7f;
}

#dialog-end-game-new {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.dialog-end-game-new-header {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    place-items: center;
    margin: auto;
    place-content: center;
}

.dialog-end-game-new-header-img {
    display: flex !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    height: 2vw !important;
    width: 2vw !important;
}

.dialog-end-game-new-header-span {
    font-size: 1.5rem;
}
