@font-face {
  font-family: 'mark-pro';
  src: url('../fonts/mark-pro/MARKPRO.OTF');
}

@font-face {
  font-family: 'mark-pro-bold';
  src: url('../fonts/mark-pro/MARKPRO-BOLD.OTF');
}

@font-face {
  font-family: 'mark-pro-black';
  src: url('../fonts/mark-pro/MARKPRO-BLACK.OTF');
}

@font-face {
  font-family: 'inter';
  src: url('../fonts/inter/Inter-VariableFont.ttf');
}

@font-face {
  font-family: 'bai-jamjuree';
  src: url('../fonts/bai-jamjuree/BaiJamjuree-Regular.ttf');
}

@font-face {
  font-family: 'LeagueGothic-Regular';
  src: url('../fonts/LeagueGothic-Regular.otf');
}

html,
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: mark-pro, Arial, sans-serif;
}

#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}


/*--CUSTOM STYLES--*/

#uiContainer {
    display: none;
    position: absolute;
    top: 50px;
    left: 50px;
    width:230px;
    background-color: #F7EFDB;
    max-width: 400px;
    padding: 0px 20px;
    padding-left: 60px;
    border-radius: 5px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    box-shadow: 0px 4px 4px 0px #00000040;
}

#uiContainer.nav1-loaded.nav2-loaded {
    display: block;
}

#uiContainer > div {
    margin: 15px auto;
}
#uiContainer h1 {
    margin:unset;
    font-size: 24px;
    width: 90%;
    color: #000;
    font-family: LeagueGothic-Regular;
    font-size: 55px;
    font-style: normal;
    font-weight: 400;
    text-transform: uppercase;
}
#uiContainer .dropdown-toggler .arrow {
  /*border: solid black;*/
  /*border-width: 0 3px 3px 0;*/
  padding: 3px;
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  transition: transform 0.2s ease-in-out;
  position: absolute;
    left: 15px;
    top: 25px;
    width: 30px;
}

#uiContainer .dropdown-content {
    display:none;
    margin-bottom: 25px;
    /*padding: 0 10px;*/
    /*border: 1px solid;*/
    /*border-radius: 5px;*/
    /*background-color: aliceblue;*/
    pointer-events: none;
}
#uiContainer.nav1-loaded.nav2-loaded .dropdown-content{
    pointer-events: all;
}

#uiContainer.show-dropdown .dropdown-toggler .arrow {
  transform: rotate(270deg);
}

#uiContainer.show-dropdown .dropdown-content {
  display: block;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #000000;
    font-family: inter, Arial, sans-serif;
    font-weight: 900;
}

#uiContainer select, .switch-scene-container select {
    width: 100%;
    padding: 10px;
    border: 2.5px solid #060000;
    border-radius: 8px;
    background-color: #fff;
    color: #000000;
    font-family: mark-pro, Arial, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: unset;
}

/* FOR select2 dropdowns */
#uiContainer .select2-selection__arrow {
    display: none;
}
#uiContainer .select2-container--default {
    padding: 10px;
    border: 2.5px solid #060000;
    border-radius: 8px;
    background-color: #fff;
    color: #000000;
    font-family: mark-pro, Arial, sans-serif;
}
#uiContainer .select2-container--default .select2-selection--single {
    border: unset;
}
#uiContainer .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 3px;
}

#uiContainer div.dropdown-container {
    margin: unset;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}
.dropdown-container::after {
    /*content: "˱˲";*/
    /*position: absolute;*/
    /*right: 8px;*/
    /*transform: rotate(90deg);*/
    /*font-size: 50px;*/
    /*letter-spacing: -8px;*/
    /*font-weight: lighter;*/
    /*pointer-events: none;*/
    /*margin-top: -16px;*/
}
.dropdown-container::after {
    content: url('/mapeditor/web/textures/scroll_arrow.png');
    position: relative;
    zoom: 0.03;
    margin-left: -700px; /* static Width of the icon plus extra*/
    pointer-events: none;
}


.btn-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    font-size: 14px;
}

button {
    display: block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000000;
    /*border: none;*/
    /*border-radius: 3px;*/
    border: 2.2px solid #060000;
    border-radius: 10px;
    box-shadow: 4px 4px 1px 1px #000000;
    cursor: pointer;
    font-family: mark-pro, Arial, sans-serif;
    font-weight: 900;
}

button:hover {
    background-color: #fff;
}

#uiContainer #clr-paths-button, #uiContainer .dropdown-toggler {
     cursor: pointer;
}
#uiContainer, .switch-scene-container {
        box-sizing: revert;
}

.switch-scene-container {
    position: absolute;
    top: 50px;
    right: 50px;
    width:200px;
    background-color: #F7EFDB;
    max-width: 400px;
    padding: 20px;
    border-radius: 5px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    box-shadow: 0px 4px 4px 0px #00000040;
    display: flex;
    flex-direction: column;
    align-items: center;
}
p {
    font-size: small;
}
select#switch-floor-button {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

#continue-section {
    display:none;
    margin-bottom: -20px;
}
#continue-section.show {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*Camera Mode Switch btn*/
.camera-toggle-btn {
  position: absolute;
  top: 25px;
  right: 15px;
  z-index: 10;
  /*background-color: #0d6efd;*/
  /*color: white;*/
  /*border: none;*/
  padding: 4px 6px;
  /*border-radius: 8px;*/
  font-size: 20px;
  cursor: pointer;
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.3);*/
  transition: background 0.3s, transform 0.2s;
}
.camera-toggle-btn:hover {
  /*background-color: #0b5ed7;*/
  transform: scale(1.05);
}
.camera-toggle-btn i {
  margin-right: 1px;
  transition: transform 0.3s;
}
.camera-toggle-btn.active {
  background-color: greenyellow;
}
.camera-toggle-btn.active i {
  /*transform: rotate(90deg);*/
    transform: rotate3d(0, 1, 0, 180deg);
}

.select2-container--default .s2-model-picker-dropdown .select2-results>.select2-results__options {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

@media only screen and (max-width: 600px) {
    
    #renderCanvas {
        height: calc(100% - 180px);
        /*Padding breaks Pointer accuracy*/
        margin-top: 100px;
        margin-bottom: 80px;
    }
    
    #uiContainer {
        top: 0;
        left: 0;
        min-width: calc(100% - 80px);
    }
    
    .switch-scene-container {
        top: unset;
        right: unset;
        bottom: 0;
        left: 0;
        min-width: calc(100% - 40px);
    }
    
}