.header-model{
  position: static;
}

input[type='checkbox']{ height: 0; width: 0; }

input[type='checkbox'] + label{
  position: relative;
  display: flex;
  margin: .6em 0;
  align-items: center;
  color: #9e9e9e;
  transition: color 250ms cubic-bezier(.4,.0,.23,1);
}
input[type='checkbox'] + label > ins{
  position: absolute;
  display: block;
  bottom: 0;
  left: 2em;
  height: 0;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: height 300ms cubic-bezier(.4,.0,.23,1);
}
input[type='checkbox'] + label > ins > i{
  position: absolute;
  bottom: 0;
  font-style: normal;
  color: #4FC3F7;
}
input[type='checkbox'] + label > span{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1em;
  width: 1em;
  height: 1em;
  background: transparent;
  border: 2px solid #9E9E9E;
  border-radius: 2px;
  cursor: pointer;  
  transition: all 250ms cubic-bezier(.4,.0,.23,1);
}

input[type='checkbox'] + label:hover, input[type='checkbox']:focus + label{
  color: #fff;
}
input[type='checkbox'] + label:hover > span, input[type='checkbox']:focus + label > span{
  background: rgba(255,255,255,.1);
}
input[type='checkbox']:checked + label > ins{ height: 100%; }

input[type='checkbox']:checked + label > span{
  border: .5em solid #FFEB3B;
}

input[type='checkbox']:checked + label > span:before{
  content: "";
  position: absolute;
  top: .9em;
  left: .2em;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: rotate(45deg);
  transform-origin: 0% 100%;
  animation: checkbox-check 125ms 250ms cubic-bezier(.4,.0,.23,1) forwards;
}

@keyframes shrink-bounce{
  0%{
    transform: scale(1);
  }
  33%{    
    transform: scale(1);
  }
  100%{
    transform: scale(1);    
  }
}
@keyframes checkbox-check{
  0%{
    width: 0;
    height: 0;
    border-color: #212121;
    transform: translate3d(0,0,0) rotate(45deg);
  }
  33%{
    width: .2em;
    height: 0;
    transform: translate3d(0,0,0) rotate(45deg);
  }
  100%{    
    width: .2em;
    height: .5em;    
    border-color: #212121;
    transform: translate3d(0,-.5em,0) rotate(45deg);
  }
}


.MBswitch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.MBswitch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.MBslider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.MBslider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .MBslider {
  background-color: #2196F3;
}

input:focus + .MBslider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .MBslider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.MBslider.MBround {
  border-radius: 34px;
}

.MBslider.MBround:before {
  border-radius: 50%;
}

/* The container */
.MBcontainer {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.MBcontainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.MBcheckmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.MBcontainer:hover input ~ .MBcheckmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.MBcontainer input:checked ~ .MBcheckmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.MBcheckmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.MBcontainer input:checked ~ .MBcheckmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.MBcontainer .MBcheckmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.MBlegend-item {
  display: none;
}

#ModelBasFlexContainer {
  display: flex;
  flex-wrap: wrap;
}

#MBchar-legend {
  background-color: var(--AT-gray-0);
  margin: 5px;
}

#MBchart-container {
  background-color: var(--AT-gray-0);
  margin: 5px;
  width: 440px;
  height: 493px;
}

#ModelBasMenu {
  background-color: var(--AT-gray-0);
  margin: 5px;
  /* float: left; */
  padding: 12px;
  width: 635px;
}


#ModelBasMenuRight {
  display: inline-block;
  padding-left: 5px;
  margin-left: 5px;
  border-left: 2px solid var(--AT-gray-1);
}

#ModelBasMenuLeft {
  display: inline-block;
}

.model-abm-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}

.center-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.model-block{
  /* background-color: rgb(237, 227, 153); */
  border-radius: .3rem;
  background: linear-gradient(270deg, #dcb234, #e08c43);
  color: rgb(127, 26, 26);
  font-weight: 500;
  font-family: 'Kanit', sans-serif;
  padding: 0.5vw;
  margin-bottom: 1vw;
  top: -1vw;
  position: relative;
  
  }
  .model-block:hover{
    color: rgb(155, 37, 77);
    transform: scale(1.1);
  }


.ModelCollapseButton {
  background-color: var(--palette-footer) !important;
  /* margin-bottom: 0 !important; */
}

.ModelCollapseButtonLu {
  background-color: rgba(0,0,0,0);
  border: 1px none rgba(0,0,0,0) !important;
}

.ModelCollapseArea {
  margin-left: 3vw;
}

.ref-titleModel {
  color:black !important;
  font-size: 1.6rem;
  font-family: "OpenSans", sans-serif;
  font-weight: bold;
  font-style: normal;

  display: flow-root;
  
  background-color: rgba(0,0,0,0);
  height: fit-content;
  width: fit-content;
  padding-left: 2vw;
  padding-right: 2vw;

  position: relative;
  margin-top: 2vw;
  margin-bottom: 2vw;
  margin-left: 0%;
  z-index: 90;
  /* left: 37vw; */
}

.model-abm-body {
  transform: scale(0.9);
  transform-origin: top center;
}

.model-abm-body>*{
  transform: scale(0.9);
  transform-origin: top center;
}

#ModelScrollDownHintBox {
  float: right;
  position: relative;
  bottom: 60px;
  right: 30px; 
  cursor: pointer;
  z-index: 1;
  animation: ModelScrollFadeOut 18s 1 forwards;
}

.ModelScrollDownHintSpan {
  display: block;
  width: 1.5vw;
  height: 1.5vw;
  border-bottom: 5px solid var(--AT-gray-2);
  border-right: 5px solid var(--AT-gray-2);
  transform: rotate(45deg);
  margin: -10px;
  animation: ModelScrollDownHintAnimate 2s infinite;
}

#ModelScrollDownHintSpan2 {
  animation-delay: -0.2s;
}

#ModelScrollDownHintSpan3 {
  animation-delay: -0.4s;
}

@keyframes ModelScrollDownHintAnimate {
  0% {
      opacity: 0;
      transform: rotate(45deg) translate(-20px, -20px);
  }
  50% {
      opacity: 1;
  }
  100% {
      opacity: 0;
      transform: rotate(45deg) translate(20px, 20px);
  }
}

@keyframes ModelScrollFadeOut{
  0%{
    opacity: 0;
  }
  20%{
    opacity: 0;
  }
  21%{
    opacity: 1;
  }
  93%{
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
}