.nav_tool_container{
    position: relative;
    margin: auto;
    max-width: 720px;
}
.scene_container{
    padding-top: 7%;
    padding-bottom: 7%;
    align-items: center;
    justify-content: center;
    margin: auto;
    overflow: hidden;
    background: black;
}

.scene_perspective{
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 80%;
}

.scene_offset{
    width: 100%;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    will-change: transform;
}

.scene {
    width: 100%;
    justify-content: center;
    margin: auto;
    transition: transform 550ms ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.surface{
    position: absolute;
    transform-origin: center;
    transform-style: preserve-3d;
    will-change: transform;
}

.mask{
    position: absolute;
    background: transparent;
    transform-style: preserve-3d;
    transform-origin: 0 0 0;
    -webkit-mask-size: 100.1%;
    -webkit-mask-position: 50% 50%;
    -webkit-mask-repeat: no-repeat;
    mask-size: 100.1%;
    mask-position: 50% 50%;
    mask-repeat: no-repeat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}


.motion{
    position: absolute;
    background: none;
    transform-style: preserve-3d;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

.tile {
    position: absolute;
    border: 0px solid black;
    line-height: 200px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-align: center;
    transform-style: preserve-3d;
    display: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.tile{
    background-size: cover;
}

.n_wall_tile, .e_wall_tile, .s_wall_tile, .w_wall_tile{
    background-size: cover;
    opacity: 0;
}

.nn_wall_tile, .ee_wall_tile, .ss_wall_tile, .ww_wall_tile{
    background-size: cover;
    opacity: 0;
}

.floor_tile{
    background-size: cover;
}

.entity_container > *{
    position: absolute;
}

.object_container {
    z-index: 1;
    height: 100%;
    width: 100%;
    position: relative;
}

.control_container {
    z-index: 2;
    height: 100%;
    width: 100%;
    position: relative;
    pointer-events: none; 
}

.control {
    position: absolute;
    /*background-color: rgba(128, 128, 128, 0.1);*/
    pointer-events: auto; 
    cursor: pointer;
    opacity: 0.8;
}

.control:hover, .control:active {
    /*position: absolute;*/
    /*background-color: rgba(255, 255, 0, 0.1);*/
    opacity: 1;
}

.control_move_left {
    height: 100%;
    width: 10%;
    top: 0;
    left: 0;
}

.control_move_forward {
    height: 10%;
    width: 80%;
    top: 0;
    left: 10%;
}

.control_move_right {
    height: 100%;
    width: 10%;
    top: 0;
    right: 0;
}

.compass {
    user-select: none;
    position: absolute;
    width: 10%;
    right: 5%;
    bottom: 5%;
    transition-duration: 550ms;
}

#player {
    user-select: none;
    position: absolute;
    opacity: 1;
    width: 15%;
    z-index: 10;
    transform: translate3d(0px,0px,0px);
}

#shadow {
    user-select: none;
    position: absolute;
    opacity: 0.85;
    z-index: 9;
    transform: translate3d(0px,0px,200px);
}

.counter {
    position: absolute;
    left: 40%;
    top: 5%;
    color: #ffffff;
}

.entity_near {
    visibility: visible;
    opacity: 1;
    transition: opacity 250ms ease-out;
}

.puzzle_icon {
    cursor: pointer;
}

.puzzle_icon_img, .puzzle_icon_b_img {
    transition: -webkit-filter 250ms ease-out, filter 250ms ease-out;
}

.puzzle_icon_img:hover, .puzzle_icon_b_img:hover {
    -webkit-filter: drop-shadow(2px 2px 0 white) drop-shadow(-2px -2px 0 white);
    filter: drop-shadow(2px 2px 0 white) drop-shadow(-2px -2px 0 white);
}

.puzzle-title {
    opacity: 0;
    position: absolute;
    font-size: 30px;
    left: 50%;
    transform: translate(-50%, 0%);
    padding-inline: 15px;
    border-radius: 100px;
    padding-block: 10px;
    transition: opacity 250ms ease-out;
    text-align: center;
    min-width: max-content;
    max-width: 175%;
    z-index: 10;
    pointer-events: none;
}

.puzzle-answer {
    font-family: 'Courier New';
}

.entity_near:hover > .puzzle-title {
    opacity: 1;
}

.entity_far {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 250ms, opacity 250ms ease-out;
    pointer-events: none;
}

* {
    animation-fill-mode: forwards;
}

.nav_buttons {
    max-width: 720px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.nav_buttons .left{
    justify-content: flex-start
}
.nav_buttons .left > *{
    display:flex; 
    float: left; 
    margin: 3px 5px 3px 0px;
}

.nav_buttons .center{
    justify-content: center;
    text-align: center;
    
}
.nav_buttons .center > *{
    justify-content: center;
    margin: 3px 5px 3px 0px;
}

.nav_buttons .right{
    justify-content: flex-end;
}
.nav_buttons .right > *{
    display:flex; 
    justify-content: flex-end; 
    float: right; 
    margin: 3px 0px 3px 5px;
}

#loading {
    position: absolute;
    transform: translate(-50%, -20px);
    width: 40px;
    display: none;
}

.arrow_left {
    border: solid #ececec;
    border-width: 0 10px 10px 0;
    padding: 10px;
    transform: rotate(135deg);
    position: absolute;
    top: 50%;
    left: 40%;
}

.arrow_forward {
    border: solid #ececec;
    border-width: 0 10px 10px 0;
    padding: 10px;
    transform: rotate(-135deg);
    position: absolute;
    top: 40%;
    left: 50%;
}

.arrow_right {
    border: solid #ececec;
    border-width: 0 10px 10px 0;
    padding: 10px;
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    right: 40%;
}

.dialog-box .emoji {
    height: 2.8vmin;
    padding: 0 0.2vmin 0 0.2vmin;
    vertical-align: -0.4vmin;
}