* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}

body {
    background: url(bilder/dmvc_bg.png);
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
}

img.grafik {
    display: none;
}

#gembox {
    display: none;
    position: relative;
    background-color: #68b4ec;
    width: 828px;
    height: 760px;
    margin: 20px auto;
}

#gembox.start, #gembox.game, #gembox.hof, #gembox.end, #gembox.endr {
    display: block;
}

#titel {
    display: inline-block;
    position: relative;
    margin: 5px 72px;
}

#connect_svep, #inner {
    position: relative;
    width: 100%;
    height: 554px;
}

#tab_con {
    display: none;
    width: 738px;
    height: 30px;
    line-height: 30px;
    margin: 0 auto;
}

.tab {
    position: relative;
    display: inline-block;
    text-align: center;
    color: white;
    width: 50%;
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 400;
    background: rgb(14,116,192);
    background: -moz-linear-gradient(180deg, rgba(14,116,192,1) 20%, rgba(3,49,117,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(14,116,192,1) 20%, rgba(3,49,117,1) 100%);
    background: linear-gradient(180deg, rgba(14,116,192,1) 20%, rgba(3,49,117,1) 100%);
    cursor: pointer;
}

.tab.sel {
    color: white;
    background: #0e74c0;
}

.start #tab_con, .hof #tab_con {
    display: block;
}

.dmvc {
    display: none;
    position: absolute;
    left: 45px;
}

.game .dmvc {
    display: block;
}

.hof .knapp, .end .knapp, .game.race .knapp, .start .knapp, .endr .knapp {
    display: none;
}

.game.lean .dmvc .game.lean .knapp, .endr #end_rec .knapp,
.hof #hof_list {
    display: inline-block;
}


#dmv_olv {
    border: 1px solid white;
    cursor: pointer;
}

#dmv_connect {
    border: 1px solid transparent;
}

.knapp {
    position: absolute;
    height: 40px;
    width: 148px;
    bottom: 8px;
    opacity: 0.74;
    background-repeat: no-repeat;
    background-size: auto 75%;
    background-position: center;
    border: 2px solid #b8d9e4;
    border-radius: 8px;
    cursor: pointer;
}

.knapp:hover {
    opacity: 1;
}

.knapp.disabled {
    background-color:#999;
    opacity: 0.3;
    cursor: default;
}

.knapp.disabled:hover {
    opacity: 0.3;
}

.knapp.sel {
    background-color: #1db9ff;
    border-color: white;
    opacity: 1;
}

#remix {
    background-image: url('bilder/rmx.png');
    left: 30%;
}

#hint {
    background-image: url('bilder/hint.png');
    right: 30%;
}

#mode_M {
    background-image: url('bilder/meditativ.png');
}

#mode_C {
    background-image: url('bilder/race.png');
}

#avsluta {
    background-image: url('bilder/end.png');
}

#set_nrec {
    background-image: url('bilder/setrec.png');
    top: 320px;
    left: 200px;
}

#no_nrec {
    background-image: url('bilder/norec.png');
    top: 320px;
    left: 380px;
}

#racetid {
    display: none;
    position: absolute;
    font-family: monospace;
    font-size: 20px;
    text-align: right;
    color: white;
    left: 45px;
    bottom: 20px;
    width: 148px;
    letter-spacing: 0.2em;
}

#rmprog {
    display: none;
    position: absolute;
    left: 390px;
    bottom: 55px;
}

#rmprog img {
    position: absolute;
    top: 11px;
    left: 14px;
}

#rmprog #remtid {
    position: absolute;
}

.game #racetid, .game #rmprog {
    display: inline-block;
}

.game.lean #racetid, .game.lean #rmprog, .game #rmprog.out #remtid, #rmprog.out #remcup.out {
    display: none;
}

.start .knapp#avsluta {
    display: none;
}

.game .knapp#avsluta {
    display: inline-block;
    right: 45px;
}

#go {
    display: none;
    background-image: url('bilder/run.png');
    top: 88%;
    left: 50%;
    margin-left: -76px;
}

.start #go.ready {
    display: inline-block;
} 

#fremix {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 345px;
    z-index: 100;
    opacity: 0;
}

#fremix.grafik {
    display: none;
}

#fremix.fade {
    display: inline-block;
    animation: frmx 3800ms 1;
}

@keyframes frmx {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.screen {
    display: none;
    position: absolute;
    left: 45px;
    border: 1px solid transparent;
    width: 736px;
    height: 552px;
    font-size: 0;
}

.start #start,
.end #end,
.endr #end_rec,
.hof #hof_list {
    display: inline-block;
}

#start, #hof_list {
    background-color: #0e74c0;
}

#start #start_topp {
    height: 15%;
}

#start #mode_svep,
#start #niva_svep{
    display: inline-block;
    vertical-align: top;
    width: 50%;
    height: 85%;
    text-align: center;
}

#start #mode_svep {
    
}

#start #mode_svep .rubrik {
    margin-bottom: 24%;
}

#start #mode_svep .knapp {
    position: relative;
    display:block;
    margin: 12px auto;
    z-index: 10;
}

#start #niva_svep {
    
}

#start #niva_svep .rubrik {
    margin-bottom: 7%;
}

#nivaer {
    text-align: left;
}

#nivaer .niva {
    display: block;
    margin: 3px auto;
    width: 150px;
    height: 46px;
    padding: 4px 10px;
    line-height: 46px;
    cursor: pointer;
    border: 1px dotted transparent;
    border-radius: 10px;
}

#nivaer .niva:hover {
    background-color: #68b4ec;
}

#nivaer .niva.sel {
    background-color: #1db9ff;
    border-color: white;
}

#nivaer .niva.sel:hover {
    background-color: #1db9ff;
}

#nivaer .niva h3 {
    display: inline-block;
    vertical-align: top;
    font-size: 20px;
    margin-right: 30px;
    color: white;
}

#nivaer .niva img {
    display: inline-block;
    float: right;
    height: 46px;
}

#nivaer .lr_tid {
    display: inline-flex;
    width: 220px;
    height: 24px;
    line-height: 24px;
    font-size: 11px;
    color: white;
    margin-left: 60px;
    padding: 4px 10px;
    border: 1px dashed white;
    border-left: none;
    border-right: none;
}

#nivaer .lr_tid img {
    margin-right: 10px;
}

#hof_list .top5 {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 30%;
    padding: 30px 1.5% 0;
    color: white;
}

#hof_list img.orn {
    display: block;
    width: 90%;
    margin: 20px 5%;
}

#hof_list img.orn:last-child {
    margin-bottom: 0;
}

#hof_list .top5 .rubrik {
    display: block;
    text-align: center;
    font-size: 21px;
    font-weight: 400;
    color: white;
}

#hof_list .top5 ul {
    position: relative;
    height: 340px;
}

#hof_list .top5 ul.none {
    height: 0;
}

#hof_list .top5 ul > li {
    height: 24px;
    line-height: 24px;
    margin: 0 50px 10px;
    width: 170px;
    overflow: hidden;
}

#hof_list .top5 ul > li img,
#hof_list .top5 ul > li .r_plc {
    font-size: 13px;
    position: absolute;
    left: 10px;
}

#hof_list .top5 ul > li .r_namn {
    display: inline-block;
    font-size: 11px;
    font-weight: 400;
    width: 128px;
    color: white;
}

#hof_list .top5 ul > li .r_tid {
    font-style: oblique;
    font-size: 11px;
    font-weight: 400;
}

#hof_list .top5 .norec_con {
    text-align: center;
}

#hof_list .top5 .norec_con img {
    margin: 16px 0 20px;
}

#end_rec, #end {
    text-align: center;
    color: white;
    background-color: #0e74c0;
}

#end_rec #endr_head {
    text-align: center;
    margin: 60px 0 30px;
}

#end_rec #endr_head img {
    display: inline-block;
}

#end_rec #endr_head h2 {
    display: inline-block;
    vertical-align: top;
    font-size: 30px;
    font-weight: 400;
    padding: 20px 0 20px 40px;
}

#endr_con {
    text-align: center;
}

#endr_msg, #end_msg {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 30px;
}

#inplab {
    display: inline-block;
    font-size: 14px;
    margin-right: 10px;
}

#endr_inp {
    font-size: 14px;
    margin-right: 10px;
}

input#endr_rnom { 
    background: transparent;
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    color: white;
    padding: 6px 10px;
    border: none;
    border-bottom: 1px dashed white;
}

#end h2 {
    margin: 120px 0 40px;
    font-size: 40px;
    font-weight: 400;
}

.end .knapp#okej {
    background-image: url(bilder/okej.png);
    display: inline-block;
    top: 320px;
    left: 294px;
}