@font-face {
    font-family: 'amor_sans_proregular';
    src: url('../fonts/amorsanspro-webfont.eot');
    src: url('../fonts/amorsanspro-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/amorsanspro-webfont.woff') format('woff'),
    url('../fonts/amorsanspro-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    height: 100%;
}

body {
    background: url('../img/background.png');
    font-family: "amor_sans_proregular", Helvetica, Arial, sans-serif;
    font-size: 25px;
    font-weight: bold;
}

#game {
    width: 90%;
    height: 90%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

#game .wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#game .wrapper .image {
    height: 50%;
    position: relative;
    width: 100%;
}

#game .wrapper .image > img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

#game .wrapper .image table {
    margin: 0 auto;
    border-collapse: collapse;
    position: absolute;
    left: 50%;
    top: 0;
}

#game .wrapper .image table.border td {
    border: 3px dashed #8B4835;
}

#game .wrapper .image table.puzzle-placeholder td {
    position: relative;
}

#game .wrapper .image table.puzzle-placeholder td div {
    width: 100%;
    height: 100%;
    position: relative;
}

#game .wrapper .image table.puzzle-placeholder td div.active-drop {
    background: #ffff00;
}

#game .wrapper .puzzle-container-outer {
    height: 30%;
    position: relative;
    width: 75%;
    margin: 25px auto 0 auto;
}

#game .wrapper .puzzle-container-outer a {
    display: inline-block;
    width: 8%;
    text-align: center;
    color: black;
    text-decoration: none;
    position: absolute;
    top: 0;
    height: 100%;
    line-height: 50%;
    overflow: hidden;
    font-size: 100px;
    background: rgba(255, 255, 255, .7);
}

#game .wrapper .puzzle-container-outer .prev {
    left: 0;
}

#game .wrapper .puzzle-container-outer .next {
    right: 0;
}

#game .wrapper .puzzle-container-outer .puzzle-container-inner {
    width: 80%;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    font-size: 0;
}

#game .wrapper .puzzle-container-outer .puzzle-container-inner .puzzle-container {
    height: 100%;
    width: 99999px;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
}

#game .wrapper .puzzle-container-outer .puzzle-container-inner .puzzle-container.active-drop {
    background: #ffff00;
}

#game .wrapper .puzzle-container-outer .puzzle-container-inner .puzzle-container .puzzle {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    line-height: 1;
}

#game .wrapper .puzzle {
    display: inline-block;
    margin: 0 15px 0 0;
    position: relative;
    -moz-touch-action: none;
    -ms-touch-action: none;
    touch-action: none;
}

#game .wrapper .puzzle img {
    width: auto;
    height: auto;
}

#game .wrapper table .puzzle {
    margin: 0;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

#game .popup-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    opacity: 0.7;
    display: none;
}

#game .popup {
    width: 600px;
    height: 300px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: none;
    background: #fff;
}

#game .popup .content {
    padding: 20px;
    background: #fff;
    border-radius: 30px;
    -moz-border-radius: 30px;
    -webkit-border-radius: 30px;
    border: 5px solid darkgreen;
    width: 100%;
    height: 100%;
    text-align: center;
}

#game .popup h1 {
    margin-bottom: 40px;
    font-weight: bold;
    font-size: 35px;
    color: #cbeb80;
}

#game .popup p {
    font-size: 20px;
}

#game .popup p a {
    color: black;
    text-decoration: none;
}

#game .popup .content img {
    max-width: 200px;
    max-height: 200px;
}

#game .popup-result-try-again .content {
    border-color: #000000;
}

#game .popup-result-try-again h1 {
    color: #000000;
    margin-bottom: 50px;
}

#game .popup-result-try-again .correct {
    color: green;
}

#game .popup-result-try-again .incorrect {
    color: #ff0000;
}

#game .popup-instruction .instruction {
    font-size: 28px;
    margin-top: 50px;
}

#game .popup-instruction .start {
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-size: 22px;
    margin-top: 30px;
    display: inline-block;
}

#refresh {
    position: fixed;
    background: #144900 url("../img/refresh.png") center center no-repeat;
    width: 128px;
    height: 128px;
    right: 0;
    bottom: 0;
    margin-top: -50px;
    cursor: pointer;
    z-index: 1000;
}
