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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #bd9e66;
    height: 100dvh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Protest Riot', sans-serif; }

a {
    color: #ffc12a;
}

nav {
    position: fixed;
    color: #fff;
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;

    h1 {
        font-size: 15vh;
        text-align: center;
        line-height: 1;
    }

    h3 {
        font-size: 3vh;
        text-align: center;
    }

    ul {
        margin-top: 5vh;
        list-style: none;

        li {
            width: 100%;
            margin-top: 2vh;
            display: flex;
            justify-content: center;

            button {
                width: 80%;
                font-size: 3vh;
                padding: 2vh;
                border-radius: 1vh;
                border: none;
                box-shadow: 0 6px 75px 0 #ad7c2b;
                background-color: #b97f29;
                color: #eee;
                transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
            }

            button:hover {
                cursor: pointer;
                color: #fff;
                background-color: #d98f22;
                box-shadow: 0 6px 100px 0 #d59833;
            }
        }
    }
}

dialog {
    margin: auto;
    max-width: 100vh;
    color: #e1dddd;
    background-color: #aa5936;
    border-color: #804229;
    padding: 3vh 5vh;
    border-radius: 2vh;
    box-shadow: 0 8px 20px 0 #713714;

    h3 {
        font-size: 3vh;
        margin-bottom: 2vh;
    }

    h4 {
        font-size: 2.25vh;
        margin-top: 2vh;
    }

    p {
        margin-bottom: 1vh;
    }

    p, li , tr{
        font-size: 2vh;
    }

    ul {
        margin-left: 2vh;
    }

    td:first-child {
        text-align: center;
    }

    td {
        padding: 0 3px;
    }

    .close {
        float: right;
        color: #e1dddd;
        background-color: transparent;
        transition: color 0.3s;
        border: none;

        svg {
            height: 4vh;
        }
    }

    .close:hover {
        color: #c00;
        cursor: pointer;
    }
}

#game-over {
    div {
        margin-top: 3vh;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 5vh;

        button {
            outline: none;
            font-size: 2.5vh;
            padding: 2vh;
            width: 100%;
            border: none;
            border-radius: 1vh;
            background-color: #804229;
            color: #ddd;
            box-shadow: 0 5px 10px 0 #874a2d;
            transition: color 0.3s, background-color 0.3s;
        }

        button:hover {
            cursor: pointer;
            color: #fff;
            background-color: #8d4528;
        }
    }
}

#current-score-text, #high-score-text {
    stroke: #eee;
    font-size: 22px;
    stroke-width: 2px;
}
