@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-Semibold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: "OpenSans";
    src: url('fonts/OpenSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

body {
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;        
    cursor: url("images/mouse.png"), url("images/mouse.ico"), url("../css/images/mouse.cur"), auto;
}

.wrapper {
    background: url("images/bg.png") center center no-repeat;
    height: 600px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    
    -webkit-transition: background-image 0.1s ease;
    -moz-transition: background-image 0.1s ease;
    -o-transition: background-image 0.1s ease;
    transition: background-image 0.1s ease;
}

.ceruza {
    background: rgba(0, 0, 0, 0) url("images/ceruza.png") no-repeat scroll right bottom / 100% auto;
    height: 600px;
    padding-left: 16px;
    padding-top: 295px;
    width: 600px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.gamestart {    
font-family: "OpenSans", sans-serif;
}

.gamestart h1 {
    color: #f56462;
    font-size: 74px;
    font-weight: 700;
    line-height: 74px;
    margin: -12px 0 0 0;
    text-transform: uppercase;
    text-align: center;
    padding: 0;   
}

.gamestart .subtitle {    
    color: #242424;
    display: block;
    font-size: 24px;
    font-weight: 700;    
    text-align: center;
    text-transform: uppercase;
    margin:0 0 30px 0;
    padding: 0;
}

.gamestart p strong {
    font-family: "OpenSans", sans-serif;
    font-weight: 700;
}
    
.gamestart p {
    color: #000;
    font-size: 11px;
    text-align: center;
    line-height: 14px;
    margin: 0 0 30px;
}

.button.easy {
    background: rgba(208, 171, 76, 1) url("images/easygame.png") no-repeat scroll center center;
    background-size: 100%;
}

.button.easy:hover {
    background: rgba(208, 171, 76, 0.7) url("images/easygame.png") no-repeat scroll center center;
    background-size: 100%;
}

.button.hard {
    background: rgba(208, 171, 76, 1) url("images/hardgame.png") no-repeat scroll center center;
    background-size: 100%;
}

.button.hard:hover {
    background: rgba(208, 171, 76, 0.7) url("images/hardgame.png") no-repeat scroll center center;
    background-size: 100%;
}

.button {    
    display: block;
    height: 52px;
    width: 170px;
    border-radius: 5px;
    box-shadow: 0 5px 0 #775d1a;
    margin-bottom: 16px;
}

.gameover .button:first-child {
    margin-right: 15px;
}

.gameover .button {
    display: inline-block;
}

.gameover {
    display: none;
    height: 340px;
    left: 120px;
    padding-top: 12px;
    position: absolute;
    top: 128px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    width: 362px;
}

.gameover h2 {
    color: #f56462;
    font-family: "OpenSans", sans-serif;
    font-size: 35px;
    font-weight: 800;   
    line-height: 35px;
    margin: 0 0 15px 0;
    padding: 0;
    text-align: center;
}

.gameover p {
    font-family: "OpenSans", sans-serif;
    font-size: 11px;
    line-height: 14px;
    text-align: center;
    margin-bottom: 17px;
}

.gameover .badge {
    margin: 0 auto;
    display: block;
    background: url("images/badge.png") center center no-repeat;
    width: 121px;
    height: 138px;
    margin-bottom: 15px;    
    margin-top: 30px;
}

.gameover.open {
    display:block;
}

.gameboard.open {
    display: table;
}

.gameboard {
    display: none;    
}

.gameboard, .gamestart {
    opacity: 0;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    padding-top: 130px;
}

.gameboard .row {   
    display: table-row;
}

.gameboard .col {
    display: table-cell;
    border-right: 4px solid rgba(255,255,255,0.9);
    border-bottom: 4px solid rgba(255,255,255,0.9);
    font-family: "OpenSans", sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #fff;
    height: 34px;
    width: 34px;
    text-align: center;
    vertical-align: middle;
    position: relative;
    background: rgba(238,75,52,0.9);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
}

.gameboard .col .no {
    width: 100%;
    height: 100%;
    line-height: 34px;
    text-align: center;
}

.gameboard .col .marker1,
.gameboard .col .marker2,
.gameboard .col .marker3,
.gameboard .col .marker4 {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 2;
    font-size: 10px;
    line-height: 12px;
}

.gameboard .col .marker1 {
    top: 0;
    left: 0;   
}

.gameboard .col .marker2 {
    top: 0;
    right: 0;   
}

.gameboard .col .marker3 {
    bottom: 0;
    left: 0;   
}    

.gameboard .col .marker4 {
    bottom: 0;
    right: 0;   
}

.gameboard .col:nth-child(3),
.gameboard .col:nth-child(6) {
    border-right: 8.5px solid rgba(255,255,255,0.9);
}

.gameboard .row:nth-child(3) .col,
.gameboard .row:nth-child(6) .col {
    border-bottom: 8.5px solid rgba(255,255,255,0.9);
}

.gameboard .col.active {
    color: #fff;
    background: rgba(217, 179, 79, 0.9);
}

.gameboard .col.active div:hover:after {
    content: "?";
}

.gameboard .col.active div:hover {
    background: #fff; 
    color: #000;
    outline: 2px #000 dashed;
}

.selectbox .newnumber {
    font-family: "OpenSans", sans-serif;
    font-weight: 700;    
    font-size: 36px;
    width: 59px;
    height: 70px;
    line-height: 70px;
    display: block;
    float:left;
    text-align:center;    
}
   
.selectbox div:hover {
    font-size: 40px;
    margin-top: -10px!important;
    transition: all .1s ease-in-out;
    -webkit-transition: all .1s ease-in-out;
    -moz-transition: all .1s ease-in-out;
    -o-transition: all .1s ease-in-out;
}

.selectbox.popupbox {
    bottom:0;
}

.selectbox .newnumber:last-child {
    color: #eb4a33;
}

.selectbox {
    display: none;
    background: #fff none repeat scroll 0 0;
    bottom: -70px;
    height: 70px;
    position: absolute;
    width: 100%;
    transition: all .1s ease-in-out;
    -webkit-transition: all .1s ease-in-out;
    -moz-transition: all .1s ease-in-out;
    -o-transition: all .1s ease-in-out;
}

.selected {
    background: #fff; 
    color: #000;
    outline: 2px #000 dashed;
}

.grayout {
    background: #000!important;
}