@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

/* Structural CSS */
* {
    margin: 0;
    padding: 0;
    border: none;
}

/* Fonts */
h1 {
    font-size: 2rem;
    letter-spacing: 3px;
}

h2 {
    font-size: 2rem;
    letter-spacing: 12px;
}

body {
    font-family: 'Press Start 2P', sans-serif;
    background-color: rgb(182, 182, 201);
}

/* Banner, option buttons and title*/
.game-info-banner {
    display: flex;
    justify-content: space-between;

}

.game-options-container {
    padding: 4rem;
    margin-left: 2rem;
}

.help-menu-button {
    margin: 0.625rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: white;
    border-width: 3px;
    border-style: solid;
    font-size: 41px;
    cursor: pointer;
}

.game-refresh-button {
    margin: 0.625rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: white;
    border-width: 3px;
    border-style: solid;
    font-size: 41px;
    cursor: pointer;
}

.game-refresh-button:hover {
    background-color: black;
    color: white;
}

.help-menu-button:hover {
    background-color: black;
    color: white;
}

.game-title {
    padding-left: 2rem;
    padding-top: 2rem;
}

/* Game section */

/* Weapon section*/
.weapon-choice-instruction {
    text-align: center;
    padding-left: 20px;
}

.player-weapon-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 4rem;
}

.hands-image {
    border-radius: 50%;
    width: 140px;
    height: 140px;
}

.player-weapon-choice-button {
    background: none;
    border: none;
    cursor: pointer;
    flex-wrap: wrap;
    transition: 0.5s;
}

.player-weapon-choice-button:hover {
    transform: scale(1.3);
}

/* Arena section */
.arena-terminal {
    display: grid;
    justify-content: center;
    grid-template-columns: 23rem 18rem 25rem;
    grid-template-rows: 3rem 3rem 2rem;
    align-items: baseline;
    margin-top: 3rem;

    text-transform: uppercase;
    justify-items: center;
    padding-bottom: 2rem;
    text-align: center;

}

.player-choice-output {
    grid-row: 1/3;
}

.computer-choice-output {
    grid-row: 1/3;
    grid-column: 3/3;
}

.arena-victor-output {
    grid-column: 2/3;
    grid-row: 3/3;
    border: inset;
    padding: 1rem;
    border-color: gold;
}

/* Results section */

.overall-results {
    display: flex;
    justify-items: center;
    align-items: baseline;
    margin-top: 5rem;

    text-transform: uppercase;
    text-align: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2rem;
}


#playerScore {
    border-bottom-style: dotted;
}

.player-score {
    grid-row: 3/3;
}

.computer-score {
    grid-row: 3/3;
    grid-column: 3/3;
}

.round-number {
    grid-column: 2/2;
}

/* Footer */

footer {
    padding-top: 7.125rem;
    text-align: center;
    width: 100%;

}

.footer-media-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.footer-media-link:hover {
    border-bottom: 5px black solid;
    color: white;
}

/* Modal - informed by W3Schools modal tutorial */

.modal-header {
    padding-bottom: 2rem;
    line-height: 3rem;
}

#modal-refresh-icon {
    font-weight: bold;
    font-size: 1.5rem;
}

#modal-hand-pun {
    font-style: italic;
    font-size: 1.3rem;
}

.rule-hands {
    width: 69px;
    border-radius: 50%;
}

.modal-outer-container {
    position: absolute;
    top: 0;
    width: 100vw;

    background-color: rgba(0, 0, 0, 0.8);
    display: none;
}

.inner-modal-container {
    background-color: gray;
    margin: 12rem 4rem 12rem 3rem;
    padding: 14px;
    text-align: center;
}

#return-button {
    border-radius: 5%;
    background-color: white;
    font-family: inherit;
    font-size: 1.5rem;
    margin: 2rem;
    padding: 0.5rem;
    border: solid;
    text-transform: uppercase;
}

#return-button:hover {
    transform: scale(1.2);
    background-color: black;
    color: white;
}

div>ul {
    list-style-type: none;
}

/* */
.error-page-container {
    background-color: inherit;
    color: black;
    margin: 0 auto;
    position: relative;
    width: 50%;
    text-align: center;
    display: inline-block;
}

/* Media Queries */

@media screen and (max-width: 1075px) {

    /* Arena section */
    .arena-victor-output {
        grid-row: 3/3;
        grid-column: 2/3;
    }

    .computer-choice-output {
        grid-row: 2/3;
        grid-column: 2/3;
    }

    .player-choice-output {
        grid-row: 1/3;
        grid-column: 2/2;
    }
}

@media screen and (max-width: 725px) {

    /* Results section */
    .computer-score {
        grid-row: 3/3;
        grid-column: 2/3;
    }

    .player-score {
        grid-row: 2/3;
        grid-column: 2/3;
    }

    .round-number {
        grid-row: 1/3;
        grid-column: 2/2;
    }

    .player-weapon-choice-button:hover {
        transform: scale(1.2);
    }

    .hands-image {
        border-radius: 50%;
        width: 110px;
        height: 110px;
    }
}

@media screen and (max-width: 650px) {
    .game-options-container {
        padding: 1rem 0rem 3rem 5rem;
    }

    .help-menu-button {

        margin: 0.625rem;
    }

    .game-refresh-button {

        margin: 0.625rem;
    }

    .inner-modal-container {
        margin-left: 2rem;
        margin-right: 3rem;
    }
}

@media screen and (max-width: 590px) {
    .game-info-banner {
        flex-wrap: wrap;
    }

    .player-weapon-choice-button:hover {
        transform: scale(1.1);
    }

    .arena-terminal {
        padding-left: 2rem;
    }

    .overall-results {
        padding: 0rem 1rem
    }

    footer {
        padding-bottom: 1rem;
    }

    .rule-hands {
        width: 49px;
    }
}

@media screen and (max-width: 375px) {
    .game-options-container {
        margin-left: 5rem;
    }
}