a {
    color: #000;
    text-decoration: none;
    font-family:Arial;
}

a:hover {
    text-decoration: underline;
}

html{
    overflow:hidden;
}

body {
    background: #def;
}

#OfCourseItsMe {
    font-family:Arial;
    font-size: 11px;
    text-decoration:none;
    color: #78a;
}

#OfCourseItsMe a {
    font-weight: bold;
}

.canvas-wrapper {
    padding-left: 80px;
}

#canvas {
    border: 10px solid #78a;
    background: #161616;
    position:absolute;
    z-index:0;
    left: 70px;
}

#preview {
    position: absolute;
    left: 550px;
    border: 10px solid #78a;
    background: #161616;
    top: 20px;
    z-index: 1;
}

#preserve {
    position: absolute;
    left: 550px;
    border: 10px solid #78a;
    background: #161616;
    top: 250px;
    z-index: 1;
}

#canvas, 
.side, 
#preview, 
#preserve,
div.score-wrapper {
    position: static;
    display: inline-block;
    vertical-align: top;
}
.side {
    width: 220px;
}

#highscore {
    background: #78a;
    position:absolute;
    z-index: 100;

    font-family: 'Gochi Hand', sans-serif;
    font-size: 30px;
    color: #fff;

    width:400px;
    left: 70px;
    top: 300px;
    text-align: center;
    padding: 30px 0px;
    display:none;
}

#nick {
    border: 0px none;
    background: #78a;
    color:white;
    font-family: inherit;
    font-size: 20px;
}

#submit {
    cursor:pointer;
    font-family: inherit;
    display:block;
}

#favicon {
    display:none;
}

#edit, #best {
    width: 400px;
    position:absolute;
    right: -442px;
    top: 20px;
    z-index: 2;
    font-family: Arial;
    font-size:14px;
    border: 10px solid #000;
    background: #fff;

    display: none;
}

#edit table {
    border-collapse: collapse;
    background: #becfea;
    float:left;
    margin: 5px;
}

#edit td {
    width: 10px;
    height: 10px;
    background: #000;
    margin: 2px;
    border: 1px solid #fff;
}

#open, #open2 {
    position:absolute;
    left: -43px;
    top: 20px;
    padding:3px 10px;
    background: #000;
    color:white;
    transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

#best table {
    margin-top: 20px;
    margin-left: 50px;
    margin-bottom: 20px;
}

#open2 {
    top: 90px;
    left: -49px;
}

#best td {
    padding: 5px;
}

h1 {
    position:absolute;
    left: -200px;
    top: 200px;
    margin:0px;
    padding:0px;
    font-size: 60px;
    font-family: 'Lemon', cursive;
    color: white;
    text-shadow: -3px 3px #78a;

    transform: rotate(270deg);
    -ms-transform: rotate(270deg); /* IE 9 */
    -webkit-transform: rotate(270deg); /* Safari and Chrome */
}

#stat {
    font-family: 'Gochi Hand', sans-serif;
    color: white;
    text-shadow: 2px 2px #78a;
    font-weight: bold;
    font-size: 35px;
}

#xarg > img {
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:1000;
    border:0;
}

#restart {
    position:absolute; 
    z-index: 100; 
    left: 170px;
    top: 330px;
    font-size: 30px;
    font-family: 'Gochi Hand', sans-serif;
    display:none;
}


#home {
    display:none;
    color: #c33;
}

#slinks a {
    color: #c00;
}

.score-wrapper {
    position:absolute;
    left: 560px;
    top: 250px;
}
.score-button-wrapper {
    height: 100px;
}

#nick {
    background: white;
    color: #333;
    outline: none !important;
    border: none !important;
}

.instruction.mobile {
    display: none;
}


/* =========== RESPONSIVE ========== */
@media (max-width: 767px) {
    h1 {
        position: static;
        transform: none;
        font-size: 40px;
    }

    .canvas-wrapper {
        padding-left: 0;
        position: relative;
    }

    .side {
        width: calc(100% - 300px);
    }

    #canvas {
        position: static;
        display: inline-block;
        vertical-align: top;
    }

    #preview, #preserve {
        position: static;
        display: inline-block;
        width: 70px;
        /* margin-left: 10px; */
    }

    .score-wrapper {
        position: static;
    }
    .score-button-wrapper {
        height: 10px;
    }

    #stat {
        font-size: 24px;
    }

    #highscore {
        max-width: 300px;
        left: 50%;
        top: 50%;
        
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .instruction.desktop {
        display: none;
    }
    .instruction.mobile {
        display: block;
    }
}

@media (max-width: 413px) {
    h1 {
        font-size: 30px;
    }

    #canvas {
        width: 200px;
    }

    #preview, #preserve {
        width: 60px;
    }

    #stat {
        font-size: 20px;
    }
}