@import url('https://fonts.cdnfonts.com/css/ocr-a-extended');

* {
    margin: 0;
    padding: 0;
    font-family: 'OCR A Extended', 'Courier New', Courier, monospace;
}

body {
    text-align: center;
    /* overflow: hidden; */
    background-color: rgb(31, 28, 28);
}

.frameWrapper {
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: 70px auto 0;
    border: 2px solid white;
}

.frame {
    position: relative;
    width: 700px;
    max-width: 70vw;
    min-width: 485px;
    height: 400px;
    overflow: hidden;
}

.status {
    /* position: absolute; */
    display: none;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    /* padding-left: 5%; */
    height: 30px;
    width: 100%;
    background-color: transparent;
    color: white;
    /* opacity: 0.1; */
    z-index: 10;
    box-sizing: border-box;
    border-bottom: 2px solid white;
}

.status.active {
    display: flex;
}

.status span {
    font-weight: bold;
}

.state div {
    display: inline;
}

.actor {
    position: absolute;
    /* border: 2px solid black; */
    box-sizing: border-box;
}

.player {
    background-color: white;
    box-shadow: 0px 0px 10px white;
    z-index: 3;
}

.lava {
    /* position: absolute; */
    background-color: rgb(218, 59, 59);
    /* box-shadow: 0px 0px 10px rgb(218, 59, 59); */
    z-index: 3;
    animation: LavaGlow 2s infinite alternate ease-in;
}

.coin {
    background-color: yellow;
    box-shadow: 0px 0px 5px yellow;
    border-radius: 50%;
    transform: translate(25%, -30%);
    z-index: 3;
}

table {
    /* position: relative; */
    border-spacing: 0;
    background-color: rgb(50, 62, 74);
    margin: 0;
    z-index: 1;
}

.empty {
    background-color: rgb(31, 28, 28);

}

td {
    /* border: 1px solid gray; */
    box-sizing: border-box;
}


.endGameMenu {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 300px;
    padding-top: 20px;
    background-color: rgb(31, 28, 28);
    box-shadow: 0 0 8px 3px white;
    color: white;
    z-index: 30;
    transform: translate(-50%, -50%);
}


.score {
    position: relative;
    width: 60%;
    margin: 40px auto 0;
    background-color: white;
    /* border-collapse: collapse; */
    border-spacing: 2px;
}


.score td,
.score th {
    color: wheat;
    padding: 4px 6px;
    background-color: rgb(31, 28, 28);
}

.score td:first-child,
.score th:first-child {
    white-space: nowrap;
}

.score th:first-of-type {
    position: relative;
}

.score th:first-of-type div {
    position: absolute;
    height: 95%;
    width: 99%;
    top: -3px;
    left: -3px;
    border-top: 4px solid rgb(31, 28, 28);
    border-left: 4px solid rgb(31, 28, 28);
    box-sizing: content-box;
    /* margin: -2px; */
}

.newRecord {
    display: none;
    font-size: 18px;
    margin: 20px auto 0;
    animation: blink 2s infinite;
}

.newRecord.active~.score {
    margin-top: 20px;
}

.replay {
    position: absolute;
    bottom: 15%;
    left: 50%;
    padding: 10px 15px;
    background-color: rgb(241, 196, 114);
    color: rgb(31, 28, 28);
    font-weight: bold;
    font-size: 16px;
    margin-top: 30px;
    border: none;
    border-radius: 5px;
    transform: translateX(-50%);
    transition: background-color 0.8s;
}

.replay:hover {
    background-color: rgb(205, 164, 82);
    cursor: pointer;
    transition: all 0.8s;
}

@keyframes LavaGlow {
    0% {
        box-shadow: 0px 0px 10px rgb(218, 59, 59);
    }

    100% {
        box-shadow: 0px 0px 18px rgb(218, 59, 59)
    }
}

@keyframes blink {
    0% {
        color: rgb(31, 28, 28);
    }

    25% {
        color: white;
    }

    50% {
        color: rgb(31, 28, 28);
    }

    75% {
        color: white;
    }

    100% {
        color: rgb(31, 28, 28);
    }
}
