@font-face {
    font-family: 'retro';
    src: url('retro-webfont.woff2') format('woff2'), url('retro-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Lato', sans-serif;
    text-align: center;
    background: #000;
    color: white;
}

button {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Chrome/Safari/Opera */
    -khtml-user-select: none;
    /* Konqueror */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
}

.controls {
    margin-bottom: 10px;
    color: black;
}

.mobilne {
    font-size: 40px;
    margin-left: 10px;
    margin-right: 10px;
}

#board {
    margin: 0 auto;
    overflow: auto;
    width: 624px;
    position: relative;
}

#message {
    position: absolute;
    font-size: 40px;
    font-weight: bold;
    font-family: retro;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: -1px -1px 0 red, 1px -1px 0 red, -1px 1px 0 red, 1px 1px 0 red;
    z-index: 100;
}

canvas {
    border: 1px solid white;
    float: left;
}

#gridContainer {
    float: left;
    width: 260px;
    border: 1px solid white;
    padding: 20px;
    margin-left: 20px;
    color: #565656;
}

.gridOff {
    color: #787878;
}

.gridOn {
    color: red;
}

#lijevo {
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

#dole {
    -moz-transform: rotate(90.0deg);
    /* FF3.5+ */
    -o-transform: rotate(90.0deg);
    /* Opera 10.5 */
    -webkit-transform: rotate(90.0deg);
    /* Saf3.1+, Chrome */
    margin-left: 50px;
    margin-right: 50px;
}

#rotacija {
    margin-top: 30px;
}

#krun {
    border-top: 4px double #8c8b8b;
    text-align: center;
}

#krun::after {
    content: '♛ ';
    display: inline-block;
    position: relative;
    top: -34px;
    padding: 0 10px;
    background: #F5F5F5;
    color: #8c8b8b;
    font-size: 18px;
    border-radius: 5px;
    border: 2px solid;
}

.overlay {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.overlay .centerBox {
    border: 5px solid grey;
    border-radius: 25px;
    background-color: aliceblue;
    text-align: center;
    margin: 13% auto;
    width: 30%;
    font-size: 36px;
    margin-bottom: 30px;
}

.overlay .centerBox .well {
    margin: auto;
    width: 100%;
}

.overlay .centerBox .token {
    padding: 0px 10px;
    font-size: 50px;
    margin: 0 60px;
}

.questionText,
.span_1_of_2 {
    color: black;
}

.pitanje {
    display: none
}

.question {
    display: none
}

.section {
    clear: both;
    padding: 0px;
    margin: 0px;
}


/*  COLUMN SETUP  */

.col {
    display: block;
    float: left;
    margin: 1% 0% 0%;
}

.col:first-child {
    margin-left: 0;
}


/*  GROUPING  */

.group:before,
.group:after {
    content: "";
    display: table;
}

.group:after {
    clear: both;
}

.group {
    zoom: 1;
    /* For IE 6/7 */
}


/*  GRID OF TWO  */

.span_2_of_2 {
    width: 100%;
}

.span_1_of_2 {
    width: 100%;
    border-radius: 10px;
}

.span_1_of_2::before {
    content: "✱ ";
}

.span_1_of_2:hover {
    background: white;
    cursor: pointer;
}

@media only screen and (max-width: 480px) {
    .col {
        margin: 1% 0 1% 0%;
    }
}

@media only screen and (max-width: 700px) {
    .overlay .centerBox .token {
        margin: 0 20px;
        font-size: 30px;
    }
    .overlay .centerBox {
        width: 40%;
    }
}

@media only screen and (max-width: 480px) {
    #krun::after {
        font-size: 14px;
        top: -17px;
    }
    .span_2_of_2,
    .span_1_of_2 {
        width: 100%;
        font-size: 18px;
    }
    .questionText {
        font-size: 20px;
    }
    .overlay .centerBox {
        font-size: 20px;
        width: 40%;
    }
    .restart {
        padding: 0 0;
        font-size: 12px;
    }
    .playerNumber .btn {
        padding: 5px 5px;
        font-size: 12px;
    }
    .overlay .centerBox .token {
        margin: 0 0;
        font-size: 30px;
    }
    .fa {
        font-size: 10px;
    }
    ;
    .overlay .centerBox {
        margin: 50% auto;
    }
}