/**********************************************
*** GENERAL
**********************************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

body {
    background-image: linear-gradient(rgba(62, 20, 20, 0.4), rgba(62, 20, 20, 0.4)), url(back.jpg);
    background-size: cover;
    background-position: center;
    font-family: Lato;
    font-weight: 300;
    position: relative;
    height: 100vh;
    color: #555;
    z-index: 0;
}

.wrapper {
    width: 1000px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.player-0-panel,
.player-1-panel {
    width: 50%;
    float: left;
    height: 600px;
    padding: 100px;
}



/**********************************************
*** PLAYERS
**********************************************/

.player-name {
    font-size: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 100;
    margin-top: 20px;
    margin-bottom: 10px;
    position: relative;
}

.player-score {
    text-align: center;
    font-size: 80px;
    font-weight: 100;
    color: #EB4D4D;
    margin-bottom: 130px;
}

.active { background-color: #f7f7f7; }
.active .player-name { font-weight: 300; }

.active .player-name::after {
    content: "\2022";
    font-size: 47px;
    position: absolute;
    color: #EB4D4D;
    top: -7px;
    right: 10px;
    
}

.player-current-box {
    background-color: #EB4D4D;
    color: #fff;
    width: 40%;
    margin: 0 auto;
    padding: 12px;
    text-align: center;
}

.player-current-label {
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 12px;
    color: #222;
}

.player-current-score {
    font-size: 30px;
}

button {
    position: absolute;
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
    color: #555;
    background: none;
    border: none;
    font-family: Lato;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 300;
    transition: background-color 0.3s, color 0.3s;
    z-index: 500;
}

button:hover { font-weight: 600; }
button:hover i { margin-right: 20px; }

button:focus {
    outline: none;
}

i {
    color: #EB4D4D;
    display: inline-block;
    margin-right: 15px;
    font-size: 32px;
    line-height: 1;
    vertical-align: text-top;
    margin-top: -4px;
    transition: margin 0.3s;
}

.btn-new { top: 25px;}
.btn-roll { top: 403px;}
.btn-hold { top: 467px;}
.btn-settings {top: 65px;}
.btn-help {top: 105px;}

.dieWrapper {
    display: none;
    position: absolute;
    left: 50%;
    top: 178px;
    transform: translateX(-50%);
    height: 100px;
    width: 220px;
    
}

.dice {

    height: 100%;
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.10);

}
#die-0 {

    float: left;

}
#die-1 {

    float: right;

}
.winner { background-color: #f7f7f7; }
.winner .player-name { font-weight: 300; color: #EB4D4D; }

/* Settings Modal */

.settings, .help {

    width: 0;
    overflow: hidden;
    white-space: nowrap;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    position: absolute;
    top: 0;
    transition: width 0.4s;
    -webkit-transition: width 0.4s;
    -moz-transition: width 0.4s;
    text-align: center;
    -webkit-transition-timing-function: ease-in-out; /* Safari and Chrome */
    transition-timing-function: ease-in-out;


}

.settings h4, .help h4 {

    display: inline-block;
    text-transform: uppercase;
    font-size: 20px;
    text-align: center;
    margin: 1em 0;
    padding-bottom: .5em;
    border-bottom: 2px solid #EB4D4D;


}

.settings {

    left: 0;

}

.help {

    right: 0;

}



.panelOn {

    width: 30%;
    overflow-y: auto;

}

.panelContent {

    opacity: 0;
    white-space: nowrap;
    width: 100%;
    padding: 1em .5em;
    transition: opacity 0.4s;
    -webkit-transition: opacity 0.4;
    -moz-transition: opacity 0.4;
    transition-delay: 0.5s;
    -webkit-transition-delay: 0.5s;
}

.panelContent p {

    margin: .5em 0;
    font-size: 1.25em;

}

.panelContent img {

    width: 50px;
    display: inline-block;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5);
    margin: 0 5px;

}

.panelContent input {

    width: 50%;
    height: 25px;
    border: none;
    border-bottom: 1px solid grey;
    text-align: center;
    font-size: 1em;
    background: none;

}

.panelContent input:focus {

    outline: none;

}

.panelOn > .panelContent {

    opacity: 1;
    white-space: normal;

}

.btn-save, .btn-close { 

    position: static;
    transform: none;
    width: 100%;
    margin: .5em 0;

}

/* @media screen and (max-width: 800px) {


    html {

        max-width: 100vw;
        max-height: 100vh;

    }

    .player-0-panel, .player-1-panel {

        display: none;
        width: 100%;
        height: 100%;
        padding: 40% 0 20% 0;

    }

    .wrapper {

        overflow: hidden;
        width: 100%;
        height: 100%;

    }

    .active {


        display: block;

    }

    .active .player-name::after {

        content: none;

    }

    .btn-roll { 

        top: auto;
        bottom: 50px;

    }
    .btn-hold { 

        top: auto;
        bottom: 5px;

    }


    .dieWrapper {

        top: 50%;

    }

    .player-current-box {


        width: auto;

    }



}*/
