@font-face {
    font-family: Press-Start-2P;
    src: url(assets/fonts/PressStart2P-Regular.ttf);
}

@font-face {
    font-family: Luckiest-Guy;
    src: url(assets/fonts/LuckiestGuy-Regular.ttf);
}

* {
    box-sizing: border-box;
    font-family: 'Trebuchet MS', sans-serif;
}

body {
    margin: 0;
}

nav {
    background-color: #3882F6;
}

.title {
    padding: 40px;
    text-align: center;
    font-size: 70px;
    font-family: Luckiest-Guy;
    color: white;
}

.flex-container {
    display: flex;
    gap: 8px;
    justify-content: space-around;
    margin-top: 50px;
}

.box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #3882F6;
    border-radius: 8px;
    background-color: rgb(241, 207, 163);
    min-height: 300px;
    max-width: 300px;
    margin-bottom: 25px;
    transition: all .5s ease;
    cursor: pointer;
}

#rock, 
#paper, 
#scissors, 
.rock-round, 
.paper-round, 
.scissors-round {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%;
}

#rock, 
.rock-round {
    background-image: url(assets/images/rock.png);
}

#paper, 
.paper-round {
    background-image: url(assets/images/paper.png);
}

#scissors, 
.scissors-round {
    background-image: url(assets/images/scissors.png);
}

.clicked-lose {
    transform: scale(1.1);
    border-color: #d41626;
    box-shadow: 0 0 1rem #d41626;
    background-color: #d41626;
}

.clicked-win {
    transform: scale(1.1);
    border-color: #8ae90e;
    background-color: #8ae90e;
    box-shadow: 0 0 1rem #8ae90e;
}

.clicked-tie {
    transform: scale(1.1);
    border-color: rgb(241, 207, 163);
    box-shadow: 0 0 1rem rgb(241, 207, 163);
}

#score,
#total-result {
    text-align: center;
    color:rgb(0, 35, 99);
    font-weight: bold;
    font-size: 30px;
    margin: 15px 0;
}

#score {
    color:rgb(250, 6, 6);
}

#total-result {
    font-size: 33px;
}

.reset-button {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

#reset {
    background: rgb(241, 207, 163);
    color: rgb(0, 35, 99);
    border: 3px solid #3882F6;
    border-radius: 8px;
    font-family: Press-Start-2P;
    font-size: 1.3rem;
    font-weight: bold;
    height: 2.5rem;
    margin: auto 0;
    padding: 3px 25px;
    cursor: pointer;
}

#reset:hover {
    background: rgba(241, 207, 163, 0.541);
}

.results {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 25px 0;
}

.results-score, 
.results-round {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.results-score-title, 
.results-round-title {
    font-family: Press-Start-2P;
    font-weight: bold;
    color: white;
    background-color: rgb(0, 35, 99);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
    padding: 20px;
}

.results-score-bottom, 
.results-round-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3882F6;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: white;
    padding: 25px;
    font-size: 1.1rem;
}

.results-score-bottom-player, 
.results-score-bottom-computer, 
.results-round-bottom-player, 
.results-round-bottom-computer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.results-score-bottom-player > div:last-of-type, 
.results-score-bottom-computer > div:last-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d41626;
    border-radius: 5px;
    width: 60px;
    height: 60px;
    font-family: Press-Start-2P;
}

.results-round-bottom-player > div:last-of-type, 
.results-round-bottom-computer > div:last-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    width: 60px;
    height: 60px;
    border: 1px solid rgb(0, 35, 99);
    background-color: rgb(241, 207, 163);
}

.results-score-bottom-player > div:last-of-type {
    background-color: #4f8509;
}

.results-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: white;
    background-color: #3882F6;
    border-radius: 10px;
    padding: 20px 40px;
    max-width: 400px;
}

#round-result, 
#total-result {
    font-weight: bold;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 1.7rem;
    margin: 0;
    margin-bottom: 3px;
}

#total-result {
    display: none;
}

.round-result-win {
    background-color: #4f8509;
}

.round-result-lose {
    background-color: #d41626;
}

.round-result-tie {
    background-color: rgb(197, 157, 105);
}

@media only screen and (max-width: 600px) {
    .title {
        font-size: 40px;
        padding: 30px;
    }

    .flex-container {
        padding: 0 20px;
        margin-top: 30px;
    }

    .box {
        min-height: 150px;
    }

    .results {
        gap: 5px;
        margin: 0;
        margin-top: 15px;
    }

    #round-result, 
    #total-result {
        padding: 15px;
        font-size: 1.4rem;
    }

    .results-score, 
    .results-round {
        min-width: 150px;
    }

    .results-score-bottom, 
    .results-round-bottom {
        font-size: 1rem;
        padding: 20px;
        gap: 10px;
    }
}