@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Jersey+20&display=swap');

:root {
    --main-color: #ffffff;
    --secondary-color: #f4f4f4;
    --text-color: #0d0d0d;
    --red: #ff4500;
    --yellow: #ffd700;
    --blue: #007bff;
}

* {
    margin: 0;
    padding: 0;
}

html, body, button {
    background-color: var(--main-color);
    color: var(--text-color);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    font: normal 400 16px 'Dosis', tahoma;
}

h2 {
    font-weight: 800;
    font-size: 96px;
}

h4 {
    font-weight: 800;
    font-size: 32px;
}

h5 {
    font-weight: 600;
    font-size: 24px;
}

#header, #footer, button, a {
    background-color: var(--secondary-color);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header {
    padding: 32px 0;
    font: normal 400 48px 'Jersey 20', tahoma;
    letter-spacing: 4px;
}

#body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 32px;
}

#game-info {
    display: flex;
    gap: 32px;
}

.info {
    width: 160px;
    height: 160px;
    text-align: center;
}

#game-moves {
    display: flex;
    gap: 32px;
}

.option > button {
    width: 160px;
    height: 160px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 96px;
}

#rock {
    border-color: var(--red);
}

#rock:hover {
    background-color: rgb(from var(--red) r g b / 0.2);
}

#paper {
    border-color: var(--yellow);
}

#paper:hover {
    background-color: rgb(from var(--yellow) r g b / 0.2);
}

#scissors {
    border-color: var(--blue);
}

#scissors:hover {
    background-color: rgb(from var(--blue) r g b / 0.2);
}

#footer {
    padding: 16px 0;
}

#footer > a {
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
}

#github {
    width: 16px;
    height: 16px;
}

#end {
    background-color: var(--secondary-color);
    width: 256px;
    height: 128px;
    position: absolute;
    left: calc(50% - 256px / 2);
    top: calc(50% - 128px / 2);
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: none;
}

#playAgain {
    width: 128px;
    height: 32px;
    border: 2px solid;
    border-radius: 8px;
}

#playAgain:hover {
    background-color: rgb(from var(--text-color) r g b / 0.2);
}

@media screen and (max-width: 900px) {
    #header {
        font-size: 32px;
    }
}

@media screen and (max-width: 650px) {
    h2 {
        font-size: 64px;
    }
    
    h4 {
        font-size: 24px;
    }
    
    h5 {
        font-size: 16px;
    }

    #header {
        font-size: 16px;
    }

    #body {
        gap: 16px;
        padding: 16px;
    }
    
    #game-info {
        gap: 16px;
    }
    
    .info {
        width: 112px;
        height: 112px;
    }
    
    #game-moves {
        gap: 16px;
    }
    
    .option > button {
        width: 112px;
        height: 112px;
        font-size: 64px;
    }
}
