@font-face {
    font-family: Pixel;
    src: url(../webfont/pixopedia.ttf);
}

:root {
    --font-family: "Pixel", sans-serif;
    --font-size: 1.30rem;
    --text-color: hsl(0, 0, 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

html {
    color-scheme: dark;
}

img {
    max-width: 225px;
    width: 100%;
}

button {
    background: none;
    outline: none;
    cursor: pointer;
}

html,
body,
main,
.container {
    min-height: 100dvh;
    min-height: 100vh;
}

body {
    backdrop-filter: blur(4px);
    background-image: url(../images/background-image.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-color);
    font-size: var(--font-size);
    line-height: 1.5;
    overflow-x: hidden;
    text-align: center;
}

main {
    position: relative;
    align-items: center;
    display: flex;
    justify-content: center;
}

.container {
    align-items: center;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1rem;
}

.container.active {
    display: flex;
}

h1 {
    letter-spacing: 5px;
    text-transform: uppercase;
}

.result,
.description {
    text-transform: uppercase;
}

.scores {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.score {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.5rem;
    min-width: 150px;
    justify-content: center;
}

.score h2 {
    display: block;
    font-size: 50px;
}

.score.active h2 {
    display: none;
}

.score img {
    display: none;
}

.score.active img {
    display: block;
}

.score p {
    margin-top: 1rem;
    text-transform: uppercase;
}

.score.active p {
    margin-top: 0;
}

.rock-paper-scissors-images {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.selection-button {
    align-items: center;
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 2px solid rgba(100, 100, 100, 0.5);
    box-shadow: 0px 0px 10px rgba(100, 100, 100, 0.8);
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 0.5rem;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/*********************
Reset Game
**********************/
.reset {
    align-items: center;
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 2px solid rgba(100, 100, 100, 0.5);
    box-shadow: 0px 0px 10px rgba(100, 100, 100, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
    width: 90%;
}

.reset.active {
    display: flex;
}

.reset h3 {
    font-size: xx-large;
    letter-spacing: 5px;
}

.reset h3 span.resize {
    word-break: break-word;
}

.reset h3 span.animate {
    animation: flashing 1s ease infinite;
}

@keyframes flashing {
    0% {
        color: white;
    }

    50% {
        color: yellow;
    }

    100% {
        color: white;
    }
}

.reset button {
    border-radius: 2rem;
    border: 2px solid rgba(100, 100, 100, 0.5);
    box-shadow: 0px 0px 10px rgba(100, 100, 100, 0.8);
    font-size: larger;
    letter-spacing: 5px;
    margin-top: 2rem;
    padding: 2rem;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/*********************
Button hover and focus
**********************/

button:focus,
button:hover {
    border-color: rgb(100, 100, 100);
    box-shadow: 0px 0px 25px rgb(100, 100, 100);
}
