@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Quicksand:wght@400;500;600;700&display=swap');

html {
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-family: "Quicksand", "Helvetica", "Arial", sans-serif;
}

div {
  margin: 0;
  padding: 0;
}

.bold {
  font-weight: bold !important;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
}

.material-symbols-outlined.bold {
  font-variation-settings: 'wght' 500
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1
}

.main-row {
  padding: 0;
}

.bmd-form-group {
  position: relative;
}

.nav li label {
  font-weight: normal;
  white-space: nowrap;
  text-align: left;
  margin-left: 5px;
}

.form-control[type="search"] {
  border: 0;
  box-shadow: none;
  height: 36px;
  transition: background 0s ease-out;
  padding-left: 28px;
  border-radius: 0;
  font-size: 18px;
  display: inline-block;
  width: auto;
  background-size: 0 100%, 100% 100%;
}

.search-icon {
  top: -4px;
  position: absolute;
  transition: 0.3s ease all;
}

.search-icon.focus {
  transition: 0.3s ease all;
  color: #e28441;
}

.form-control:focus, .bmd-form-group.is-focused .form-control {
  background-size: 100% 100%, 100% 100%;
  transition-duration: 0.3s;
  box-shadow: none;
}

.header {
  position: relative;
  padding: 0 10px;
  animation: 1s ease-out 0s 1 fadeIn;
  box-shadow: 0 4px 18px 0px rgba(0, 0, 0, 0.05), 0 7px 10px -5px rgba(0, 0, 0, 0.1);
  z-index: 2 !important;
}

.sidebar {
  position: absolute;
  height: fit-content !important;
  width: 20%;
  min-width: 250px;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1;
}

ul.nav,
ul.nav > li {
  display: inline-block;
}

ul.nav > li {
  margin-right: 6px;
}

ul.nav > li > a,
.header a.btn {
  padding: 8px 15px;
  margin: 10px 0;
  font-weight: 600;
  color: #555;
  line-height: 25px;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

ul.nav > li > a:hover,
.header a.btn:focus {
  border-color: #646464;
  background-color: transparent;
}

.header a.btn-close {
  padding: 8px 10px;
}

ul.nav > .active > a,
ul.nav > .active > a:hover,
ul.nav > .active > a:focus {
  color: #fff;
  background-color: #646464;
}

.main {
  padding: 0;
}

.panel {
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
}

.panel-heading {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.panel-body {
  color: #333;
}

#wallTextures .panel-body {
  height: calc(100vh - 200px);
  overflow-y: scroll;
}

.panel-body input.form-control {
  font-size: 16px;
  font-weight: bold;
  color: #e28441;
  max-width: 90px;
  box-shadow: none;
  border-radius: 6px;
}

.lead {
  display: block;
}

.sidebar .thumbnail-wrapper {
  padding: 4px;
}

.sidebar .thumbnail {
  padding: 4px;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar .thumbnail img {
  border-radius: 6px;
  transition: all 0.3s;
}

.sidebar .thumbnail:hover > img {
  transform: scale(1.1);
}

#loading-modal {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  text-align: center;
  background-color: rgba(50, 50, 50, 0.9);
}

#loading-modal h3 {
  text-align: center;
  color: #fff;
}

#loading-modal img {
  text-align: center;
  margin-top: 25vh;
  border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
  transform: scale(1);
  animation: pulse 2s infinite;
}

#viewer {
  display: none;
}

#floorplanner {
  display: none;
}

#items-wrapper {
  margin-bottom: 90px;
}

#add-items {
  display: none;
  padding: 20px;
  overflow-y: auto;
}

#camera-controls {
  position: absolute;
  bottom: 20px;
  right: 0;
  padding: 0 20px;
  text-align: right;
}

#floorplanner-controls {
  position: absolute;
  left: 0;
  top: 0;
  margin: 20px 0;
  padding: 0 20px;
  width: 100%;
}

#last-saved {
  position: absolute;
  bottom: 10px;
  left: 15px;
}

#powered-by-sithon {
  position: absolute;
  bottom: 50px;
  left: 15px;
  opacity: 0.7;
  transition: all 0.3s;
}

#powered-by-sithon:hover {
  opacity: 1.0;
}

#draw-walls-hint {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background-color: rgba(0, 0, 0, 0.50);
  color: #ffffff;
  padding: 5px 10px;
  z-index: 10;
  display: none;
}

#floorplanner-controls .btn {
  font-family: "Quicksand", "Helvetica", "Arial", sans-serif;
  font-size: 16px;
  font-weight: 600;
  background-color: #fff;
  border-color: #eee;
  border-radius: 8px;
  color: #505050;
  margin: 0.3125rem 1px;
  padding: 6px 12px;
  box-shadow: none;
  outline: 0;
  transition: all 0.3s;
}

.btn {
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn .material-symbols-outlined,
.nav a .material-symbols-outlined {
  position: relative;
  top: 6px;
  line-height: 15px;
}

.btn.bottom {
  padding: 6px;
  border-radius: 6px;
}

.btn-group-vertical > .btn:first-child:not(:last-child) {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  padding: 6px;
}

.btn-group-vertical > .btn:last-child:not(:first-child) {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 6px;
}

.btn-default {
  border: 1px solid #ccc !important;
}

a.add-item {
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  overflow: hidden;
}

a.add-item:hover {
  color: #333;
  border: 1px solid #555;
  text-decoration: none;
}

a.add-item img {
  margin-bottom: 10px;
  transition: all 0.3s;
}

a.add-item:hover > img {
  transform: scale(1.1);
}

.btn-file {
  display: inline-block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-file input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  filter: alpha(opacity=0);
  opacity: 0;
  cursor: inherit;
  display: block;
}

@media (max-width: 1280px) {
  ul.nav {
    width: 100%;
    text-align: center;
  }

  #camera-controls {
    bottom: 80px;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.9);
	}

	70% {
		box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}

#three-canvas, #viewer {
  width: 100%;
  height: 100%;
}

/* Default scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: #e28441;
  border: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e28441;
}
::-webkit-scrollbar-thumb:active {
  background: #e28441;
}
::-webkit-scrollbar-track {
  background: #666;
  border: 0px;
}
::-webkit-scrollbar-track:hover {
  background: #666;
}
::-webkit-scrollbar-track:active {
  background: #333;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
.swal2-modal::-webkit-scrollbar-thumb {
  border-radius: 0 0.3em 0.3em 0;
}
.swal2-modal::-webkit-scrollbar-track {
  border-radius: 0 0.3em 0.3em 0;
}
