* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: rgb(248, 253, 255);
}

.board {
    height: 80%;
    width: 65%;
    background-color: white;
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.10);
    /* position */
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.site {
    width: 50%;
    float: left;
    height: 100%;
    text-align: center;
}

#options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 50%;
    height: 100%;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    font-weight: 600;
}

.btn {
    background-color: transparent;
    outline: none;
    border: none;
    color: black;
    font-size: 1.5rem;
    font-weight: lighter;
    cursor: pointer;
    transition: all .4s;
}

#newGame,
#holdScore,
#rollDices {
    text-transform: uppercase;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75px;
}

.player {
    font-size: 3rem;
    margin-top: 100px;
    font-weight: 300;
    letter-spacing: 5px;
    padding-right: 0;
    margin-right: 0;
    text-transform: uppercase;
}

.dot {
    padding-left: 0;
    margin-left: 0;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
}

.btn:hover .icon {
    padding-right: 15px;
}

.icon {
    color: #EB4D4D;
    padding-right: 5px;
    transition: all .4s;
    cursor: pointer;
}

.images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dice {
    width: 75px;
    height: 75px;
    margin: 10px;
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.10);
    transition: all 0.4s;
    cursor: pointer;
}

.dice:hover {
    transform: scale(1.1);
}

.box {
    height: 75px;
    background-color: #EB4D4D;
    color: #fff;
    width: 30%;
    padding: 12px;
    margin: auto;
    margin-top: 100px;
    text-align: center;
}

.bigscore {
    color: #EB4D4D;
    font-size: 5rem;
    font-weight: 100;
    margin-top: 30px;
}

.score {
    font-size: 1.5rem;
}

.active .player {
    font-weight: bold;
}

.active .bigscore {
    font-weight: 300;
}

.active {
    background-color: rgba(224, 224, 224, 0.2);
}

.help {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* position */
    position: absolute;
    top: 92%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#howToPlay {
    width: 150px;
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 5px;
    transition: all .4s;
    cursor: pointer;
}

#howToPlay:hover {
    margin-top: 15px;
}

.up {
    cursor: pointer;
    transition: all .4s;
}

#rulescard {
    height: 100%;
    width: 100%;
    background-color: white;
    box-shadow: 20px 50px 80px rgba(0, 0, 0, 0.10);
    transform: scale(0);
    transition: all .4s;
    text-align: center;
}

#container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 75%;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    padding: 50px 0px 25px 0px;
}

#rulestxt {
    text-align: justify;
    list-style-type: none;
    font-weight: 300;
    padding: 0px 50px 50px 50px;
    font-size: 1.01vw;
}

.won {
    background-color: rgba(224, 224, 224, 0.2);
}

.won .bigscore {
    font-size: 9rem;
    font-weight: 300;
}

.won .box {
    margin-top: 85px;
}

.won .player {
    font-weight: 600;
}

.disabled {
    color: gray;
    cursor: default;
}

.disabled .icon {
    color: gray;
    cursor: default;
}

.disabled:hover .icon {
    padding-right: 5px;
}

/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {
    .board {
        width: 80%;
    }

    .player {
        margin-top: 200px;
        font-size: 2rem;
    }

    #container {
        width: 80%;
        height: 70%;
    }

    #rulestxt {
        font-weight: 300;
        padding: 0px 50px 50px 50px;
        font-size: 3.5vw;
    }
}

/* 
    ##Device = Tablets, Ipads (landscape)
    ##Screen = B/w 768px to 1024px
  */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    .player {
        font-size: 3rem;
        margin-top: 100px;
    }

    #container {
        width: 80%;
        height: 70%;
    }

    #rulestxt {
        font-weight: 300;
        padding: 0px 50px 50px 50px;
        font-size: 2.5vw;
    }
}

/* 
    ##Device = Low Resolution Tablets, Mobiles (Landscape)
    ##Screen = B/w 481px to 767px
  */

@media (min-width: 481px) and (max-width: 767px) {
    .board {
        width: 85%;
    }

    .player {
        font-size: 1.5rem;
        margin-top: 40px;
    }

    .box {
        height: 50px;
        width: 20%;
        padding: 10px;
        margin-top: 25px;
        padding-top: 10px;
    }

    .score {
        padding-top: 5px;
    }

    .bigscore {
        font-size: 4.5rem;
    }

    .btn {
        font-size: 1.2rem;
    }

    #howToPlay {
        font-size: 1rem;
        margin-top: 1px;
        cursor: default;
    }

    #howToPlay:hover {
        margin-top: 7.5px;
    }

    #container {
        width: 80%;
        height: 80%;
    }

    #rulestxt {
        font-size: 2.25vw;
    }

    #rulescard {
        margin-top: -20px;
    }

    h2 {
        padding: 20px 0px 5px 0px;
    }

    .dice {
        width: 40px;
        height: 40px;
        margin: 5px;
        cursor: default;
    }

    .images {
        margin-top: 50px;
    }
}

/* 
    ##Device = Most of the Smartphones Mobiles (Portrait)
    ##Screen = B/w 320px to 479px
  */

@media (min-width: 320px) and (max-width: 480px) {
    .board {
        width: 85%;
    }

    .player {
        font-size: 1rem;
        margin-top: 100px;
    }

    .box {
        height: 50px;
        width: 50px;
        padding: 10px;
        margin-top: 50px;
        padding-top: 10px;
    }

    .score {
        padding-top: 5px;
    }

    .bigscore {
        font-size: 4.5rem;
    }

    .btn {
        font-size: 1.2rem;
    }

    #howToPlay {
        font-size: 1rem;
        margin-top: 5px;
        cursor: default;
    }

    #howToPlay:hover {
        margin-top: 15px;
    }

    #container {
        width: 80%;
        height: 70%;
    }

    #rulestxt {
        font-size: 3.5vw;
    }

    .dice {
        width: 50px;
        height: 50px;
        margin: 10px;
        cursor: default;
    }

    .images {
        margin-top: 125px;
    }
}