.w3-sidebar {
  height: 50%;
  width: 30%;
  background-color: #fff;
  position: fixed !important;
  z-index: 5;
  overflow: hidden;
  display: none;
  border-radius: 20px;
}

.w3-bar-block .w3-dropdown-hover,
.w3-bar-block .w3-dropdown-click {
  width: 100%;
}
.w3-bar-block .w3-dropdown-hover .w3-dropdown-content,
.w3-bar-block .w3-dropdown-click .w3-dropdown-content {
  min-width: 100%;
}
.w3-bar-block .w3-dropdown-hover .w3-button,
.w3-bar-block .w3-dropdown-click .w3-button {
  width: 100%;
  text-align: left;
  padding: 8px 16px;
}
.w3-bar-block .w3-bar-item {
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left;
  border: none;
  white-space: normal;
  float: none;
  outline: 0;
}
.w3-bar-block.w3-center .w3-bar-item {
  text-align: center;
}

.w3-card,
.w3-card-2 {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.w3-bar .w3-bar-item {
  padding: 8px 16px;
  float: left;
  width: auto;
  border: none;
  display: block;
  outline: 0;
}

.w3-button {
  border: none;
  display: inline-block;
  padding: 8px 16px;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.w3-large {
  font-size: 18px !important;
}
.w3-animate-left {
  position: relative;
  animation: animateleft 0.4s;
}
@keyframes animateleft {
  from {
    left: -300px;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}

.w3-button.close-btn {
  position: fixed;
  width: 10vw;
  border-radius: 10px 10px 0 0;
  background-color: #23c7c9;
  color: white;

  &:hover {
    background-color: #2aebee !important;
  }
}

.iframe-content {
  height: 100%;
  padding: 40px 0 50px 0;
}

.handle {
  text-align: center;
  background-color: #23c7c9;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 0 20px 0 0;
  padding: 10px;
  cursor: all-scroll;
  & h3 {
    font-weight: 700;
    color: white;
  }
}

/* The Modal (background) */
.bs-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  -webkit-animation-name: fadeIn; /* Fade in the background */
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s;
}

/* Modal Content */
.bs-modal-content {
  position: fixed;
  top: 10vh;
  left: 25%;
  background-color: #fefefe;
  width: 50%;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s;
}

/* The Close Button */
.bs-close-modal {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: 600;
}

.bs-close-modal:hover,
.bs-close-modal:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.bs-modal-header {
  padding: 2px 16px;
  background-color: #14cccd;
  color: white;
}

#myModal {
  & .modal-body {
    height: 55vh;
    padding: 0 !important;
  }
  & iframe {
    padding: 0 !important;
  }
}

.bs-modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  font-size: initial;

  /* Position the tooltip text */
  position: absolute;
  z-index: 2;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

#toggle {
  -webkit-appearance: none;
  appearance: none;
}

.help-button {
  width: 55px;
  height: 55px;
  background: #18a689;
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: none;
  transition: all 0.4s ease-in-out;
  background: #fff;
  border-radius: 5px;
  transform: translateY(0%);
  box-shadow: 2px 3px 10px 0 rgba(81, 81, 81, 0.1);
  border: 1px solid #e4e4e4;
  padding: 10px;
  position: absolute;

  & ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  & button {
    text-align: center;
    margin: 5px 0;
    color: #1ab394;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    background-color: transparent;
    border: none;
    font-weight: 500;

    &:first-child {
      margin-top: 45px;
    }

    &:hover {
      color: black;
    }
  }
}
#toggle:checked ~ .nav-menu {
  display: block;
}

#toggle:checked ~ .pulsate-fwd {
  animation-play-state: paused;
}

.pulsate-fwd {
  -webkit-animation: pulsate-fwd 1.6s ease-in-out infinite both;
  animation: pulsate-fwd 1.6s ease-in-out infinite both;
}

/* Add Animation */
@-webkit-keyframes slideIn {
  from {
    bottom: -300px;
    opacity: 0;
  }
  to {
    bottom: 0;
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    bottom: -300px;
    opacity: 0;
  }
  to {
    bottom: 0;
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes pulsate-fwd {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes pulsate-fwd {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .w3-sidebar {
    height: 80%;
    width: 50%;
  }

  .w3-button.close-btn {
    width: 15vw;
  }

  #myModal .modal-content {
    top: 20%;
    left: 15%;
    width: 70%;
  }
}

@media (max-width: 768px) {
  .w3-sidebar {
    height: 70%;
    width: 50%;
  }

  .w3-button.close-btn {
    width: 15vw;
  }

  .button {
    height: 40px;
    width: 40px;
    & .fa-question {
      font-size: 3rem !important;
    }
  }

  #myModal .modal-content {
    top: 20%;
    left: 15%;
    width: 70%;
  }
}
