#body,
#navMenu ul li a,
#slogan,
.overlayBox,
body {
    font-family: 'Droid Arabic Kufi', serif
}

body,
ul {
    margin: 0
}

.bgCover,
.overlayBox {
    position: fixed;
    z-index: 2
}

#fb-bannerboxclose:before,
.closeLink:before {
    content: "×"
}

#@import url(http://fonts.googleapis.com/earlyaccess/droidarabickufi.css);

@font-face {
    font-family: 'Droid Arabic Kufi';
    font-style: normal;
    font-weight: 400;
    src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.eot);
    src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.eot?#iefix) format('embedded-opentype'), url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.woff2) format('woff2'), url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.woff) format('woff'), url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.ttf) format('truetype')
}

@font-face {
    font-family: 'Droid Arabic Kufi';
    font-style: normal;
    font-weight: 700;
    src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.eot);
    src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.eot?#iefix) format('embedded-opentype'), url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.woff2) format('woff2'), url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.woff) format('woff'), url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.ttf) format('truetype')
}

body {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #F0F0F0
}

ul {
    padding: 0
}

.bgCover {
    background: #000;
    left: 0;
    top: 0;
    display: none;
    overflow: hidden
}

#slogan,
.closeLink,
.overlayBox,
header {
    display: block
}

.overlayBox {
    width: 500px;
    background: #fff;
    top: -1000px;
    text-align: center;
    padding-bottom: 5px
}

#fb-bannerboxclose,
.closeLink {
    font-weight: 700;
    position: absolute
}

.topclor,
.topclor_three,
.topclor_two {
    width: 33.33%;
    float: left
}

.topclor {
    border-top: solid 5px #2FA8C0
}

.topclor_two {
    border-top: solid 5px #D84533
}

.topclor_three {
    border-top: solid 5px #EAA91B
}

.closeLink {
    color: #40494F;
    border: 1px solid #AEAEAE;
    background: #CDCDCE;
    font-size: 31px;
    line-height: 0;
    padding: 11px 3px;
    z-index: 1;
    text-decoration: none;
    margin-left: 460px;
    margin-top: 15px
}

#joooha-banner {
    clear: both;
    margin: 10px 5px;
    text-align: center
}

header {
    position: relative;
    clear: both;
    width: 100%;
    margin-bottom: 10px
}

#middleheader {
    height: 154px;
    width: 100%;
    margin: 0;
    text-align: center;
    background: url(/assets/img/patterns-01.png) right top repeat-x #1FB1F3
}

#jouhalogo {
    float: right;
    height: 100%;
    margin: .5% 1% 0 0
}

#logo3 {
    height: 120px;
    transition: all .5s ease;
    margin-top: 10px
}

#logo3:hover {
    transform: scale(1.1)
}

#slogan {
    text-align: center;
    margin: -14px 17px 0 0;
    color: #fff;
    font-size: 16px
}

#navMenu {
    width: 100%;
    height: 50px;
    text-align: center;
    margin: auto;
    left: 0;
    right: 0;
    background-color: #0288d1;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1)
}

#navMenu>ul {
    display: inline-block;
    margin: 0;
    padding: 0
}

.fixedNavMenu {
    position: fixed !important;
    top: 0 !important;
    opacity: .95;
    z-index: 4
}

.menu-button {
    float: left;
    width: 100px;
    height: 50px;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    line-height: 26px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1)
}

#navMenu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    line-height: 50px;
    text-shadow: 1px 1px 9px #b5aaaa, 1px -1px 5px #726f6f;
    display: block;
    height: 50px
}

.green {
    background: #6AA63B
}

.purple {
    background: #936BE6
}

.blue {
    background: #0292C0
}

.yellow {
    background: #FBC700
}

.red {
    background: #D52100
}

.concrete {
    background: #95a5a6
}

.submenu {
    margin-top: -23px
}

.contact {
    float: left
}

.letter>img {
    margin: 10px 7px
}

.fb>img {
    margin: 13px 3px
}

.contact>img {
    max-height: 30px
}

.contact>a:hover {
    background-color: #1FB1F3
}

#my_popup {
    background-color: #fff;
    width: 410px;
    height: 500px;
    display: none;
    border-radius: 3px
}

.oasis_icon {
    padding: 0 10px
}

.oasis_icon>img {
    max-height: none;
    margin: 2px;
    height: 45px
}

.oasis_icon>span {
    display: block;
    float: left
}

#body {
    overflow: auto;
    background: #fbf5f5;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    width: 987px;
    box-shadow: 5px 5px 19px gray, -5px 5px 19px gray;
    margin: 25px auto auto;
    opacity: .96;
    padding-top: 25px
}

#hierarchy {
    display: block;
    width: 94%;
    border: 1px solid silver;
    box-shadow: 1px 1px 10px silver;
    background: #1FB1F3;
    margin: auto;
    font-size: 14px;
    text-align: right;
    padding-right: 15px;
    color: #fff;
    line-height: 34px
}

#hierarchy a {
    text-decoration: none;
    color: #3E05B5;
    overflow: hidden
}

#hierarchy img {
    float: left;
    margin: 5px
}

.thumbnail-frame {
    float: right;
    border-radius: 5px;
    border: 1px solid grey;
    text-align: center;
    box-shadow: 0 0 5px grey;
    background-color: #fff;
    transition: all .45s ease
}

.thumbnail-frame:hover {
    transform: scale(1.1);
    overflow: visible;
    box-shadow: 4px 4px 20px gray;
    z-index: 6
}

.thumbnail {
    width: 100%;
    padding: 0;
    height: 87%;
    display: block
}

.thumbnailimage {
    width: 100%;
    height: 100%;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    # -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.thumbnail-frame a {
    text-decoration: none;
    color: #000;
    display: block;
    font-size: 70%;
    white-space: nowrap;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

footer,
footer .game {
    color: #fff
}

footer {
    margin: 10px auto 0;
    background-color: #1fb1f3;
    opacity: .9;
    width: 100%;
    font-size: .8em;
    text-align: center;
    overflow: auto
}

footer>h1 {
    text-align: right;
    font-size: 14px;
    margin: 15px
}

footer>h2 {
    text-align: right;
    font-size: 12px;
    margin: 5px 15px
}

footer>p {
    text-align: justify;
    font-size: .88em;
    direction: rtl;
    margin: 5px 15px
}

footer a {
    text-decoration: none;
    color: #000;
    margin: 25px
}

@media (max-width:500px) {
    header {
        margin-bottom: 50px
    }

    .menu-button {
        float: none;
        width: 100% !important;
        height: 30px
    }

    #navMenu {
        height: 270px
    }

    #navMenu ul li a {
        line-height: 30px;
        height: 30px
    }

    .submenu>img {
        margin-top: 0;
        width: 22px
    }

    .contact {
        height: 30px;
        float: none;
        width: 100%
    }

    .contact>img {
        height: 25px;
        margin: 3px
    }

    .oasis_icon>img {
        height: 26px
    }

    #suggested-games {
        float: none !important
    }

    .oasis_icon>span,
    .thumbnail-frame {
        display: inline-block;
        float: none
    }

    #suggestionslist .thumbnail-frame {
        display: inline-block
    }

    .games,
    .gameslist .games {
        text-align: center
    }

    #description,
    .comments {
        width: 90% !important
    }

    .oasis_icon {
        background-color: #2d524d
    }

    .oasis_icon>span {
        vertical-align: top
    }
}

#gameframe,
#gameheader {
    margin: 0 auto;
    box-shadow: 0 0 5px grey
}

#iframe-wrapper,
#htmlgame-wrapper {
    width: intrinsic;           /* Safari/WebKit uses a non-standard name */
    width: -moz-max-content;    /* Firefox/Gecko */
    width: -webkit-max-content; /* Chrome */
    margin: 0 auto;
}

#gameheader,
#suggestionsheader {
    background-color: #4EABE9;
    color: #fff;
    text-align: center
}

@media (max-width:900px) {
    #hierarchy>img {
        display: none
    }

    #navMenu>ul {
        width: 100%
    }

    .menu-button {
        width: 10%
    }

    #navMenu ul li a {
        font-size: 10px
    }
}

#fb-banner {
    position: fixed;
    z-index: 2;
    top: -350px;
    right: 7px;
    background-color: #fff;
    line-height: 24px;
    font-size: 14px;
    text-align: center
}

#fb-bannerboxclose {
    right: 0;
    margin-top: -7px;
    margin-right: -7px;
    cursor: pointer;
    color: #fff;
    border: 1px solid #000;
    border-radius: 30px;
    background: #7C45F0;
    font-size: 19px;
    display: inline-block;
    line-height: 0;
    padding: 6px 1px;
    margin-bottom: -7px;
    z-index: 10
}

#gameheader,
.sectiontitle,
li {
    display: block
}

#gameheader {
    padding: 3px 0 2px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: relative
}

#gameheader h1 {
    font-size: 90%;
    line-height: 150%;
    margin: 0
}

#gameheader .fb-share-button {
    float: left;
    position: absolute;
    left: 12px;
    top: -7px
}

#gameframe {
    border: 1px solid #86b0ce
}

#game {
    overflow: hidden
}

#description {
    color: #fff;
    margin: 10px auto;
    width: 60%;
    background-color: #7ec3ed;
    text-align: right;
    padding: 10px;
    border: 1px solid silver;
    box-shadow: 1px 1px 5px gray;
    font-size: 80%
}

.comments {
    text-align: center;
    margin: auto;
    width: 60%
}

#suggested-games {
    float: right;
    overflow-y: visible;
    margin: 0 1% 40px 0;
    border: 1px solid #4daae8;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: 0 0 5px grey
}

#suggested-games h2 {
    font-size: 100%;
    padding: 0;
    margin: 0
}

#suggestionsheader {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: .8em;
    height: 20px
}

#suggestionslist {
    border: 1px solid #86b0ce;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: visible
}

.thumbnail-frame {
    height: 100px;
    width: 105px;
    margin: 6px 9px
}

.thumbnail-frame a {
    line-height: 13px
}

#games .thumbnail-frame {
    margin: 10px 15px
}

.separator {
    border-top: 1px solid #7C45F0;
    width: 90%;
    height: 1px;
    clear: both;
    margin: 20px auto
}

#games,
.sectiontitle {
    margin: 0;
    float: right
}

#randomgameswrapper {
    width: 98%;
    clear: both;
    overflow: visible;
    margin: 0 1% 0 0;
    padding-bottom: 10px
}

.sectiontitle {
    background: #4ba9e6;
    padding: 2px 2%;
    color: #fff;
    font-size: 1em;
    line-height: 150%;
    border: 1px solid #ababab;
    white-space: nowrap;
    transition: all .5s ease;
    box-shadow: 2px 2px 5px silver
}

#games {
    text-align: center;
    padding: 20px 0;
    clear: right;
    overflow: visible
}