@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css);
@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.5;
  font-family: "Montserrat", sans-serif;
  background-color: whitesmoke;
  text-align: center;
  background-image: url(./images/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover; /* Ensure the background image always covers the viewport */
  background-position: center bottom;
  position: relative;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed; /* Fixed position ensures full-viewport coverage */
  top: 0;
  left: 0;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  background-image: inherit; /* Inherit the background image from body */
  background-repeat: no-repeat;
  background-size: cover; /* Ensure it fully covers the viewport */
  background-position: center bottom; /* Align the background correctly */
  filter: blur(8px); /* Apply the blur effect */
  z-index: -1; /* Place it behind content */
  margin: 0; /* Ensure no margins interfere with full coverage */
  padding: 0; /* Ensure no paddings interfere with full coverage */
  box-sizing: border-box; /* Prevent padding or borders from affecting dimensions */
}

img {
  max-width: 100%;
  height: auto;
}

header {
  padding-bottom: 2vh;
  margin-bottom: 2vh;
  border-bottom: 0.5vh solid black;
}

header img {
  width: 25vh;
}

form label {
  font-weight: bold;
}

.showOnMedium {
  display: none;
}

.card {
  opacity: 0.93;
}

.smooth {
  transition: 0.5s;
}

.successBold {
  font-weight: bolder;
  font-size: 24pt;
}

/* Loading Overlay */
#loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-overlay.show {
  display: flex;
}

.loading-spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: white;
  font-size: 20px;
  margin-top: 20px;
  font-weight: bold;
}

/* Medium */
@media screen and (min-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .showOnMedium {
    display: inline-block;
  }
}

/* Large  */
@media screen and (min-width: 992px) {
  .container {
    max-width: 1100px;
    margin: auto;
  }
}

.table-time {
  text-align: center;
  vertical-align: middle;
}

.selectable {
  text-align: center;
  padding: 10px;
  border: 1px dashed #ccc;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.selectable:hover {
  background-color: #f8f9fa;
}

.selected:hover {
  background-color: #74c988; /* Light green */
  border-color: rgb(153, 229, 171);
}

.selectable.selected {
  background-color: #d3f4d9;
  border: 1px solid #74c988;
  color: #159633;
}

.invalid {
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
  color: #721c24;
}
