body {
  all: unset;
  margin: 0;
  width: 100%;
  height: 100%;
  display: block;
}

body > div {
  width: 100%;
  height: 100%;
}

.wp-site-blocks {
  display: none;
}

/* Canvas */
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: block;
  margin: 0;
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  overflow: hidden;
}

canvas:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

/* Annotations */
#labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.section-button {
  border-radius: 32px;
  border: 0px none;
  box-shadow: rgba(0, 0, 0, 0.9) 0px 2px 4px;
  box-sizing: border-box;
  pointer-events: auto;
  cursor: pointer;
  height: 24px;
  padding: 8px;
  width: 24px;
  background: rgb(255, 255, 255);
  transition: opacity 0.6s linear;
  opacity: 1;
}

.case-button {
  border-radius: 32px;
  border: 0px none;
  box-shadow: rgba(0, 0, 0, 0.9) 0px 2px 4px;
  box-sizing: border-box;
  pointer-events: auto;
  cursor: pointer;
  height: 24px;
  padding: 8px;
  width: 24px;
  background: rgb(255, 255, 255);
  transition: opacity 0.6s linear;
  opacity: 0;
  pointer-events: none;
}

.focus .case-button {
  opacity: 0.2;
  pointer-events: auto;
}

.focus .case-button.focus {
  opacity: 1;
  pointer-events: auto;
}


.case-button.active {
  border: 3px solid rgb(22, 179, 153);
}

.case-button.active + .case-button:not(.active),
.case-button.hide {
  opacity: 0.2;
}

.case-button.hide {
  pointer-events: none;
}

.case-button.show {
  opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.9) 0px 2px 4px;
  pointer-events: auto;
}

.section-text,
.case-text {
  background: rgb(255, 255, 255);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.9) 0px 2px 4px;
  color: rgba(0, 0, 0, 0.8);
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 18px;
  font-weight: 700;
  left: calc(100% + 1em);
  overflow-wrap: break-word;
  padding: 0.5em 1em;
  position: absolute;
  top: 50%;
  width: max-content;
  transform: translateY(-50%);
  transition: opacity 0.6s ease 0s;
  opacity: 1;
}

.left .section-text,
.left .case-text {
  left: auto;
  right: calc(100% + 1em);
}

.focus .section-button {
  opacity: 0;
  pointer-events: none;
}

.section-button.hide {
  opacity: 0;
  pointer-events: none;
}

/* Text Panel */
#case-panel {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0s;
  padding: 50px;
  box-sizing: border-box;
  z-index: 50;
}

#case-panel.show {
  opacity: 1;
}
#case-panel.show .wrapper {
  pointer-events: auto;
}

.wrapper {
  padding: 50px;
  background: rgba(247, 247, 247, 0.8);
  border-radius: 25px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Menu Panel */
#side-panel {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
  transition: left 0.6s ease 0s;
}

#side-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#side-panel li {
  margin: 0;
  padding: 0;
}

#side-panel button {
  pointer-events: auto;
  cursor: pointer;
  font-size: 32px;
  width: 60px;
  height: 60px;
  margin-top: 25px;
  border: 1px solid #ccc;
  border-radius: 0 10px 10px 0;
  position: relative;
}

#side-panel button i {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
}

#side-panel #btn-home i:first-child {
  opacity: 1;
}

#side-panel #btn-home i {
  opacity: 0;
  transition: opacity 0.6s ease 0s;
}

/* Navigation panel  */
#nav-panel {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  transition: width 0.6s ease 0s;
  background: #f1f1f1;
  z-index: 10;
  overflow-x: hidden;
}

.nav-panel-wrapper {
  padding: 20px;
  width: 250px;
  box-sizing: border-box;
}

.nav-logo {
  font: 700 15px/1.5em "Futura", "Helvetica Neue", sans-serif;
  color: #222;
  margin-bottom: 20px;
  height: 60px;
  display: inline-block;
}

.nav-logo img {
  height: 100%;
  vertical-align: middle;
  width: auto;
  margin-right: 10px;
}

.nav-search {
  width: 100%;
  line-height: 1.5;
  margin-bottom: 20px;
  box-sizing: border-box;
}

#nav-panel ul {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}

#nav-panel li {
  margin: 0;
  padding: 0;
}

#nav-panel a {
  color: #494949;
  text-decoration: none;
}

#nav-panel a:hover {
  color: #c8c8c8;
}

#nav-panel .active a {
  color: #c8c8c8;
}

#nav-panel .nav-icon {
  float: right;
  font-size: 18px;
  font-weight: bold;
}

/* #nav-panel .nav-menu-main-item:after { */
/* content: '\02795'; Unicode character for "plus" sign (+) */
/* font-size: 13px; */
/* color: white; */
/* float: right; */
/* margin-left: 5px; */
/* } */

/* #nav-panel .nav-menu-main-item.active:after { */
/* content: "\2796"; Unicode character for "minus" sign (-) */
/* } */

#nav-panel .nav-menu-sub {
  margin-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

/* Help Dialog */
.modal {
  display: none;
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #101010;
  opacity: 0;
  transition: opacity 0.6s ease 0s;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  margin-top: 100px;
  padding: 20px;
  border: 1px solid #888;
  width: 70%;
  animation: fadein 0.6s;
  z-index: 101;
  position: relative;
  overflow: auto;
  border-radius: 10px;
}

.modal-content hr {
  border: 1px solid gray;
}

.nav-close-button.icon,
.help-close-button.icon {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.nav-close-button.icon:hover,
.nav-close-button.icon:focus,
.help-close-button.icon:hover,
.help-close-button.icon:focus {
  color: #000;
}

.help-close-button.text {
  color: #000;
  background: #4caf50;
  border-radius: 2px;
  cursor: pointer;
  padding: 10px;
  float: right;
}

.help-close-button.text:hover,
.help-close-button.text:focus {
  background: #1e824c;
}

#logo {
  position: absolute;
  z-index: 10;
  bottom: 10px;
  right: 10px;
  height: 100px;
  width: 100px;
  display: block;
}

#logo img {
  height: 100%;
  width: auto;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive content */
@media only screen and (max-width: 600px) {
  .modal-content {
    margin-top: 0;
    width: 100%;
  }
}
