* {
    padding: 0;
    margin: 0;
}

body {
    background: linear-gradient(to top left, #45254d 0%, #e27a7d 100%);
}

main {}

.grid-container {
    width: 100%;
    height: 100vh; 

    display: grid;

    grid-template-rows: 80px 1fr 80px;
    grid-template-columns: 1fr 3fr 10px 14fr 1fr;
    grid-template-areas:
        "nav         nav      nav    nav     nav"
        "margin-left setting  space  player  margin-right"
        "footer      footer   footer footer  footer";
}

/* nav area */
#sec_1 {
    grid-area: nav;
}

/* margin-left area */
#sec_2 {
    grid-area: margin-left;
}

/* setting area */
#sec_3 {
    grid-area: setting;

    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.7), 0 6px 20px 0 rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    background-color: rgb(69, 131, 158);
}

/* space area */
#sec_4 {
    grid-area: space
}

/* The player area contains: the player-1 & middle & player-2 areas. */
#sec_5 {
    grid-area: player;

    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.7), 0 6px 20px 0 rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    background-color: #8e2241;
}

.grid-container-2 {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-rows: 1fr;
    grid-template-columns: 1fr 60px 1fr;
    grid-template-areas: "player-1  middle  player-2";
}

/* player-1 area*/
#sec_5-1 {
    grid-area: player-1;
    
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    /* background-color: #8e2241; */

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

/* middle area */
#sec_5-2 {
    grid-area: middle;

    position: relative;
    background-color: #8e2241;

    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.7), 0 6px 20px 0 rgba(0, 0, 0, 0.7);
}

/* player-2 area */
#sec_5-3 {
    grid-area: player-2;

    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    /* background-color: #8e2241; */

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

/* margin-right area */
#sec_6 {
    grid-area: margin-right;
}

/* footer area */
#sec_7 {
    grid-area: footer;
}

.active {
    background-color: rgba(255, 255, 255, 0.559);
    font-weight: bold;
    overflow: hidden;
}

.set_scoreboard {
    width: 175px;
    height: 125px;
    background-color: #c85576;
    border-radius: 7px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
}

.set_score {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

#btn_dice {
    position: absolute;

    top: 65%;
    left: 2px;
}

.button:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.4);
}

.button:active:not(.disabled) {
    transform: translateY(4px);
    box-shadow: 0 5px #412c2c;
    transition: all 0.2s;
}

#btn_hold {
    position: absolute;
    top: 82%;
    left: 6px;
    font-size: 12px;
}

#btn_start {
    position: absolute;
}

.hidden {
    visibility: hidden;
}

#game_score_1,
#game_score_2 {
    font-size: 50px;
}

#set_1,
#set_2,
#set_score_1,
#set_score_2 {
    padding-left: 5px;
}

#p_1,
#p_2 {
    font-size: 35px;
}

/* begin turn text style */
#won_1,
#won_2 {
    font-size: 25px;
    font-weight: bold;
}

.turn {
    animation-name: turn-text;
    animation-timing-function: ease-in-out;
    animation-duration: 3s;
    animation-iteration-count: 1000;
    animation-delay: 1s;
}

@keyframes turn-text {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-360deg);
    }
}

/* end of turn text style */


/* begin spin dice style */

/* dice image */
#img_dice {
    width: 50px;
    height: 50px;

    position: absolute;
    top: 20%;
    left: 5px;

    background-color: white;
    border: 1px solid black;
    border-radius: 7px;
    opacity: 90%;
}

.dice.spin {
    animation-name: spin;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(720deg);
    }
}

/* end of spin dice style */