* {
    margin: 0;
    padding: 0;
}

html {
    background-color: #777;
    color: #eee;
    height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

.game-container {
    border: 0.5em solid #bbb;
    border-radius: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    padding: 2em 4em;
    gap: 1em;
    width: fit-content;
    text-align: center; 
    margin: 2em;
}

.scores {
    display: flex;
    gap: 1em;
    text-align: center;
    align-items: center;
    border: 0.3em solid #ccc;
    padding: 1em;
    border-radius: 1em;
    line-height: 1.5;
    font-size: 18px;
}

.score-title, .choice-title, .result {
    font-size: 22px;
    font-weight: 1000;
}

.player-score, .computer-score {
    font-size: 28px;
    font-weight: 1000;
}

.player-choice {
    display: flex;
    justify-content: space-between;
    gap: 1.2em;
}

.player-button {
    border-style: none;
    border-radius: 0.2em;
    font-size: 48px;
    flex-basis: 72px;
    width: fit-content;
    padding: 0.5em;
}

.player-button:hover {
    border: 6px solid #444;
    transform: scale(1.05);
}

.game-title {
    font-size: 40px;
}

.footer {
    display: flex;
    background-color: #222;
    justify-content: center;
    padding: 1.5em;
}

:modal {
    background-color: #ccc;
    border: solid 6px #fff;
    border-radius: 0.25em;
    box-shadow: 3px 3px 10px #222;
    display:flex;
    flex-direction: column;
    gap: 0.5em;
    font-size: 32px;
    padding: 1em;

    /* These properties make it possible to place the modal in the middle of the page.
     * This was not possible with flexbox, so I had to resort to use absolute positioning
     * to get the job done.
    */
    position: absolute;
    float: left;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialog-title {
    font-size: 48px;
}

.button-dialog-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.button-dialog {
    border: 2px solid #aaa;
    width: 100px;
    height: 50px;
    font-size: 24px;
    border-radius: 5px;
    text-align: center;
}

.button-dialog:hover{
    border: 4px solid #777;
    transform: scale(1.1);
}

/* Applying this class to an element makes it blur. This is used to blur what is behind the modal in JS*/
.blur {
    filter: blur(4px);
}