* {
    /* box-sizing: border-box; */
    margin: 0;
    padding: 0;
}

#threejs_container {
    background: #74b0d8; /* Old browsers */
    background: -moz-linear-gradient(top,  #74b0d8 0%, #74b0d8 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #74b0d8 0%,#74b0d8 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #e6ae6e 0%,#b43c64 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    /* overflow: hidden; */
    width: 100vw;
    height: 100vh;
}

#threejs_ui_grid_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    position: absolute;
    /* width: 700px; */
}

.lds-dual-ring,
.lds-dual-ring:after {
  box-sizing: border-box;
  display: flex;
  justify-content: right;
  position: fixed;
  bottom: 20px;
  right: 20px;
}
.lds-dual-ring {
  color: white;
}
.lds-dual-ring:after {
  content: " ";
  width: 25px;
  height: 25px;
  margin: 8px;
  border-radius: 50%;
  border: 2.85px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  animation: lds-dual-ring 0.85s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.console-dummy {
  display: flex;
  flex-direction: column;
  position: fixed;          
  left: 0;                  
  bottom: 0px;              
  width: 300px;
  height: 64px;
  border-radius: 5px;
  margin-left: 15px;
  justify-content: right;
  pointer-events: none;
  padding: 5px;
  opacity: 1.0;
  z-index: 2;
}

.console-output-text {
  display: flex;
  flex-direction: column;
  opacity: 100%;
  font-size: 12px;
  color: #ffffff;
  width: 600px;
  height: 15px;
  border-radius: 5px;
  padding-left: 0px;
  padding-right: 10px;
  margin-bottom: 3px;
  opacity: 1.0;
  padding-left: 18px;
}

.console-input-text {
  display: flex;
  opacity: 100%;
  font-size: 14px;
  color: #fbff00;
  width: 290px;
  height: 17px;
  border-radius: 5px;
  margin-top: 2px;
  padding-left: 0px;
}

.cursor {
  width: 10px;
  height: 20px;
  background-color: #eee;
  margin-left: 5px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to {
      background: transparent;
  }
  50% {
      background: #eee;
  }
}

.inverse_label {
  visibility: hidden;
  display: flex;
  color: white;
  font-size: 12px;
  font-weight: bold;
  background-color: rgb(158, 23, 23);
  justify-content: center;
  padding: 3px;
  padding-right: 4px;
  margin: 5px;
  margin-left: 50px;
  width: 30px;
  border-radius: 4px;
}

#entity_selection_radio_main {
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: right;
    width: 12%;
    margin-left: 88%;
}

.white_text {
    font-size: 15px;
    color: white;
}

#entity_selection_radio_container {
    display: flex;
    flex-direction: column;
    background-color: #222;
    opacity: 0.8;
    padding-left: 9px;
    padding-top: 7px;
    padding-right: 13px;
    padding-bottom: 6px;
    border-radius: 5px;
}

#webcad_button_container {
    display: flex;
    justify-content: left;
}

#commands {
    padding: 5px;
    position: absolute;
    right: 1%;
    top: 2%;
    height: 65px;
    width: 180px;
    border-radius: 5px;
    border: 2px solid #f7941e;
    opacity: 0.7;
    font-family: Arial;
    background-color: #414042;
    color: #ffffff;
    font-size: 14px;
}

a {
    color: #f7941e;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

#webcad_button_toggle {
  -webkit-appearance: none;
}

.webcad_button {
  position: absolute;
  z-index: 999;
  height: 40px;
  width: 166px;
  background: #222;
  opacity: 0.8;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  transition: width 100ms linear;
}

.webcad_button:before {
  position: absolute;
  content: "";
  width: 16px;
  height: 2px;
  background: #eeff00;
  transform: rotate(225deg);
  transition: all 0.2s ease;
}

.webcad_button:after {
  position: absolute;
  content: "";
  width: 16px;
  height: 2px;
  background: #eeff00;
  transform: rotate(135deg);
  transition: all 0.2s ease;
}

.webcad_button_nav {
  opacity: 1;
  transition: all 0.5s ease-in-out;
  background: #222;
  width: 100%;
  border-radius: 5px;
  transform: translateX(10%);
  padding: 20px;
}

.webcad_button_nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
}

.webcad_button_nav li {
  opacity: 0;
  list-style: none;
}

.webcad_button_nav li:nth-child(1) {
  transform-origin: bottom;
  animation: itop 100ms 100ms linear forwards;
}

.webcad_button_nav li:nth-child(2) {
  transform-origin: bottom;
  animation: itop 100ms 150ms linear forwards;
}

.webcad_button_nav li:nth-child(3) {
  transform-origin: bottom;
  animation: itop 100ms 200ms linear forwards;
}

.webcad_button_nav li:nth-child(4) {
  transform-origin: bottom;
  animation: itop 100ms 250ms linear forwards;
}

.webcad_button_nav a {
  transition: all 0.25s linear;
  text-decoration: none;
  color: #eeff00;
  font-size: 20px;
  width: 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 0 0;
  border-radius: 15px;
}

#webcad_button_toggle:checked ~ label .webcad_button_nav {
  display: none;
  opacity: 0;
  transform: translateX(0);
}

#webcad_button_toggle:checked ~ .webcad_button:before {
  transform: rotate(90deg);
}

#webcad_button_toggle:checked ~ .webcad_button:before {
  transform: rotate(90deg);
}

#webcad_button_toggle:checked ~ .webcad_button:after {
  transform: rotate(0deg);
}

#webcad_button_toggle:checked ~ .webcad_button {
  width: 40px;
  transition: all 0.05s linear;
}

@media (max-width: 640px) {
  .webcad-button-container {
    width: 100%;
  }
}
@keyframes itop {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#view_notification_toast {
  display: none;
  flex-direction: column;
  padding-right: 7px;
  padding-top: 3px;
  padding-left: 7px;
  padding-bottom: 3px;
  border-radius: 5px;
  text-align: center;
  font-size: 12px;
  font-style: bold;
  background-color: rgb(158, 23, 23);
  color: rgb(255, 255, 255);
  position: fixed;
  top: 30px; /* or whatever vertical position you want */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.disabled {
  pointer-events: none;
}