body {
    font-family: 'Lato', sans-serif;
    display: block;
    background: url(../images/back.jpg) no-repeat center center fixed;
    background-size: cover;
    font-weight: 300;
    text-transform: uppercase;
}
#turn {
    display: none;
}
.container {
    margin-top: 5vh;
    height: 90vh;
    background-color: white;
    box-shadow: 0px 10px 50px rgb(0 0 0 / 30%);
    overflow: hidden;
}
@media only screen and (orientation:portrait) {
    #turn {
        display: block;
    }
    .container {
        display: none;
    }
}

.background-pages div:first-child {
    background-color: #f7f7f7;
}

.btn-container {
    width: fit-content;
}
h1 {
    font-weight: 300;
}
.btn {
    font-size: 1.2em;
    font-weight: 300;
    text-transform: uppercase;
}
.btn i {
    color: #EB4D4D;
    font-size: 1.4em;
    margin-right: 10px;
}
.btn.disabled {
    opacity: 0.4;
}

.player {
    font-size: 2.5em;
    font-weight: 100;
}
.player .winner {
    color: #EB4D4D;
    position: absolute;
    top: -1.2em;
    left: 0;
    right: 0;
}
.player .red-dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-block;
    background-color: #EB4D4D;
    opacity: 0;
}
.global {
    font-size: 5em;
    color: #EB4D4D;
    font-weight: 100;
    margin-bottom: 15vh;
}
@media screen and (max-width : 1200px) {
    body {
        font-size: 10px;
    }
    h1 {
        font-size: 16px;
    }
    .global {
        margin-bottom: 9vh;
    }
}
.current {
    background-color: #EB4D4D;
    width: 130px;
    padding: 20px;
    margin: auto;
}
.p1 .current .add {
    right: 30px;
}
.p2 .current .add {
    left: 30px;
}
.current .add {
    color: #f7f7f7;
    opacity: 0;
    transform: translate(0,10px);
    transition: transform 0s, opacity 0s;
}
.current .add.active {
    opacity: 1;
    transform: translate(0,0);
    transition: transform 400ms, opacity 200ms;
}
.current .points {
    color: #f7f7f7;
    font-size: 1.8em;
    margin-top: 10px;
}
#dice-container {
    background-color: #fff;
    border-radius: 50%;
    width: 180px;
    height: 180px;
}
#dice-image {
    height: 97px;
    width: 115px;
    margin: auto;
    background: url(../images/dices.jpg) 0 0;
}
.controls {
    left: 0;
    right: 0;
    bottom: 7vh;
}
@media screen and (max-width : 1200px) {
    .controls {
        bottom: 4vh;
    }
}

/** Rules modal **/
input[type='checkbox']{
    display:none;
}
#trigger-modal {
    padding:5px 10px;
    color: #EB4D4D;
    font-size: 1.2em;
    cursor: pointer;
    position: absolute;
    right: -2em;
    top: 18px;
    transform:translate(-50%,-50%);
}
#modal-content {
    position: fixed;
    width: 95vw;
    height: 90vh;
    background: #f7f7f7;
    box-shadow: 0px 10px 50px rgb(0 0 0 / 30%);
    top: 5vh;
    left: 5vh;
    align-items:center;
    justify-content: center;
    pointer-events:none;
    display:none;
    z-index: 1;
}
.close {
    position: fixed;
    font-weight: 800;
    top: 10vh;
    right: 5vw;
    display:none;
    cursor:pointer;
    z-index: 2;
}
input:checked + div + #modal-content {
    display:flex;
}
input:checked + div + #modal-content + .close{
    display:block;
}