.buttons {
  display: flex;
  flex-direction: column;
  align-items: left;
  margin-top: 100px;
}

.drawbox {
  min-width: 550px !important;
}

.scale {
  margin-left: 15px;
}

.browserBtn {
  margin-left: -80px;
}

@media (max-width: 1668px) {
  .buttons {
    margin-left: 0 !important;
  }

  .drawbox {
    margin-right: 0 !important;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .scale {
    margin-left: 0;
  }

  .browserBtn {
    margin-left: 0;
  }
  .buttons {
    flex-direction: row !important;
    margin-top: 10px;
    margin-left: 40px !important;
  }

  .buttons p {
    margin-right: 10px;
  }

  #clearBtn {
    margin-top: 0 !important;
  }

  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  #geneList {
    margin-left: 10px !important;
  }

  .geneNames {
    font-size: 11px !important;
  }
}

/* Loader */
.apiloader {
  position: fixed; /* Fixed positioning */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Center the element itself */
  z-index: 9999; /* Set a high z-index value to ensure it's above all other elements */
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    92,
    91,
    112,
    0.5
  ); /* Semi-transparent pale blue overlay */
  z-index: 9998; /* Below the loader, but above other elements */
  pointer-events: auto; /* Enable pointer events on the overlay */
}

.lds-grid {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-grid div {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3279fc;
  animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
  top: 8px;
  left: 8px;
  animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
  top: 8px;
  left: 32px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
  top: 8px;
  left: 56px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
  top: 32px;
  left: 8px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
  top: 32px;
  left: 32px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
  top: 32px;
  left: 56px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
  top: 56px;
  left: 8px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
  top: 56px;
  left: 32px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
  top: 56px;
  left: 56px;
  animation-delay: -1.6s;
}
@keyframes lds-grid {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .footer {
    font-size: 12px !important;
    padding: 1px, 0, 0, 0 !important;
  }

  .footer p {
    margin-bottom: 1px !important;
  }

  .mb-3 {
    margin-bottom: 1px !important;
  }
}
