:root {
    --grey-bg-color: #141414;
    --yellow-bg-color: #f5dc7a;
    --lightgray-bg-color: rgba(200, 200, 200, 1);
    --white-bg-color: white;
    --whitetransparent-bg-color: rgba(255, 255, 255, 0.5);
    --greentransparent-bg-color: rgba(0, 255, 0, 0.5);
    --redtransparent-bg-color: rgba(255, 0, 0, 0.5);
    --greytransparent-bg-color: rgba(200, 200, 200, 0.5);
}
*{
    margin: 0;
    padding: 0;
    user-select: none;
}
.nunito-400 {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.nunito-800 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--yellow-bg-color);
    display: flex;
    flex-direction: column;
    font: "Nunito", sans-serif;
}
main {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

/*HEADER*/
header, footer {
    background-color: var(--grey-bg-color);
    display: block;
    margin: 0;
    color: white;
    font-family: "Nunito", sans-serif;
    z-index: 750;
}
header h1 {
    font-size: 7vw;;
    font-weight: 800;
    font-style: normal;
    margin: 0;
    padding: 0.5rem 0rem;
    text-align: center;
}
.scoreboard {
    font-family: "Nunito", sans-serif;
    font-size: 7vw;
    font-style: normal;
    font-weight: 400;
    margin: 0;
    padding: 0 0 1rem 0;
    text-align: center;
}
.scoreboard div {
    align-items: center;
    aspect-ratio: 1 / 1;
    background-color: var(--white-bg-color);
    border-radius: 1vw;
    color: var(--grey-bg-color);
    display: inline-block;
    font-family: "Nunito", sans-serif;
    font-size: 7vw;
    font-style: normal;
    text-align: center;
    width: 8vw;
}

/*THE TWO SIDES*/
.player_choice_side, .computer_choice_side{
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    padding: 2vw;
}
.player_choice_side .choice {
    background-color: var(--white-bg-color);
    cursor: pointer;
}

.computer_choice_side .choice {
    background-color: var(--lightgray-bg-color);
}
.choice {
    align-items: center;
    aspect-ratio: 1 / 1;
    border: 5px solid  var(--grey-bg-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    margin: 0;
    max-width: 80px;
    padding: 1vw;
}
.player_choice_side .choice:hover {
    background-color: var(--whitetransparent-bg-color);
}
.choice img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.player_choice_side .choice img, .player_selected .selected {
    transform: scaleX(-1);
}
.computer_selected_img {
    transform: rotate(180deg) scaleX(-1);
}

/*BATTLEFIELD*/
.battlefield {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 5px;
}
.battlefield div {
    border: 5px solid  var(--grey-bg-color);
    border-radius: 10px;
    box-sizing: content-box;
    max-width: 100px;
    padding: 1vw;
}
.battlefield img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}
.computer_selected {
    aspect-ratio: 1 / 1;
    background-color: var(--lightgray-bg-color);
}
.lets_go {
    aspect-ratio: 1 / 0.5;
    align-items: center;
    background-color: var(--lightgray-bg-color);
    cursor:not-allowed;
    display: flex;
    font-family: "Nunito", sans-serif;
    font-size: 1.2rem;
    justify-content: center;
    width: 500px;
    z-index: 1000;
}
.lets_go_available {
    background-color: var(--white-bg-color);
    cursor: pointer;
}
.lets_go_available:hover {
    background-color: var(--white-bg-color);
}
.player_selected {
    aspect-ratio: 1 / 1;
    background-color: var(--lightgray-bg-color);
}

/*FOOTER*/
footer {
    padding: 15px 0 5px 0;
    text-align: center;
    width: 100%;
    z-index: 750;
}
footer .round_history {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 4vw;
}
footer .round_history span {
    border: solid grey;
    border-radius: 1vw;
    display: inline;
    font-size: 5vw;
    margin: 5px;
    min-width: 40px;
}
footer .round_history span.d {
    background-color: var(--greytransparent-bg-color);
}
footer .round_history span.p {
    background-color: var(--greentransparent-bg-color);
}
footer .round_history span.c {
    background-color: var(--redtransparent-bg-color);
}
p.creator {
    margin: 10px 0 10px 0;
    font-size: 4vw;
}

/*RESULT BANNER*/
#result {
    background-color: rgba(0, 0, 0, 0.6);
    bottom: 0;
    color: white;
    display: none;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 12vw;
    font-style: normal;
    padding: 12rem 0;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 500;
}

/*MEDIA QUERY*/
@media (min-width: 600px) {
    header h1 {
        font-size: 42px;
    }
    .scoreboard {
        font-size: 42px;
    }
    .scoreboard div {
        font-size: 42px;
        width: 48px;

    }
    p.creator {
        font-size: 20px;
    }
    .battlefield div {
        padding: 6px;
    }
    .player_choice_side, .computer_choice_side {
        padding: 12px;
    }
    .choice {
        padding: 6px;
    }
    #result {
        font-size: 78px;
        top: 146px;
    }
}

@media (min-width: 768px) {
    .game_area {
        display: flex;
        flex-direction: row-reverse;
    }
    .player_choice_side, .computer_choice_side{
        flex-direction: column;
        gap: 10px;
    }
    .battlefield {
        flex-direction: row-reverse;
        gap: 8vw;
    }
    .player_choice_side .choice img, .player_selected .selected {
        transform: rotate(90deg) scaleY(1);
    }
    .computer_selected_img {
        transform: rotate(-90deg) scaleX(-1);
    }
    footer .round_history span {
        font-size: 30px;
        padding: 0 0.3rem;
    }
}
/*
@media (min-width: 992px) {
    footer .round_log {

    }
}

@media (min-width: 1200px) {
    
}*/