header>nav {
    display: grid;
    grid-template-columns: 30% auto 30%;
    place-items: center;
    /* justify-content: space-evenly; */
    padding: 0.8rem 0rem;
    margin: 0.5rem 0rem 0.8rem;
    border: 2px solid #000000;
    box-shadow: #000000 1px 1px 3px;
}

nav>.title {
    margin-left: 1rem;
}

.setup_button {
    width: 3rem;
    height: 3rem;
    z-index: 3;
}

.logo {
    max-width: 8rem;
    min-width: 5rem;
    width: 100%;
}

.title {
    text-align: center;
    font-family: 'Rampart One', 'Bangers', 'Comic Sans MS', Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.65em;
    position: relative;
    display: flex;
    justify-self: center;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

#main {
    display: flex;
    flex-direction: column;
    row-gap: 1em;
}

.introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2%;
}

.player_tag {
    font-weight: bold;
}

.buttons_RPS {
    align-items: center;
    margin: 1.5%;
    display: flex;
    flex-direction: column;
    row-gap: 2em;
}

.buttons_RPS button {
    background-color: beige;
    border: 1px solid #000000;
    height: 8em;
    width: 6em;
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column-reverse;
    padding: 2%;
    align-items: center;
}

#opponentMove {
    padding: 3%;
    position: relative;
}

.otherOpponentMove1 {
    position: relative;
    top: -10px;
    right: -40px;
    z-index: -1;
}

.otherOpponentMove2 {
    position: relative;
    top: -10px;
    left: -40px;
    z-index: -1;
}

.buttons_RPS_p1 button:hover {
    transform: scaleX(1.2) scaleY(1.2);
    filter: brightness(110%);
}

.buttons_RPS_p1 {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}

.buttons_RPS_p2 {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}

.rock {
    background-image: url('img/rock.png');
}

.buttons_RPS_p1 .rock:hover {
    background-image: url('img/rock_colored.png');
}

.paper {
    background-image: url('img/paper.png');
}

.buttons_RPS_p1 .paper:hover {
    background-image: url('img/paper_colored.png');
}

.scissors {
    background-image: url('img/scissors.png');
}

.buttons_RPS_p1 .scissors:hover {
    background-image: url('img/scissors_colored.png');
}

.winnerTextContainer {
    text-align: center;
    font-weight: bold;
    border: 2px solid #000000;
    /* width: fit-content; */
    padding: 0.8rem;
    /* align-content: center; */
    /* display: flex; */
    /* justify-content: space-around; */
    display: grid;
    grid-template-columns: 30% auto 30%;
}

#winnerText {
    /* position: absolute; */
    margin-left: 2%;
    margin-right: 2%;
}

#p1_score,
#p2_score {
    position: relative;
}

#p1_score_addition,
#p2_score_addition {
    position: absolute;
    /* top: -10px; */
    padding-left: 2.5%;
    font-size: large;
}

#form {
    display: flex;
    flex-direction: column;
    margin: 0% 2%;
    padding: 3% 4%;
    align-items: center;
    row-gap: 20px;
    position: absolute;
    background-color: #fafafa;
    border: 2px solid #000000;
    box-shadow: #000000 2px 4px 8px;
    z-index: 2;
    top: calc(18vh);
}

.form {
    display: grid;
    /* align-items: center; */
    row-gap: 10px;
    column-gap: 80px;
}

.strategies {
    display: grid;
}

.strategies label {
    grid-column: 1;
}

.strategies input {
    grid-column: 2;
}

.settings {
    grid-column: 1;
    column-gap: 10px;
}

.settings label {
    width: max-content;
}

.util-label {
    width: auto;
    text-align: center;
    border: 1px solid #000000;
    font-weight: bold;
    background-color: #e2e2e2;
}

.util {
    border-collapse: collapse;
    padding: 1%;
}

.util label {
    font-weight: bold;
    width: 100%;
}

.util input {
    text-align: center;
    width: 100%;
}

.util label,
.util input {
    border: 1px solid #000000;
    /* padding: 2%; */
}

.utils {
    display: flex;
    flex-direction: row;
}

.submit-button {
    margin: 2%;
    font-size: medium;
    width: 10%;
    padding: 1%;
    min-width: max-content;
}

.setup_button>.setup_button_image {
    /* background-image: url(./img/settings_icon.png); */
    /* background-size: 80%; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    width: 100%;
    display: block;
}

/* remove number input arrow */

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.hide {
    visibility: hidden;
    /* display: none; */
}

.caption {
    font-size: medium;
    font-weight: bold;
}

hr {
    height: 0;
    max-height: 0;
    width: 80%;
    clear: both;
    border: none;
    border-top: 2px solid #2e2e2e;
    border-bottom: 2px solid #8a88881a;
    margin: -4px;
    padding: 0;
}

#RPS_Game {
    display: grid;
    grid-template-columns: 30% auto 30%;
}

#RPS_Game>#Winner_history_container {
    grid-column: 1;
    padding: 2%;
}

#RPS_Game>.buttons_RPS {
    grid-column: 2;
    grid-row: 1;
}

#RPS_Game>#CPU_strategies {
    grid-column: 3;
    padding: 2%;
    overflow-y: auto;
    max-height: 28rem;
}

@media (max-width: 820px) {
    .title {
        font-size: 1.2em;
    }

    .winnerTextContainer {
        padding: 0.5rem;
    }

    #RPS_Game {
        display: flex;
        flex-direction: column;
    }

    #RPS_Game > #CPU_strategies {
        overflow-y: unset;
        max-height: fit-content;
    }
}