:root {
    --bg-color: #1e1e1e;
    --txt-color: #fefefe;
    --line-color: #aeaeae;
    --c1: #858585;
    --c2: #4f4f4f;
}

html,
body,
div {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    height: 100vh;
    width: 100vw;

    font-family: 'press start 2p', monospace;
    line-height: 30px;
    font-size: 20px;

    user-select: none;

    text-transform: uppercase;

    background: var(--bg-color);
    color: var(--txt-color);
}

a {
    text-decoration: none;
    color: inherit;
}

#playfield {
    position: relative;
    background: #4F4F4F;
    width: 100%;
    height: 100%;
}

#box {
    border: 1px solid var(--txt-color);
    position: absolute;

    top: 20px;
    left: 20px;

    width: 30px;
    height: 50px;

    cursor: none;
}

.hard-mode #box {
    cursor: crosshair;
    animation: fade-out 2s linear forwards;
}

.line {
    background: var(--line-color);
    position: absolute;
}

.hard-mode .line {
    display: none;
}

#line-v {
    height: 100%;
    width: 1px;
    /* transform: translateX(-50%); */
}

#line-h {
    width: 100%;
    height: 1px;
    /* transform: translateY(-50%); */
}

#score {
    position: absolute;
    right: 0.7em;
    bottom: 0.5em;
    /* transform: translateX(-50%); */
    text-align: center;
    background: var(--bg-color);
}

#score>b {
    font-size: 1.4em;
}

#bullseye>div {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#bullseye>div:nth-child(1) {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background: var(--c1);
}

#bullseye>div:nth-child(2) {
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: var(--c2);
}

#bullseye>div:nth-child(3) {
    border-radius: 50%;
    width: 1px;
    height: 1px;
    background: white;
}

#color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    background: none;
    pointer-events: none;
}

#top-board {
    padding: 5px 10px;
    display: flex;
}

#final-score {
    text-align: center;
    padding: 50px 100px;
}

#final-score b {
    font-size: 2em;
}

.dialog {
    background: var(--bg-color);
    border: 4px double var(--txt-color);
    padding: 30px 50px;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn {
    border: 1px solid;
    box-shadow: 5px 5px 0px 0px rgba(255, 255, 255, .20);
    cursor: pointer;
    padding: 5px 20px;
    display: inline-block;
}

.btn:hover {
    transform: translate(5px, 5px);
    box-shadow: none;
}

#btn-menu {
    margin-left: auto;
}

#new-game {
    margin-top: 50px;
    padding: 20px 40px;
}

.checkbox {
    cursor: pointer;
    display: inline-block;
    padding: 3px;
}

.checkbox input {
    position: relative;
    appearance: none;
    height: 2em;
    width: 2em;
    cursor: pointer;
    margin: 0;
    background: inherit;
    border: 2px solid var(--txt-color);
}

.checkbox input:checked::after {
    content: " ";
    width: .8rem;
    height: .8rem;
    background: var(--txt-color);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#menu {
    width: 40vw;
}

#menu .checkbox {
    float: right;
}

.text-center {
    text-align: center !important;
}

.mt {
    margin-top: 30px;
}

.spin-wheel:hover {
    animation: spin 1s ease-in-out infinite both;
}


@keyframes fade-out {
    from {
        border-color: var(--txt-color);
    }

    to {
        border-color: var(--bg-color);
    }
}

@keyframes spin {

    0% {
        transform: rotate3d(0, 0, 0, 0);
        color: red;
    }

    10% {
        transform: rotate3d(1, 0, 0, 180deg);
        color: aqua;
    }

    20% {
        transform: rotate3d(0, 0, 0, 0);
        color: orange;
    }

    30% {
        transform: rotate3d(1, 0, 0, 180deg);
        color: lime;
    }

    40% {
        transform: rotate3d(0, 0, 0, 0);
        color: hotpink;
    }

    50% {
        transform: rotate3d(1, 0, 0, 180deg);
        color: yellow;
    }

    100% {
        transform: rotate3d(0, 0, 0, 0);
        color: inherit;
    }


}