* { margin: 0; padding: 0; }

body { font-family: Arial; }

html, body {
    height: 100%;
    width: 100%;
    background: url(../images/bg.jpg);
    overflow: hidden;
}

.clear { clear: both; }
small { font-size: 12px; }

/* Layout */
#wrap {
    position: relative;
    width: 100%;
    height: 100%; 
}

#game-name {
    font-size: 30px;
    text-align: center;
}

#game-time {
    color: #333;
    margin: 10px 0;
    box-shadow: 0 0 1px #000;
    background: #594;
    height: 40px;
    padding-left: 20px;
    line-height: 40px;
    font-size: 20px;
}

#pairs { 
    margin: 10px 0;
    text-align: center;
}

.button {
    color: #333;
    width: 50%;
    padding: 10px 0;
    text-align: center; 
    background: -webkit-gradient(linear,0% 40%,0% 70%,from(#F5F5F5),to(#F1F1F1));
    font-weight: bold;
    border: none;
    border-top: 1px solid #aaa;
    border-right: 1px solid #aaa;
    cursor: pointer;
    text-shadow: 0 1px 0 #fff;
}

#toolbar {
    -moz-box-shadow: 0 0 3px black;
    -webkit-box-shadow: 0 0 3px black;
    -o-box-shadow: 0 0 3px black;
    box-shadow: 0 0 3px black;
    position: absolute;
    top: 0;
    right: 0;
    /*background: #333;*/
    background-image: url(../images/transpgreen.png);
    height: 100%;
    width: 200px;
    list-style: none;
    color: #aaa;
    padding-top: 20px;
    text-shadow: 0 1px 0 #fff;
}

/* Options */
#maps {
    margin: 0 auto 10px auto;
    width: 280px;
}

#maps li {
    display: inline;
    list-style: none;
    margin: 0 1px;
    cursor: pointer;
}

/* Gameover */
.shuffle { margin-left: 30px;}

#tile-style {
    width: 100px;
    padding: 3px;
}

@media (max-width: 320px) {
    #undo { left: 25%; }
    #options-button { right: 25%; }
    #toolbar {
        width: 100%;
        height: 90px;
    }
    #game-time { 
        border-bottom: 3px solid #333;
        -moz-box-shadow: 0 0 3px black;
        -webkit-box-shadow: 0 0 3px black;
        -o-box-shadow: 0 0 3px black;    
    }
    body, html { overflow: auto; }
    canvas { margin-top: 130px; }
    #pairs {
        width: 50%;
        position: absolute;
        top: 68px;
        right: 10px;
        color: #333;
    }
    .button {
        bottom: 0;
        margin: 0;
        width: 25%;
        position: fixed;
    }
    
    .button.left { left: 0; }
    .button.right { right: 0; }
}

@media only screen
and (min-width : 321px)
and (max-width : 480px) {
    body, html { overflow: auto; }
    #toolbar {
        width: 100px;
    }
    #game-name {
        font-size: 20px;
    }
    .button { font-size: 9px; }
    #game-time { padding-left: 10px; }
}
