/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.10s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  margin: 10% auto;
  padding: 0;
  max-width: 600px;
  border-radius: 8px;
  border: none;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.10s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close {
  color: white;
  position: absolute;
  top: 0px;
  right: 17px;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;
}

.close:hover {
  color: yellow;
}

/* Make schedule tables clickable */
.schedule-table-wrapper table,
.schedule-mobile {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    margin: 60% auto;
    width: 90%;
  }
  .schedule-table-wrapper {
    display: none !important;
  }
  .schedule-mobile {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .schedule-table-wrapper {
    display: block !important;
  }
  .schedule-mobile {
    display: none !important;
  }
}