* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Megamax Jonathan Too', sans-serif;
    color: #fff;
}

body {
    height: 100vh;
    background: #10142a;
    padding: 0;
    gap: 40px;
}

header,
footer,
body,
main,
button,
span a,
.scores,
.choices,
.result-card,
#roundResult,
#modal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header {
    background: #090b19;
    padding: 20px;
    text-align: center;
}

main {
    text-align: center;
    gap: 20px;
}

span img {
    width: 50px;
    height: 50px;
}

span a {
    flex-direction: row;
    text-decoration: none;
}

#roundResult {
    font-size: 24px;
    min-height: 120px;
    justify-content: center;
}

button {
    background: #333a56;
    border-radius: 10%;
    max-width: 150px;
    padding: 30px;
    font-size: 30px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.btns {
    display: flex;
    gap: 50px;
}

.choices {
    font-size: 100px;
}

.scores {
    font-size: 20px;
    padding: 30px 0;
}

.choices,
.scores {
    flex-direction: row;
    justify-content: space-evenly;
    gap: 60px;
    padding: 30px 0;
}

.choices div {
    width: 150px;
    text-align: center;
    display: inline-block;
}

.victory h2, 
.victory p,
.playerScore p {
    color: #2ecc71;
}

.defeat h2,
.defeat p,
.computerScore p {
    color: #e74c3c;
}

.tie h2,
.tie p {
    color: #f1c40f;
}

#modal {
    justify-content: center;
    position: fixed;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: opacity 0.9s ease;
}

.result-card {
    background: #1B1F34;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px double #3E4A70;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    max-width: 300px;
    width: 100%;
    gap: 20px;
    font-weight: 600;
}

#modal-title {
    font-size: 32px;
}

#modal-final-score {
    font-size: 14px;
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    body {
        gap: 0;
    }

    button {
        padding: 20px;
    }

    #roundResult {
        font-size: 20px;
    }

    .scores {
        gap: 50px;
    }

    .result-card {
        padding: 30px;
        max-width: 340px;
    }

    #modal-final-score {
        text-wrap: nowrap;
        font-size: 14px;
        font-weight: 900;
    }

    #modal-title {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    header {
        font-size: 26px;
    }

    footer {
      font-size: 22px;  
    }

    #roundResult {
        font-size: 30px;
    }

    .scores {
        font-size: 28px;
    }
    
    .btns {
        gap: 80px;
    }

    button {
        padding: 40px;
        font-size: 40px;
    }

    .choices {
        font-size: 130px;
    }

    .result-card {
        max-width: 660px;
        gap: 35px;
    }

    .result-card button {
        max-width: 200px;
    }
    
    #modal-title {
        font-size: 42px;
    }

    #modal-final-score {
        font-size: 26px;
    }
}