body,
html {
  overflow: hidden !important;
  background: unset !important;
  background-color: unset !important;
}

body.ios {
  position: fixed;
}

body.modal-open.ios {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
}

/* Hide scrollbar on desktop */
/* @media (max-width: 767px) {
  html {
    overflow: scroll;
    overflow-x: hidden;
  }
  ::-webkit-scrollbar {
    width: 0px;
    background: transparent;
  }
} */

#scene-div {
  width: 100%;
  height: 100%;
}

/* ios dialog position fix */
/* body.ios .a-dialog {
  left: calc(50% - 150px) !important;
  top: calc(50% - 100px) !important;
} */

#centered-entities {
  right: 0px;
}

.floating-overlay-item {
  z-index: 5;
}

/* .ios div:not(.no-ios-scroll) {
  overflow-x: hidden !important;
} */

/* body:not(.ios):not(.android) .modal-h-100 .modal-body { */
body .modal-h-100 .modal-body {
  height: 80vh;
}

/* body.android .modal-h-100 .modal-body {
  height: calc(95vh - 132px);
} */

body:not(.ios):not(.android) .modal-h-100 .modal-content {
  height: calc(var(--vh, 1vh) * 98);
}
.android .modal-h-100 .modal-content {
  height: calc(var(--vh, 1vh) * 95);
}

.ios .modal-h-100 .modal-content {
  height: calc(var(--vh, 1vh) * 97);
}

.modal-h-100 .modal-body {
  transition: 0.25s;
  overflow-y: auto;
}

@media (min-width: 576px) {
  .modal-h-100 .modal-dialog {
    margin: 0.5rem auto !important;
  }
}

.modal-h-100 .modal-dialog {
  overflow-y: initial !important;
}

@media (max-width: 767px) {
  /* #item-detail-modal .item-wrapper {
    margin-left: -15px;
    margin-right: -15px;
  } */
  #item-detail-modal .item-wrapper > .item-body-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.95);
}

.overlay-center {
  display: none;
  pointer-events: none;
  position: fixed;
  width: 100%;
  height: 100%;
  text-align: center;
}

#svg-target {
  width: 100%;
  height: 100%;
}

.nav-pills .nav-link.active {
  background-color: #332e2e !important;
  color: #eee !important;
}

button {
  outline: none !important;
}

.floating-button {
  display: none;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  position: fixed;
  z-index: 1005;
  color: #aaaaaadd;
  font-size: 54px;
  margin: 0;
  padding: 0;
  text-decoration: none;
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #333339ea;
  overflow-wrap: normal;
  /* text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; */
}

a.floating-button:focus {
  color: #aaaaaadd;
}

.toast[data-targetmodal] {
  cursor: pointer;
}
.notification-item-wrapper[data-itemid] {
  cursor: pointer;
}

.notification-important {
  color: #c7004c;
}

.notification-item::before {
  font-family: "Font Awesome 5 Free";
  content: "\f192";
}

.notification-badge {
  border-radius: 50%;
  background: #da0053;
  color: white;
  -webkit-text-stroke-color: white;
  -webkit-text-stroke-width: 2px;
  padding: 5px 10px;
  font-size: 1.2rem;
  font-weight: 400;
  position: relative;
}

.a-modal[aframe-injected] {
  z-index: 1006 !important;
}
#response-modal {
  z-index: 1061;
}
#edit-response-modal {
  z-index: 1062;
}
.bootbox.modal {
  z-index: 1065;
}
#overlay-init {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1007;
  cursor: pointer;
  text-align: center;
}

#overlay-init > #overlay-text {
  display: inline-block;
  position: relative;
  top: 50%;
  width: 80%;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  margin: 0 auto;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  color: white;
}

#alert-popup {
  position: absolute;
  top: 0;
  background: lightgrey;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}
.modal-title {
  /* color: #343d3f !important; */
  font-weight: 700;
}

.favorite-wrapper::after {
  content: "";
  clear: both;
  display: table;
}

.fav-item-wrapper span {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.fav-item-wrapper p.d-block.text-right > * {
  color: #007bff !important;
}

/* temporary fix for Aframe localization without building from source and hosting */

html[lang="ja"] .a-dialog-text {
  color: #fff0 !important;
}

html[lang="ja"] .a-dialog-text::before {
  color: #000 !important;
  content: "ARを使用するには、Safariでhttps接続し、モーションセンサーの使用を許可してください。" !important;
  word-break: break-all;
  text-align: center;
  width: 100%;
  display: block;
}
html[lang="ja"] .a-dialog-button {
  color: #fff0 !important;
  width: 100%;
}
html[lang="ja"] .a-dialog-ok-button::before {
  color: #fff !important;
  content: "閉じる" !important;
  word-break: break-all;
  text-align: center;
  display: block;
  margin-top: 13px;
}

html[lang="ja"] .a-dialog-allow-button::before {
  color: #fff !important;
  content: "許可" !important;
  word-break: break-all;
  text-align: center;
  display: block;
  margin-top: 13px;
}

html[lang="ja"] .a-dialog-deny-button {
  color: #fff !important;
  content: "キャンセル" !important;
  word-break: break-all;
  text-align: center;
  margin-top: 13px;
  display: none !important;
}

/* temporary fix for Aframe localization without building from source and hosting ends */
