/*global style*/
body {
    /*height: 100%; */
    margin: 0; 
    padding: 0; 
    background-color: #cccccc;
} 

.cl,.clear { 
    display: block; 
    height: 0; 
    font-size: 0; 
    line-height: 0; 
    text-indent: -4000px; 
    clear: both; 
}

#languageDeposit,#countryDeposit {
    display: none;
}

#versionBox {
    position: fixed;
    width: 5.5em;
    bottom: 2px;
    right: 1.3em;
    z-index: 100;
    display: none;
}

#versionBox .closeElement {
    position: absolute;
    top: calc(1.5em + 2px);
    height: 1.5em;
    width: 1.5em;
    vertical-align: middle;
    background-color: #fff;
    right: auto;
    border: none;
    cursor: pointer;
    z-index: 1;
}
#versionBox .closeElement:hover {
    background-color: #e8d7bd;
}

a {
    color: black;
    text-decoration: none;
}
input[type="button"] {
    cursor: pointer;
}


#portalReport {
    display: block;
    font-weight: bold;
    width: 100%;
    text-align: center;
    padding: 0.5em;
    cursor: pointer;
    background-color: #bbb;
    border: solid 2px #ffffff;
}

#portalReport:hover {
    background-color: #fff;
}

#version {
    font-weight: bold;
    width: 100%;
    text-align: center;
    padding: 0.5em;
    background-color: #bbb;
    border: solid 2px #ffffff;
}


#loadingImage {
    position: absolute;
    width: 2em;
    height: 3em;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin: auto;
    border: solid 2px;
    border-bottom-color: #bbb;
    border-top-color: #bbb;
    border-radius: 9px;
    animation-name: loading;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='400 0 700 1000'><path d='M400 100S400 0 500 0h500c100 0 100 100 100 100v800s0 100-100 100H500c-100 0-100-100-100-100z' stroke='%23000'/><path d='M550 500c100 100 150 200 200 350 40-150 100-250 200-350-100-100-150-200-200-350-50 150-100 250-200 350z' fill='%23fff' stroke='%23000'/></svg>")  no-repeat 100% 100%;
    background-size: 100% 100%;
}

/* Standard syntax */
@keyframes loading {
    /*0% {width: 2em; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 30 30'><circle cx='15' cy='15' r='10' /></svg>")  no-repeat;}*/
    0%   { 
        width: 2em; 
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='400 0 700 1000'><path d='M400 100S400 0 500 0h500c100 0 100 100 100 100v800s0 100-100 100H500c-100 0-100-100-100-100z' stroke='%23000'/><path d='M550 500c100 100 150 200 200 350 40-150 100-250 200-350-100-100-150-200-200-350-50 150-100 250-200 350z' fill='%23fff' stroke='%23000'/></svg>")  no-repeat;
        background-size: 100% 100%;
        border-left-color: #eee;
        border-right-color: #bbb;
    }
    24.9%   { 
        width: 0; 
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='400 0 700 1000'><path d='M400 100S400 0 500 0h500c100 0 100 100 100 100v800s0 100-100 100H500c-100 0-100-100-100-100z' stroke='%23000'/><path d='M550 500c100 100 150 200 200 350 40-150 100-250 200-350-100-100-150-200-200-350-50 150-100 250-200 350z' fill='%23fff' stroke='%23000'/></svg>")  no-repeat;
        background-size: 100% 100%;
        border-right-color: #fff;
        border-left-color: #999;
    }
    25%  { 
        width: 0; 
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='400 0 700 1000'><path d='M400 100S400 0 500 0h500c100 0 100 100 100 100v800s0 100-100 100H500c-100 0-100-100-100-100z' fill='%23050000' stroke='%23000'/><path d='M450 300l150 200v-50L500 200zm170-190l-70 50 90 240 30-30zm110 230h40l30-240H700zm170 160l150-200-50-100-100 250zm-70-130l30 30 90-240-70-50zM670 630l-80 60h180l70-60c0-100-40-180-90-180s-80 80-80 180zm-90 100l-20 140h60l-10-140zm250-60l-10 130h60l-20-130zm-70 60l-10 140h60l-20-140zm-100-20l-20 90h60l-10-90z' fill='%23fff' stroke='%23000'/></svg>")  no-repeat;
        background-size: 100% 100%;
        border-left-color: #fff;
        border-right-color: #999;
    }
    50%  { 
        width: 2em; 
        border-left-color: #eee;
        border-right-color: #bbb;
    }
    74.9%  { 
        width: 0; 
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='400 0 700 1000'><path d='M400 100S400 0 500 0h500c100 0 100 100 100 100v800s0 100-100 100H500c-100 0-100-100-100-100z' fill='%23050000' stroke='%23000'/><path d='M450 300l150 200v-50L500 200zm170-190l-70 50 90 240 30-30zm110 230h40l30-240H700zm170 160l150-200-50-100-100 250zm-70-130l30 30 90-240-70-50zM670 630l-80 60h180l70-60c0-100-40-180-90-180s-80 80-80 180zm-90 100l-20 140h60l-10-140zm250-60l-10 130h60l-20-130zm-70 60l-10 140h60l-20-140zm-100-20l-20 90h60l-10-90z' fill='%23fff' stroke='%23000'/></svg>")  no-repeat;
        background-size: 100% 100%;
        border-right-color: #fff;
        border-left-color: #999;
    }
    75%  { 
        width: 0; 
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='400 0 700 1000'><path d='M400 100S400 0 500 0h500c100 0 100 100 100 100v800s0 100-100 100H500c-100 0-100-100-100-100z' stroke='%23000'/><path d='M550 500c100 100 150 200 200 350 40-150 100-250 200-350-100-100-150-200-200-350-50 150-100 250-200 350z' fill='%23fff' stroke='%23000'/></svg>")  no-repeat;
        background-size: 100% 100%;
        border-left-color: #fff;
        border-right-color: #999;
    }
    100% { 
        width: 2em; 
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='400 0 700 1000'><path d='M400 100S400 0 500 0h500c100 0 100 100 100 100v800s0 100-100 100H500c-100 0-100-100-100-100z' stroke='%23000'/><path d='M550 500c100 100 150 200 200 350 40-150 100-250 200-350-100-100-150-200-200-350-50 150-100 250-200 350z' fill='%23fff' stroke='%23000'/></svg>")  no-repeat;
        background-size: 100% 100%;
        border-left-color: #eee;
        border-right-color: #bbb;
    }
}

#notice_popUpBox {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(136, 136, 136, 0.8);
    z-index: 100;
    cursor: pointer;
}

#notice_popUpBox .content {
    background-color: #ddd;
    position: relative;
    max-width: 90%;
    max-height: 70%;
    border: solid 1px #000;
    font-size: 1.3em;
    text-align: center;
    padding: 2em;
    overflow: auto;
    cursor: pointer;
}

#notice_popUpBox .closeParent {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
    background-color: #eee;
    border-style: solid;
    border-width: 0px 0px 1px 1px;
}
/*#notice_popUpBox .closeParent:hover {
    fill: #ad6700;
    background-color: #e8d7bd;
}*/

/*begin main menu*/
#mainMenu {
    align-items: center;
    background-color: #dedede;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000"><g fill-opacity=".116" stroke="%23000"><path d="M340-60L90 40h10L350-60zm80-20L170 20h10L430-80zM210-20L-40 80h10L220-20zm10 40h-10L-40 120h10zM90 50H80l-250 100h10zM30 60l-250 100h10L40 60zm310-80L90 80h10L350-20zM160 30L-90 130h10L170 30zm0 30L-90 160h10L170 60zM340 930L90 1030h10l250-100zm80-20l-250 100h10l250-100zm-210 60l-250 100h10l250-100zm130 0L90 1070h10l250-100zM1210-20L960 80h10l250-100zm10 40h-10L960 120h10zm-130 30h-10L830 150h10zm-60 10L780 160h10l250-100zm130-30L910 130h10l250-100zm0 30L910 160h10l250-100zM120 260l-250 100h10l250-100zm80-20L-50 340h10l250-100zm-80 60l-250 100h10l250-100zM1130 260L880 360h10l250-100zm80-20L960 340h10l250-100zm-210 60L750 400h10l250-100zm10 40h-10L750 440h10zm-130 30h-10L620 470h10zm-60 10L570 480h10l250-100zm310-80L880 400h10l250-100zm-180 50L700 450h10l250-100zm0 30L700 480h10l250-100zM840-60h-10L580 40h10zM710-30h-10L450 70h10zm-60 10L400 80h10L660-20zm130-30L530 50h10L790-50zm0 30L530 80h10L790-20zM960 860L710 960h10l250-100zm80-20L790 940h10l250-100zm-210 60l-250 100h10l250-100zm10 40h-10l-250 100h10zm-130 30h-10l-250 100h10zm-60 10l-250 100h10l250-100zm310-80l-250 100h10l250-100zm-180 50l-250 100h10l250-100zm0 30l-250 100h10l250-100zM650 270L400 370h10l250-100zm80-20L480 350h10l250-100zm-210 60L270 410h10l250-100zm10 40h-10L270 450h10zm-130 30h-10L140 480h10zm-60 10L90 490h10l250-100zm310-80L400 410h10l250-100zm-180 50L220 460h10l250-100zm0 30L220 490h10l250-100zM430 580L180 680h10l250-100zm80-20L260 660h10l250-100zm-210 60L50 720h10l250-100zm10 40h-10L50 760h10zm-130 30h-10L-80 790h10zm-60 10l-250 100h10l250-100zm310-80L180 720h10l250-100zm-180 50L0 770h10l250-100zm0 30L0 800h10l250-100zM1180 690h-10L920 790h10zm-60 10L870 800h10l250-100zM910 570L660 670h10l250-100zm80-20L740 650h10l250-100zm-210 60L530 710h10l250-100zm10 40h-10L530 750h10zm-130 30h-10L400 780h10zm-60 10L350 790h10l250-100zm310-80L660 710h10l250-100zm-180 50L480 760h10l250-100zm0 30L480 790h10l250-100zM40 840l-250 100h10L50 840z"/></g></svg>');   
    background-position: center;
    background-repeat: repeat;
    background-size: 10%;
    border-radius: 0px 0px 6px 6px;
    display: flex;
    justify-content: space-around;
    margin: auto;
    max-width: 95%;
    position: relative;
    width: 1000px;
    z-index: 500;
}

#mainMenu .item {
    position: relative;
    font-weight: bold;
    border: solid 2px #dedede;
    border-radius: 5px;
    padding: 0px 3px;
    background-color: #c3c3c3;
    height: 2em;
    min-width: 2em;
    margin: 0;
    justify-content: center;
    flex-shrink: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    cursor: pointer;
}
#mainMenu .blink {
    background-color: #fff;
}
#mainMenu .item:hover {
    background-color: #f6f7f9;
    z-index: 31;
}
/*#mainMenu .item a {
    height: 100%;
    line-height: 2em;
}*/

#logoutLine {
    position: absolute;
    top: 2em;
    left: -2px;
    right: -2px;
    padding: 0em 0.5em;
    margin: 0;
    z-index: 30;
    white-space: nowrap;
    background-color: #dadada;
    border: solid 1px black;
    border-radius: 5px;
    list-style: none;
    line-height: 2em;
    display: none; 
}
#logoutLine:hover {
    background-color: #fff;
}
#page_login:hover #logoutLine {
    display: flex;
}

#mainMenu .inline {
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

#mainMenu svg {
    width: 2em;
    height: 2em;
}

#settingBox {
    position: absolute;
    top: 2em;
    right: 0;
    padding: 0.5em;
    margin: 0;
    z-index: 30;
    white-space: nowrap;
    text-align: left;
    background-color: #dadada;
    border: solid 1px black;
    border-radius: 5px;
    list-style: none;
    cursor: initial;
    overflow: auto;
    display: none; 
}
#setting_button:hover #settingBox {
    display: block;
}
#settingBox a {
    display: block;
    background-color: transparent;
    border: none;
    text-decoration: underline;
    padding: 0em 0.3em;
    line-height: 1.5em;
}
#settingBox a:hover {
    background-color: #fff;
}
#settingBox .news {
    text-decoration: underline;
    padding: 0em 0.3em;
    line-height: 1.5em;
    cursor: pointer;
}
#settingBox .news:hover {
    background-color: #fff;
}

#loginForm {
    background-color: #dadada;
    border-radius: 5px;
    border: solid 1px black;
    display: none; 
    left: -2px;
    list-style: none;
    margin: 0;
    padding: 0.5em;
    position: absolute;
    top: 2em;
    white-space: nowrap;
    width: 15em;
    z-index: 30;
}
#loginForm * {
    display: block;
    line-height: 1.5em;
    margin-bottom: 0.3em;
    cursor: pointer;
}
#loginForm a {
    text-decoration: underline;
}
#loginForm a:hover {
    background-color: #fff;
}
#guest_login:hover #loginForm {
    display: block;
}
#loginFB {
    align-items: center;
    background-color: #3A559F;
    border-radius: 4px;
    color: #fffffe;
    display: flex;
    font-family: Graphik LCG Web, Graphik Arabic Web Regular, -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;
    margin-top: 8px;
    padding: 6px 6px 1px;
}
#loginFB svg {
    flex-shrink: 0;
}
#loginFB span {
    flex-grow: 2;
    text-align: center;
}
#loginbutton {
    /*float: left;*/
    height: 1.8em;
    margin-right: 0.5em;
    margin-top: 4px;
}
#set_country {
    position: relative;
    line-height: initial;
    padding: 0em 0.5em;
    height: 2.5em;
    z-index: 30;
}

#accept_language {
    position: absolute;
    right: 0;
    top: 1.9em;
    display: none; 
    z-index: 2;
}
#set_country:hover #accept_language {
    display: block;
}
#accept_language .item {
    background-color: #cccccc;
    border: solid 1px;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0em 0.5em;
    text-decoration: underline;
}
#set_country svg {
    width: 2em;
    height: 100%;
}

#searchCard_knowledge_form {
    background-color: #e2e2e2;
    border-radius: 5px;
    border: solid 1px black;
    cursor: initial;
    display: none;
    margin: 0;
    overflow: auto;
    padding: 0.5em;
    position: absolute;
    right: -1px;
    top: 2em;
    z-index: 30;
}
#searchCard_knowledge:hover #searchCard_knowledge_form {
    display: block;
}
#searchCard_knowledge_form .mainInput{
    position: absolute;
    top: calc(0.5em + 1px);
    color: #999;
}
#searchCard_knowledge_form .tempInput{
    background: transparent;
    margin-bottom: 0.5em;
    position: relative;
    z-index: 1;
}

/*chat*/
#gamechatPanel {
    /*max-width: 60vw;*/
    background-color: #e2e2e2;
    border-radius: 5px;
    border: solid 1px black;
    cursor: initial;
    display: none;
    margin: 0;
    overflow: auto;
    padding: 0.5em;
    position: absolute;
    right: -1px;
    top: 2em;
    z-index: 30;
}
#notice_button:hover #gamechatPanel {
    display: block;
}
#gamechatSwitch {
    display: flex;
}
#gamechatSwitch .gamechatSwitch {
    border: solid 1px;
    background-color: #dadada;
    padding: 0.1em 0.2em;
    white-space: normal;
    cursor: pointer;
}
#gamechatSwitch .gamechatSwitch:hover {
    background-color: #fff;
    color: black;
}
#gamechat_msgBox {
    min-height: 3em;
    max-height: 60vh;
    max-width: calc(100vw - 3em);
    overflow: auto;
    padding: 0.2em;
    border: solid 1px;
    background-color: #f7f2e7;
    font-weight: normal;
}
#gamechat_msgBox div {
    display: none;
}
#gamechat_msgBox .gamechatLine {
    display: block;
    cursor: pointer;
    /*text-decoration: underline;*/
}
/*#gamechat_msgBox a {
}*/
#gamechat_msgBox .gamechatLine:hover {
    background-color: #d6cab1;
}
#gamechatWrite {
    display: flex;
}
#gamechatWriteconfig {
    position: absolute;
    display: none;
}
/*fb registration*/
#fb_registration {
    position: fixed;
    top: 2.8em;
    bottom: 4px;
    width: 1000px;
    max-width: 95%;
    left: 0;
    right: 0;
    background-color: #ccc;
    margin: auto;
    overflow: auto;
    z-index: 20;
}
#fb_registration form {
    position: relative;
    margin: 10%;
    overflow: auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
#fb_registration section {
    padding: 0.5em;
    background-color: #eee;
    border: solid 1px;
    border-radius: 2px;
    flex-grow: 1;
}
#fb_registration label {
    display: inline-flex;
}
#fb_registration input, #fb_registration button {
    margin: auto;
    /*width: 13em;*/
    display: inherit;
    flex-shrink: 0;
}
#fb_registration .closeElement{
    position: absolute;
    right: 0;
    top: 0;
    height: 1.5em;
    width: 1.5em;
    vertical-align: middle;
    background-color: #fff;
    border: solid 1px black;
    cursor: pointer;
    z-index: 3;
}
#fb_registration pre {
    position: absolute;
    top: -1em;
    bottom: -1em;
    left: 0em;
    right: 0em;
    padding: 1em;
    background-color: #fff;
    overflow: auto;
    white-space: normal;
    display: none; 
    z-index: 3;
}
#eula_service {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    height: 3em;
    align-items: flex-end;
}
#eula_service button {
    cursor: pointer;
}

#logout_from_fb {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    text-align: center;
    padding: 40vh 0;
    line-height: 2em;
    border: double 5px;
    display: none;
}
#logout_from_fb svg {
    position: absolute;
    height: 1.5em;
    width: 1.5em;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0px 0px 2px 2px;
    cursor: pointer;
}
#logout_from_fb input {
    cursor: pointer;
}
#set_view_mode {
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 5px;
}
#set_view_mode:hover {
    background-color: #f6f7f9;
}

.whisper_datalist {
    background-color: #f6f6f6;
    border: solid 1px black;
    overflow: auto;
    position: absolute;
    z-index: 31;
    min-height: 1em;
}
.whisper_datalist-item {
    padding: 2px 5px;
}
.whisper_datalist-item:hover {
    background-color: #ccc;
}