@font-face {
    font-family: "Raleway";
    src: url(./fonts/Raleway-VariableFont_wght.ttf);
}

@font-face {
    font-family: "Lato-Bold";
    src: url(./fonts/Lato-Bold.ttf);
}

@font-face {
    font-family: "Lato-Light";
    src: url(./fonts/Lato-Light.ttf);
}

@font-face {
    font-family: "Lato";
    src: url(./fonts/Lato-Regular.ttf);
}

@keyframes scoreBoardAppearance {
    from {
        opacity: 0;
        scale: 0.95;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes scoreNumbersChange {
    0% {
        scale: 1;
    }

    50% {
        scale: 1.25;
        filter: brightness(110%);
    }

    100% {
        scale: 1;
    }
}

@keyframes roundResult {
    from {
        opacity: 0;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(10px);
    }
}

@keyframes roundCounter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    background-color: #243447;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Lato";
    font-weight: 400;

    margin: 0;
    padding: 32px 64px;

    -webkit-font-smoothing: antialiased;
}

h1 {
    font-family: "Raleway";
    color: #F5F5F5;
    font-weight: 600;
    font-size: 30px;

    padding: 20px 0;
}

p,
h1 {
    margin: 0;
}

button {
    font-family: "Lato-Light";
    font-weight: 300;
    font-size: 17px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #E0E0E0;
    cursor: pointer;
}

a:hover {
    color: #afc3d1;
}

img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

#startGameButton {
    background-color: #4A6780;
}

#startGameButton:hover {
    background-color: #55748e;
}

#endGameButton {
    background-color: #804A4A;
}

#endGameButton:hover {
    background-color: #8e5858;
}

#resetGameButton {
    background-color: #66747A;
}

#resetGameButton:hover {
    background-color: #738188;
}

#homeButton {
    background-color: #3B556E;
}

#homeButton:hover {
    background-color: #4b6274;
}

#attribution {
    font-size: 12px;
    padding-top: 30px;
}

#homeScreenText {
    padding-bottom: 30px;
}

#gameStartText {
    padding-bottom: 30px;
}

#roundResults {
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

.roundResultAnimation {
    animation-name: roundResult;
    animation-duration: 0.4s;
    animation-timing-function: ease-in-out;
}

.roundCountSection {
    display: flex;
    gap: 5px;
}

.roundCountAnimation {
    animation-name: roundCounter;
    animation-duration: 0.3s;
    animation-timing-function: ease-in;
}

.startAndHomeButtons {
    display: flex;
    gap: 16px;
}

.endAndResetButtons {
    display: flex;
    gap: 16px;
}

.endGameResultsBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.gameResults {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    padding: 30px 70px;

    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    margin-bottom: 30px;

    width: 480px;
    height: 210px;

    background-color: #2E4057;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    animation-name: scoreBoardAppearance;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

.scoreAnimation {
    animation-name: scoreNumbersChange;
    animation-duration: 0.4s;
}

.buttonStyle {
    color: #E0E0E0;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    border: 0;
}

.text {
    color: #E0E0E0;
    font-size: 20px;
}

.inactive {
    display: none;
}

.gameButtonsClass {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    padding: 30px 0;
}

.choiceButton {
    border-radius: 50%;
    border: 5px solid #691656;
    padding: 10px 15px;

    width: 150px;
    height: 150px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.choiceButton.active {
    transform: scale(0.97);
    border: 5px solid #166929;
}

.scoreBoard {
    display: flex;
    justify-content: center;

    gap: 30px;
}

.userSection,
.compSection {
    text-align: center;
    width: 200px;
}

@media screen and (max-width: 1025px) and (min-width: 416px) {
    body {
        padding: 24px 32px;
    }

    h1 {
        font-size: 28px;
    }

    button {
        font-size: 15px;
    }

    .text {
        font-size: 18px;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
    }

    .choiceButton {
        height: 125px;
        width: 125px;
    }
}

@media screen and (max-width: 415px) {
    body {
        padding: 16px;
    }

    h1 {
        font-size: 20px;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
    }

    button {
        font-size: 13px;
    }

    .text {
        font-size: 16px;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
    }

    .choiceButton {
        height: 100px;
        width: 100px;
    }

    .gameResults {
        padding: 15px;
        width: 300px;
        height: 180px;
    }

    .userSection,
    .compSection {
        width: 100px;
    }
}