/* general */
div.modal h1,
div.modal h2,
div.modal h3,
div.modal h4,
div.modal h5,
div.modal h6 { text-align: center; margin-bottom: 5px; }

/* overlay */
div#overlay {
    position: absolute;
    background: #000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: alpha(opacity=50);
    opacity: .5;
    z-index: 500;
    cursor: pointer;
}

div#overlay.hide { display: none; }

/* modal window */
div.modal {
    position: absolute;
    top: -10px;
    left: 50%;
    z-index: 1000;
    background: #fefefe;
    padding: 20px;
    box-shadow: 0 0 10px #333;
    -webkit-transition: top .4s linear;
    -moz-transition: top .4s linear;
    -o-transition: top .4s linear;
    -ms-transition: top .4s linear;
    transition: top .4s linear;
    min-width: 300px;
    border: 2px solid #333;
    color: #333;
}

div.modal.hide { top: -1000px; }

/* close button */
.modal-button {
    float: right;
    margin: 3px 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px 4px;
    color: #333333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-color: #ffffff;
    background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
    border: 1px solid #cccccc;
    border-color: #e6e6e6 #e6e6e6 #e6e6e6;
    border-bottom-color: #e6e6e6;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
    filter: progid:dximagetransform.microsoft.gradient(enabled=false);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
* { margin: 0; padding: 0; }

body { font-family: Arial; }

.clear { clear: both; }
small { font-size: 12px; }

.mahjong {
    font-family: Arial;
    background: url(../images/bg.jpg);
    overflow: hidden;
    position: relative;
}

/* Layout */
#mahjong-wrap {
    position: relative;
    width: 100%;
    height: 100%; 
}

#game-wrap {
    position: absolute;
    top: 60px;
    left: 0;
}

#game-name {
    color: white;
    font-size: 19px;
    text-align: center;
    position: absolute;
    text-align: center;
    line-height: 20px;
    display: inline-block;
    padding-left: 10px;
    text-shadow: 0 1px 0 black;
}

#pairs {
    font-size: 15px;
}

#game-time {
    color: #333;
    margin: 10px 0;
    box-shadow: 0 0 1px #000;
    background: #594;
    height: 30px;
    width: 80px;
    line-height: 30px;
    padding: 0 10px;
    border-radius: 2px 0 0 2px;
    font-size: 20px;
    float: right;
    position: absolute;
    right: 0;
    top: 0;
}

#pairs { 
    margin: 10px 0;
    text-align: center;
}

.button {
    display: block;
    float: left;
    color: #333;
    width: 60px;
    height: 40px;
    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;
}

.button:hover {
    background: #ddd;
}
#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: relative;
    top: 0;
    right: 0;
    left: 0;
    background-image: url(../images/transpgreen.png);
    height: 40px;
    padding: 5px 0;
    width: 100%;
    list-style: none;
    color: #aaa;
    text-shadow: 0 1px 0 #fff;
}

#toolbar li {
    float: left;
    top: 0;
    position: absolute;
    padding: 0 10px;
}
/* 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;
}
