body {
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    margin: 0px;
}
.game {
    position: relative;
    width: 518px;
    margin: auto;
}

.desktop .game-sudoku.size-6x6 {
    width: 630px;
    margin-left: 85px;
    height: 730px;
}

.desktop .game-sudoku.size-9x9 {
    width: 630px;
    margin-left: 85px;
    height: 760px;
}

.desktop .game-kakuro {
    width: 519px;
    margin-left: 85px;
    margin-top: 34px;
}

input.hiddenInput { /* hide */
    position: fixed;
    top: 50%;
    left: 50%;
    outline: none;
    border: none;
    width: 0px;
}

/*************************/
/* modal dialog          */
/*************************/

.dialog-blockingLayer {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1;
}

.dialog-blockingLayer .semitransparentLayer {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: white;
    opacity: 0.7; filter: alpha(opacity=70);
}

.dialogAlignmentHelper {
    position: absolute;
    left: 50%;
}
.dialog {
    position: relative;
    top: 100px;
    padding: 10px;
    background-color: #a0c7e6;
    box-shadow: 0px 0px 3px 1px black;
    left: -50%;
}
.dialog .message {
    white-space: pre;
}

.dialog .buttons {
    margin-top: 20px;
    text-align: center;
}
.dialog .buttons .button {
    display: inline-block;
    float: none;
    min-width: 65px;
    font-family: Arial;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
    margin-right: 5px;
    box-shadow: 0px 0px 2px 1px black;
}

/*************************/
/*                       */
/*************************/

.menubar {
    height: 30px;
    z-index: 2;
    position: relative; /* fixes z-index issue in IE7 */
}
.menubar .button {
    float: left;
    margin-right: 5px;
}

.menubar,
.dialog {
    font-family: Arial;
    font-weight: bold;
    font-size: 14px;
}



.button {
    height: 22px;
    padding: 0px 10px 0px 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #b9dcf2;
    background: -webkit-linear-gradient(top, #b9dcf2 0%,#478ab7 100%);
    line-height: 22px;
    cursor: pointer;
}

.button:active,
.btn-help.expanded,
.menubar .button:active {
    background: -webkit-linear-gradient(top, #478ab7 0%,#b9dcf2 100%);
}

.btn-print {
}
/*
.btn-print img {
    height: 16px;
    width: 16px;
    margin-top: 4px;
    display: none;
}
*/
.btn-print .icon {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    background-image: url(icon_print.png);
    background-size: 16px 16px;
}

.btn-help {
    position: relative;
}
.btn-help .submenu {
    display: none;
    position: absolute;
    border: 0px solid red;
    z-index: 1;
    left: 0px;
    width: 214px;
    top: 23px;
    background-color: #478ab7;
    background: -webkit-linear-gradient(top, #b9dcf2 0%,#478ab7 100%);
}
.btn-help .submenu > div {
    padding: 0px 10px 0px 10px;
    line-height: 24px;
}
.btn-help .submenu > div:hover {
    background-color: #b9dcf2;
}

.btn-help.expanded .submenu {
    display: block;
}

/*************************/
/* timer                 */
/*************************/

.timerCont {
    position: relative;
    width: 185px;
    height: 22px;
    float: left;
}
.timerCont .timerValue {
    width: 80px;
    float: right;
    line-height: 22px;
    font-weight: normal;
    text-align: center;
}
.timerCont .cover {
    position: absolute;
    top: 0px;
    left: 0px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #91bfdd;
    height: 22px;
    width: 105px;
    text-align: center;
    transition: left 1s;
    -webkit-transition: left 1s;
    overflow: hidden;
    background: -webkit-linear-gradient(top, #b9dcf2 0%,#478ab7 100%);
    cursor: pointer;
}

.timerCont .cover .label1,
.timerCont .cover .label2 {
    position: absolute;
    top: 0px;
    width: 105px;
    line-height: 22px;
    text-align: center;
}
.timerCont .cover .label1 {
    left: 0px;
    transition: left 1s;
    -webkit-transition: left 1s;
}
.timerCont .cover .label2 {
    left: 105px;
    transition: left 1s;
    -webkit-transition: left 1s;
}
.timerCont.hidden .cover {
    left: 80px;
    transition: left 1s;
    -webkit-transition: left 1s;
}
.timerCont.hidden .cover .label1 {
    left: -105px;
    -webkit-transition: left 1s;
}
.timerCont.hidden .cover .label2 {
    left: 0px;
    transition: left 1s;
    -webkit-transition: left 1s;
}


/*************************/
/*                       */
/*************************/

.cell {
    border-top: 1px solid black;
    border-left: 1px solid black;
    position: absolute;
    cursor: default;
    text-align: center;
}
.cell.user {
    overflow: hidden;
}
.cell.inFocus,
.cell.selected {
    /*position: relative;*/
    margin: -1px -2px -2px -1px;
    z-index: 1;
    border: 2px solid black;
    box-shadow: 0px 0px 2px 0px black;
}
.cell .value {
    position: absolute;
    /*top: 0px;*/
    bottom: 0px;
    right: 0%;
    width: 100%;
}
.cell .fasit {
    position: absolute;
    top: 0px;
    left: -100%;
    width: 100%;
}
.cell .feedbackMark {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 16px;
    height: 16px;
    opacity: 0;
}
.cell.feedback-wrong .feedbackMark {
    background-image: url(icon_wrong_red.png);
    background-size: 16px 16px;
}
.cell.feedback-correct .feedbackMark {
    background-image: url(icon_correct_green.png);
    background-size: 16px 16px;
    bottom: auto;
    top: 0px;
}



.memoCells {
    position: absolute;
    top: 0px;
    left: 0px;
    left: 0%;
    width: 100%;
    display: none;
}

.cell.selected .memoCells {
    display: block;
}

.cell.hasMarkedMemo .memoCells {
    display: block;
}
.cell.hasMarkedMemo .value {
    display: none;
}

.memoCell {
    float: left;
    text-align: center;
    cursor: default;
    opacity: 0.3;
}

.mode-elim .memoCell {
    opacity: 1;
}

.memoCell.marked {
    opacity: 1;
}

.mode-elim .memoCell.marked {
    opacity: 0.3;
}

.game.mode-notes .cell.empty.selected .memoCells {
    display: block;
}


.board {
    float: left;
    position: relative;
}
.board-frame {
    font-family: Arial;
}
.board > .blockingLayer {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    display: none;
}

/*************************/
/* onscreen keyboard     */
/*************************/

.controllPanels {
    margin-top: 5px; /* denne fungerer ikke nå pga at prev sibling har float */
    padding-top: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    clear: both;
    font-family: Arial;
}

.controllPanels > .contentsBox {
    border: 1px solid gray;
    padding: 5px;
    width: 300px;
    float: left;
}

.controllPanels > .tabsBox {
    float: left;
}

.controllPanels .tabsBox > .tabLabel {
    position: relative;
    width: 50px;
    height: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 0px 10px 10px 0px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;

    /*
    border-radius: 50px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    */
}

.controllPanels .tabsBox > .tabLabel .line {
    position: absolute;
    background-color: white;
    top: 0px;
    bottom: 0px;
    width: 0px;
}
.controllPanels .tabsBox > .tab-notes {
    margin-bottom: 10px;
    background-image: url(icon_mark.png);
}
.controllPanels .tabsBox > .tab-normal {
    background-image: url(icon_pencil.png);
}
.controllPanels .contentsBox {
    position: relative;
}

.controllPanels .cont-notes .btn-clear .icon {
    width: 46px;
    height: 46px;
    background-image: url(icon_delete.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20px 20px;
}

.controllPanels .cont-notes .btn-clear .icon {
    background-image: url(icon_delete.png);
}

.controllPanels .cont-notes .button {
    width: 46px;
    height: 46px;
    margin: 4px;
    line-height: 46px;
    text-align: center;
    float: left;
    border-radius: 50px;
    padding: 0px;
    font-size: 30px;
    box-shadow: 1px 1px 2px 0px gray;
    position: relative;
    opacity: 0.3;
}

.mode-elim .controllPanels .cont-notes .button {
    opacity: 1;
}

.controllPanels .cont-notes.hasMarkedMemo .btn-clear {
    opacity: 1;
}

.controllPanels .cont-notes .button.marked {
    opacity: 1;
}

.mode-elim .controllPanels .cont-notes .button.marked {
    opacity: 0.3;
}

.mode-elim .controllPanels .cont-notes .btn-clear {
    display: none;
}

.controllPanels.mode-notes .tabLabel.tab-notes .line,
.controllPanels.mode-normal .tabLabel.tab-normal .line {
    left: -2px;
    width: 2px;
}
.controllPanels.mode-notes .tabLabel.tab-notes,
.controllPanels.mode-normal .tabLabel.tab-normal {
    background-color: white;
    border: 1px solid gray;
}
.controllPanels.mode-notes .contentsBox > .cont.cont-notes,
.controllPanels.mode-normal .contentsBox > .cont.cont-normal {
    display: block;
}

.controllPanels .contentsBox > .disablingLayer {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
//    background-color: white;
    opacity: 0.8; filter: alpha(opacity=80);
}
.controllPanels.active .contentsBox > .disablingLayer {
    display: none;
}

/*************************/
/* fasit-mode            */
/*************************/

/*
@-webkit-keyframes zoomText {
    0%   { font-size: 1%; }
    100%   { font-size: 100%; }
}
*/

@-webkit-keyframes bulgeText {
    0%   { font-size: 100%; }
    50% { font-size: 150%; }
    100%   { font-size: 100%; }
}

@-webkit-keyframes shakeText {
    0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
    10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
    20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
    30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
    40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
    50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
    60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
    70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
    80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
    90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
    100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
}

.mode-fasit .menubar > * {
    visibility: hidden;
}
.mode-fasit .menubar .timerValue,
.mode-fasit .menubar > .btn-restart {
    visibility: visible;
}

.mode-fasit .cell {
    transition: background-color 1s;
    -webkit-transition: background-color 1s;
}

.mode-fasit .cell.user {
    transition: background-color 1s;
    -webkit-transition: background-color 1s;
}

.mode-fasit .cell.feedback-wrong .feedbackMark,
.mode-fasit .cell.feedback-correct .feedbackMark {
    opacity: 1;
    transition: opacity 1s;
    -webkit-transition: opacity 1s;
    transition-delay: 1s;
    -webkit-transition-delay: 1s;
}


/*
.mode-fasit .cell.feedback-missingInput {
    -webkit-animation: zoomText 0.5s;
}
*/

.mode-fasit .cell.feedback-correct .value {
    color: green;
    -webkit-transition: color 1s;
    transition-delay: 1s;
    -webkit-transition-delay: 1s;
    -webkit-animation: bulgeText 1.5s;
}

.mode-fasit .cell.feedback-wrong .value {
    width: 16px;
    width: 30%;
    line-height: 16px;
    font-size: 12px;
    color: red;
    transition: width 1s, line-height 1s, font-size 1s;
    -webkit-transition: width 1s, line-height 1s, font-size 1s, color 1s;
    transition-delay: 1s;
    -webkit-transition-delay: 1s;
    -webkit-animation: shakeText 0.1s 5;
}
.mode-fasit .cell.feedback-wrong .fasit {
    left: 0%;
    transition: left 1s;
    -webkit-transition: left 1s;
    transition-delay: 1s;
    -webkit-transition-delay: 1s;
}


.mode-fasit .cell.hasMarkedMemo .memoCells {
    left: 40px;
    left: 100%;
    transition: left 1s;
    -webkit-transition: left 1s;
    transition-delay: 1s;
    -webkit-transition-delay: 1s;
}
.mode-fasit .cell.feedback-missingInput .fasit {
    left: 0%;
    transition: left 1s;
    -webkit-transition: left 1s;
    transition-delay: 1s;
    -webkit-transition-delay: 1s;
}


.mode-fasit .board > .blockingLayer {
    display: block;
}


/*************************/
/* game selector         */
/*************************/


.gameSelector {
    padding: 16px 15px 12px 16px;
    background-color: #305e78;
    position: relative;
    width: 480px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    overflow: hidden;
}


.gameSelector .label1,
.gameSelector .label2 {
    font-family: Arial;
    font-size: 13px;
    letter-spacing: 1px;
    position: absolute;
    top: -16px;
}

.gameSelector .label1 {
    left: 10px;
    color: #fff;
}

.gameSelector .label2 {
    right: 10px;
    color: #b3b3b3;
}


.gameSelector .slider {
    position: relative;
    height: 20px;
    background-color: white;
    width: 262px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    float: left;
    background: -webkit-linear-gradient(left, #fff 0%,#444 100%); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(left, #fff 0%,#444 100%); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(left, #fff 0%,#444 100%); /* For Firefox 3.6 to 15 */
    background: linear-gradient(left, #fff 0%,#444 100%); /* Standard syntax */
    box-shadow: -1px -1px 0px 0px #2c2c2c;
    margin-top: 8px;
}

.gameSelector .knob {
    position: absolute;
    left: 0px;
    top: 1px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    width: 18px;
    height: 18px;
    background-color: black;
    background: -webkit-linear-gradient(right, #b9dcf2 0%,#478ab7 100%);
    box-shadow: 0px 0px 0px 0px gray;

}
.gameSelector .knob-hitarea {
    position: absolute;
    width: 46px;
    height: 46px;
    top: -16px;
    left: -13px;
}

.gameSelector .btn-mode-elim,
.gameSelector .btn-newGame {
    float: left;
    margin-left: 19px;
    margin-top: 6px;
    font-family: Arial;
    font-weight: bold;
    font-size: 14px;
}

html {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body.error {
    text-align: center;
    width: 400px;
}

/*************************/
/* Brettnummer           */
/*************************/

.brettNummer {
    font-family: Arial;
    font-size: 13px;
    margin-top: 15px;
}

/* Hide text-selection */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*************************/
/* media query            */
/*************************/

@media only screen and (min-width: 519px) {
.game {
    width: 546px;
}
.controllPanels > .contentsBox.layout-6x6 {
    width: 497px;
}
.controllPanels > .contentsBox.layout-9x9 {
    width: 540px;
    padding: 5px 2px;
}

.game-kakuro .controllPanels > .contentsBox {
    border: 1px solid gray;
    padding: 5px;
    width: 300px;
    float: left;
}

.mode-fasit .cell.feedback-wrong .value {
    width: 16px;
    width: 23%;
    line-height: 16px;
    font-size: 12px;
    color: red;
    transition: width 1s, line-height 1s, font-size 1s;
    -webkit-transition: width 1s, line-height 1s, font-size 1s, color 1s;
    transition-delay: 1s;
    -webkit-transition-delay: 1s;
    -webkit-animation: shakeText 0.1s 5;
}

}