@font-face {
    font-family: 'Herculanum';
    src: url('Herculanum.woff2') format('woff2'),
        url('Herculanum.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, :-webkit-full-screen {
    background-color: #000;
}
* {
    -webkit-tap-highlight-color: transparent;
    /* HERCULANUM font-family: 'Herculanum'; */
}
/* input {
    font-family: 'Herculanum';
    text-transform: lowercase;
} */
body {
    background-color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    pointer-events: none;
    margin: 0;
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input:focus, textarea:focus, select:focus{
    outline: none;
}

#initial-page {
    font-family: none;
    font-size: 16px;
}
#initial-page .imgbox {
    width: 90%;
    margin: 0 auto;
    overflow:hidden;
}
#initial-page a {
    color: #FBEBC0;
}

#stage {
    background-color: black;
    width: 640px;
    height: 480px;
    margin: 30px auto 30px auto;
    position: relative;
    overflow: hidden;
    margin-top: calc(50vh - 240px) !important;

    display:block;
}

/* @media only screen and (orientation:portrait){
    body {
        -webkit-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        transform: rotate(90deg);
    }
} */
  
@media only screen and (orientation:landscape){
    #stage {
        margin: 0 auto;
    }
}

#fade-cover {
    background-color: black;
    position: absolute;
    width: 640px;
    height: 350px;
    top: 18px;
}

#convert-lingo {
    margin: 60px auto 30px auto;    
    width: 640px;
    height: 100px;
    display: none;
}
#convert-lingo textarea {
    background-color: black;
    border: 1px solid gray;
    color: gray;
    width: 99%;
    height: 100%;
}
#convert-lingo input {
    float: right;
    cursor: pointer;
}

#frame-top, #frame-bottom {
    width: 640px;
    position: absolute;
}
#frame-top {
    height: 18px;
    top: 0px;
    z-index:521;
}
#frame-bottom {
    height: 16px;
    top: 368px;
    z-index:521;
}

#background {
    width: 640px;
    height: 350px;
    position: absolute;
    top: 18px;
}

.sprite {
    position: absolute;
    background-repeat: no-repeat;
    
    width: 10px;
    height: 10px;
    left: 0px;
    top: -100px;
    display: block;
}

.hotSpot {
    background-image: none;
}

.hotspot-development {
    /* make the hotspot slightly visible during development */
    border: 1px solid red;
    background-color: red;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";       /* IE 8 */
    filter: alpha(opacity=30) !important;  /* IE 5-7 */
    -moz-opacity: 0.3 !important;          /* Netscape */
    -khtml-opacity: 0.3 !important;        /* Safari 1.x */
    opacity: 0.3 !important;               /* Good browsers */
    z-index: 10;
}

#cursor {
    background-image: url(../images/cursors.png);
    position: absolute; 
    width: 20px; 
    height: 20px; 
    pointer-events: none;
    display:none;
    z-index: 550;
}
#cursor-mobile-bg {
    display:none;
    position:absolute;
    background-image: url(../images/mobile-selected.png);
    width: 45px;
    height: 44px;
    top: 6px;
}

#look-text {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #CC9900;
    position: absolute;
    top: 403px;
    left: 15px;
}

#controls {
    width: 640px;
    height: 96px;
    position: absolute;
    top: 384px;
    left: 0px;
    display:none;
    background-color: #000;
}
#controls-container {
    width: 640px;
    height: 96px;
    position: absolute;
}
#controls-1, #controls-2, #controls-walk {
    position: absolute;
    top: 19px;
    left: 381px;
}
#controls-2, #controls-walk {
    display: none;
}
#controls .controls-arrow {
    position: absolute;
    right: 6px;
    width: 17px;
    height: 16px;
}
#controls-1 .controls-arrow {
    top: 31px;
}
#controls-2 .controls-arrow {
    top: 8px;
}

#aux-controls {
    position: absolute;
    top: 384px;
    left: 0px;
    width: 360px;
    height: 96px;
    display: none;
}
#aux-controls .aux-control {
    display: none;
    position: absolute;
}

#snake-priestess div {
    position: absolute;
    color:#CC9900;
    font-weight: bold;
}
#snake-priestess .field {
    width:100px;
    height:16px;
    left: 50px;
    top: 8px;

    font-size:15px;
}
#snake-priestess .button {
    width:20px;
    height:20px;
    right: 17px;
    top: 7px;
}
#snake-priestess .letters {
    width: 180px;
    height: 55px;
    left: 15px;
    top: 33px;
}
#snake-priestess .letters span {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 15px;
}

#ariadne > div {
    position: absolute;
    color:#CC9900;
    font-weight: bold;
}
#ariadne .field {
    width: 264px;
    height: 16px;
    left: 15px;
    top: 9px;
    font-size: 11px;
    overflow: hidden;
}
#ariadne .field span{
    margin-right: 5px;
}
#ariadne .button {
    width:20px;
    height:20px;
    right: 9px;
    top: 5px;
}
#ariadne .words {
    width: 303px;
    height: 55px;
    left: 0;
    top: 31px;
}
/*HERCULANUM*/
/* #ariadne .words span {
    display: inline-block;
    text-align: center;
    font-size: 13px;
}
#ariadne .words .word{
    padding: 0 2.5px;
} */
/* #ariadne .words {
    width: 280px;
    height: 55px;
    left: 18px;
    top: 33px;
} */
#ariadne .words span {
    display: inline-block;
    text-align: center;
    font-size: 12px;
    padding: 1px 1px;
}
#ariadne .words span:first-child {
    padding-left: 11px;
}
#ariadne .words span::after {
    content: '-';
    padding: 0 1px 0 3px;
}
#ariadne .words span:last-child::after {
    content: '';
    padding: 0;
}

.control-button, .control-selected {
    position: absolute;
    top: 26px;
}
.control-button {
    width: 34px;
    height: 43px;
    top: 25px;
}
.control-button.mode-0 {
    display: none;
}
.mode-0 { left: 389px; }
.mode-1 { left: 432px; }
.mode-2 { left: 476px; }
.mode-3 { left: 518px; }
.mode-4 { left: 560px; }

#inventory {
    width: 230px;
    height: 58px;
    position: absolute;
    top: 403px;
    left: 15px;
    display: none;
}
#inventory-box {
    position: absolute;
}
.inventory-box-arrow {
    position: absolute;
    width: 18px;
    height: 17px;
}
#inventory-box-up {
    top: 9px;
    right: 7px;
    display: none;
}
#inventory-box-down {
    top: 31px;
    right: 6px;
    display: none;
}

#look-text,
#controls,
#inventory,
#aux-controls{
    z-index: 30;
}
#fade-cover{
    z-index: 600;
}

#setup-screen,
#quit-screen{
    z-index: 40;
}

#load-game-screen{
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 20;
}
#load-game-screen .load-image {
    display:block;
    position:absolute;
    top: 40px;
    left: 196.5px;
    width: 247px;
    height: 294px;
}

#load-game-screen .start-game {
    width:119px;
    height:36px;
    position: absolute;
    top: 375px;
    left: 260.5px;
    cursor:pointer;
    background-image: url(../images/start-button.jpg);
}

#splash-video-container {
    display:none;
    position: absolute;
    z-index: 20;
    background-color:#000;
}
#splash-video-container .sprite {
    display: none;
}
#splash-video-container .loading-app {
    color:#fff;
    font-size:14px;
    display:block;
    width: 640px;
    text-align: center;
    position:absolute;
    top:230px;
    left:0;
}

#sprite-mythweblogo {
    position:absolute;
    left:165px; 
    top: 200px;
}

#main-menu{
    display: none;
    background-image:url(../images/start-interface.png);
    width: 100%;
    height: 360px;
    position: absolute;
    z-index: 20;
    padding-top:120px;
    top:0;
}
#main-menu .main-menu-option{
    width: 320px;
    height: 50px;
    margin: 0 auto;
    display: block;
    margin-bottom: 20px;
    margin-top: 12px;
}

#main-menu .main-menu-credits{
    position: absolute;
    background-image: url(../images/button-credits.png);
    top: 429px;
    left: 10px;
    width: 151px;
    height: 41px;
}

#main-menu .main-menu-help {
    background-image: url(../images/button-help.png);
    position: absolute;
    top: 429px;
    left: 481px;
    /* left: 10px; */
    width: 149px;
    height: 41px;
}

#main-menu .main-menu-quit{
    display: none;
    background-image: url(../images/button-quit.png);
    position: absolute;
    top: 429px;
    left: 481px;
    width: 149px;
    height: 41px;
}

#main-menu.app-css .main-menu-quit{
    display:block;
}
#main-menu.app-css .main-menu-credits {
    display:none;
}
#main-menu.app-css .main-menu-help {
    left: 10px;
}

#sprites{
    width: 640px;
    /* height: 480px; */
    height: 385px;
    position:relative;
    z-index: 25;
    background-color: #000;
    display:none;
}

#inventory-container {
    position: absolute;
    top: 6px;
    width: 202px;
    height: 44px;
}
#inventory-container .inventory-item{
    margin-left: 6px;
    width:44px;
    height:44px;
    display:inline-block;
    background-image: url(../images/inventory.png);
}

#main-menu .loader{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    background:#000;
    z-index:100;
}
#root-video-container, #oracle-video-container, #scenes-video-container{
    position: absolute;
    left: 0;
    top: 0;
    height:0;
    z-index:200;
}
#oracle-video-container {
    width: 640px;
    height: 255px;
    overflow: hidden;
}
#scenes-video-container {
    z-index: 502;
}

#scenes-video-container video, #root-video-container video, #oracle-video-container video, #splash-video-container video{
    display:none;
    /* width: 640px;
    height: 350px; */
    position:absolute;
}
video.oracleVideo{
    height:480px !important;
}

.sprites-container{
    width:640px;
    height: 368px;
    /* overflow: hidden; */
    position: relative;
}

.sprites-container-global {
    /* cursor:default; */
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 480px;
}
#sprites-container-helpers{
    z-index: 30;
}
#sprites .sprite {
    z-index: 501;
}
#sprites video {
    z-index: 500;
    position:absolute;
    display:none;
}
video.oracleVideo{
    /* cursor:default; */
}

.sprites-container-global .sprite.sprite-1{
    z-index:100;
}
.sprites-container-global .sprite,
.sprites-container-global .sprite,
.sprites-container-global .sprite{
    z-index: 350;
}
.oracle-score{
    /* position:absolute;
    z-index:400;
    text-align: center;
    left: 335px;
    top: 430px;
    width: 50px; */
    font-size: 18px;
    color: #CC9900;
}

.hotspot{
    z-index:501 !important;
}

.hotspot.hotspot-disabled{
    z-index:30 !important;
    background-color: transparent !important;
    border:0;
}

.scene-sprite-loader{
    opacity: 0;
}

#setup-screen, #quit-screen {
    display:none;
    margin:0 auto;
    position:absolute;
}

#bottom-black-bar {
    position:absolute;
    top: 385px;
    width:640px;
    height:95px;
    z-index:5000;
    display:none;
    background-color: #000;
}

#oracle-settings{
    display:none;
    z-index: 300;
    position: absolute;
    top:0;
    left: 0;
    width:640px;
    height:480px;
}

#oracle-settings .oracle-option{
    position:absolute;
    width:124px;
    height:50px;
    top: 208px;
    cursor:pointer;
}
#oracle-settings .oracle-option.oracle-off{
    left:128px;
}
#oracle-settings .oracle-option.oracle-on{
    left:280px;
}

#oracle-settings .oracle-resume {
    display:none;
    background-color: #000;
    position: absolute;
    left: 48px;
    top: 42px;
    width: 429px;
    height: 160px;
}

#load-save-screen{
    position:absolute;
    top:0;
    left: 0;
    z-index:40;
    display:none;
    width:640px;
    height: 480px;
}
.load-save-screen {
    display:none;
    width: 538px;
    height:360px;
    position:absolute;
    top:50px;
    left:50px;
    font-family: 'Times New Roman';
    font-weight: bold;
    font-size:20px;
    color:#fed98e; 
}
.load-save-screen h1{
    display: block;
}
.load-save-screen .saves-list{
    position:absolute;
    left: 50px;
    top: 150px;
    width:520px;
    height: 144px;
    overflow:hidden;
}
/* 
.load-save-screen .saves-list div{
    position:relative;
    font-size:  16px;
    border-bottom: 1px solid #000;
}
.load-save-screen .saves-list div a{
    padding: 2px 6px;
    position:absolute;
    border: 1px solid;
    top: 5px;
    left: 5px;
    cursor:pointer;
}
.load-save-screen .saves-list div a:hover{
    background-color: rgb(250, 142, 142);
}
.load-save-screen .saves-list div a.btn-export{
    right: 5px;
    left:initial;
} */
/* .load-save-screen .saves-list div span{
    display:block;
    padding:8px 5px 8px 35px;
    cursor:pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.load-save-screen .saves-list div span:hover{
    background-color:rgb(252, 246, 193);
} */

.load-save-screen .save-row{
    height:36px;
    position:relative;
}

.load-save-screen .save-row:last-child{
    margin-bottom:500px;
}

.load-save-screen .saves-list .save-background,
.load-save-screen .saves-list .save-delete{
    float:left
}
.load-save-screen .saves-list .save-delete{
    margin-top: 1px;
}
.load-save-screen .saves-list div .btn-export{
    position:absolute;
    top: 7px;
    right: 45px;
    cursor:copy;
}

#load-save-screen span.save-name{
    margin: 0 10px;
    display:block;
    line-height: 33px;
    text-shadow: -1px -1px 2px #000, 2px 2px 4px #000;
    /* text-transform: uppercase; */
}


.load-save-screen .btn{
    width: 158px;
    border: 1px solid #FFF;
    font-size:18px;
    cursor:pointer;
    display:inline-block;
    position:absolute;
    bottom:10px;
    left: 240px;
    text-align: center;
}

.load-save-screen input[type=text]{
    margin:30px 0;
    padding:10px;
    font-size:18px;
    width: 300px;
}

#load-screen, #save-screen{
    width:640px;
    height: 480px;
    top:0;
    left:0;
    background-color:#000;
}

#save-remove-screen,
#import-hero-screen,
#save-success-screen,
#save-new-screen{
    top:0;
    left: 0;
    width:640px;
    height: 480px;
    background-color: rgba(0, 0, 0, 0.8);
}

.load-save-screen input[type=text].import-hero-code {
    position:absolute;
    background-color: transparent;
    margin:0;
    padding:0;
    left: 240px;
    top: 239px;
    width:150px;
    border:0;
    font-weight: bold;
    font-size: 16px;
    color: #53230d;
    text-shadow: 1px 1px 1px #000;
    text-transform: uppercase;
    text-align: center;
}

.load-save-screen input[type=text].save-game-name{
    position:absolute;
    background-color: transparent;
    margin:0;
    padding:0;
    left: 175px;
    top: 221px;
    width:290px;
    border:0;
    text-shadow: -1px -1px 2px #000, 2px 2px 4px #000;
    /* text-transform: uppercase; */
    /* font-family: 'Times New Roman';
    font-weight: bold; */
    font-size:20px;
    color:#fed98e; 

}
.load-save-screen .save-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#async-load {
    display:none;
    position: absolute;
    width:640px;
    height:480px;
    left: 0;
    top: 0;
    background: #000 url(../images/load.gif) no-repeat center;
    z-index: 10000;
    opacity: 0.5;
}

.hide{
    display:none !important;
}

/* #video-intro{
    position: absolute;
    left: 0;
    top: 0px;
    width: 640px;
    height: 480px;
    z-index:200;
} */

/* young woman's necklace */
#sprites-container-07am2 .hotspot {
    z-index: 520 !important;
}
/* driver's ticket */
#sprites-container-28am1 .hotspot, #sprites-container-56am1 .hotspot, #sprites-container-74am1 .hotspot {
    z-index: 520 !important;
}

#guidebook {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index:800;
}
#guidebook .back {
    width: 99px;
    height: 38px;
    position:fixed;
    bottom: 50px;
    left: 50px;
    background: url(../images/button-back.png) no-repeat center;
    cursor:pointer;
}

#error-modal, #message-modal {
    left: 110px;
    top: 55px;
    width: 420px;
    height:285px;
}

#error-modal .message, #message-modal .message {
    display:block;
    position:absolute;
    top:70px;
    left: 0;
    text-align: center;
    margin: 0 45px;
    width: 330px;
}

#error-modal .custom-message, #message-modal .custom-message {
    display:block;
    font-weight: 500;
    position:absolute;
    bottom:75px;
    left: 0;
    margin: 0 45px;
    font-size:10px;
    font-style: italic;
    width: 330px;
    text-align: center;
}

#message-modal .custom-message {
    margin-top: 40px;
}

#error-modal .custom-message {
    overflow: hidden;
    -webkit-line-clamp: 5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

#error-modal .button-ok, #message-modal .button-ok {
    cursor:pointer;
}

#zoom-controls {
    display:none;
    position:fixed;
    right: 10px;
    bottom: 5px;
}

#zoom-controls .sprite {
    position:initial;
    display: inline-block;
    margin-left:20px;
    cursor: pointer;
}
#debug {
    position:fixed;
    left: 0;
    top: 0;
    color:red;
    font-size: 14px;
    z-index:1000000;
}

.box-description{
    width: 60%;
    margin: 0 auto;
    color:#E06159;
}
.box-description-text {
    margin: 0 auto;
    text-align: justify;
    margin-top:20px;
    width: 80%;
}

.center-fit {
    width: 100%;
}

#button-container {
    width: 18%;
    margin: 0 41%;
    margin-top: -5.3%;
}


.imgbox {
    display: grid;
    width: 100%;
}
.button-wrapper {
    
    position:relative;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}
.play-button {
    display: none;
    width:100%;
    margin: 0 auto;
    cursor: pointer;
    /* background:url(images/browser_images/play.jpg); */
}
/* #button-container:hover .play-button {
    background:url(images/browser_images/rollover.jpg);
}
#button-container:hover .play-button.clicked {
    background:url(images/browser_images/onClick.jpg);
} */

#button-container .button-app {
    display:none;
    margin-left: 0.5%;
}
#button-container .button-app img {
    width: 100%;
}

.mainpage-bottom {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.mainpage-links a {
    display:inline-block;
    margin: 0 2%;
}

.mainpage-links{
    display: block;
}
.mainpage-links-mobile{
    display: none;
}

#cookie-msg {
    position: fixed; 
    bottom: 0px; 
    width: 100%; 
    text-align: center; 
    padding: 30px 50px; 
    background-color: rgb(34, 34, 34); 
    color: white; 
    font-size: 16px;
}
#cookie-msg .btn-accept {
    color: white; 
    text-decoration: none; 
    padding: 5px 10px; 
    border-radius: 5px; 
    background-color: rgb(242, 169, 32); 
    font-size: 11px;
}
.center-highlights{
    width: 90%;
    margin: 0 auto;
}

.mainpage-trailer video {
    width: 100%;
    max-width: 540px;
    margin-top:20px;
}

@media (max-width: 800px)  {
    .center-fit {
        width: 150%;
        margin-left: -25%;
    }

    #button-container {
        width: 26.5%;
        margin: 0 auto;
        margin-top: -8.1%;
    }
    .center-highlights {
        width: 100%;
    }

    .box-description{
        width: 90%;
        font-size:16px;
    }
    .box-description-text {
        width: 84%;
        margin-top:10px;
    }
    
    .play-button {
        width:100%;
    }
    #button-container .button-app img {
        width: 100%;
    }
    
    .mainpage-links{
        display: none;
    }
    .mainpage-links-mobile{
        display: block;
    }
    
    .mainpage-bottom {
        width: 90%;
    }
    .mainpage-trailer video {
        max-width: 90%;
    }

    #cookie-msg {
        width: initial;
        padding: 30px 10%;
    }
    #cookie-msg .msg span {
        display:block;
        margin-bottom: 5px;
    }

}