body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-image: url(./img/ssfo-background.png);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #333;
  overflow: hidden;
}

#formContainer {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

h2 {
  font-size: 20px;
  margin-bottom: 15px;
  margin-top: 0;
  text-align: center;
  color: #e70022;
}

.form-group {
  margin-bottom: 15px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-icon {
  position: absolute;
  left: 8px;
  color: #e70022;
  font-size: 14px;
}

i {
  color: #e70022;
}

input,
select {
  width: 100%;
  padding: 10px 10px 10px 36px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  border-color: #e70022;
}

.two-columns {
  display: flex;
  gap: 15px;
}

.two-columns > div {
  flex: 1;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  color: #fff;
  background-color: #e70022;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #c4001a;
}

.hidden {
  display: none;
}

.input-label {
  display: none;
}

@media (max-width: 768px) {
  body {
    overflow-y: auto; /* Allow scrolling on mobile */
  }

  #formContainer {
    padding: 15px;
    width: 90%;
    margin-top: 0; /* Remove negative margin */
  }

  h2 {
    font-size: 18px;
  }

  .two-columns {
    flex-direction: column;
  }

  input,
  select {
    padding: 8px 8px 8px 32px;
  }

  .form-icon {
    left: 6px;
    font-size: 12px;
  }

  .input-label {
    display: block;
    margin-left: 1em;
    font-size: 14px;
  }

  .input-container-wrapper {
    position: relative;
  }

  .input-label {
    position: absolute;
    top: 0.65em;
    left: 1.2em;
    font-size: 0.85em;
    color: #333;
    padding: 0 0.5em;
    z-index: 1;
  }
}

.input-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #e70022;
}

/* LOADER */

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-container {
  background: white;
  padding: 5px;
  width: 10em;
  border-radius: 10px;
  text-align: center;
}

.loader-container p {
  font-size: 16px;
}

.progress-bar {
  width: 100%;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  font-size: 10px;
}

.progress {
  height: 15px;
  background: #e70022;
  width: 1%;
}

.hidden {
  display: none;
}

/* Information Recorded Overlay */
.info-recorded-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: "Arial", sans-serif;
  white-space: nowrap;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show the overlay */
.info-recorded-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Hide the overlay */
.info-recorded-overlay.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

/* OVERLAY */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay-status {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 10px;
}

.overlay-status img {
  max-width: 100px;
  margin: 10px;
  margin-top: 8em;
}

.overlay-status h1 {
  font-size: 2em;
  margin: 10px 0;
}

.overlay-status p {
  font-size: 1.2em;
  margin: 10px 0;
}

.digital-clock {
  font-size: 3em;
  margin-top: 20px;
  font-family: "Courier New", Courier, monospace; /* Monospace font for clock */
}

.return-home {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1em;
  color: white;
  background-color: #e70022; /* Change to your preferred color */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  /* Center the button */
  align-self: center; /* Center the button horizontally */
}

.return-home:hover {
  background-color: #c4001a; /* Darker shade on hover */
}

/* UNAVAILABLE */

.unavailable-message {
  color: white;
  margin-top: 80%;
  font-size: 24px;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.logo {
  max-width: 40px; /* Adjust as needed */
  height: auto;
}

.form-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.login-footer {
  justify-content: center;
  text-align: center;
}

.login-footer a {
  color: #e70022;
  text-decoration: none;
  font-size: 16px;
}

/* MODAL */

/* Modal styles */
.welcome-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.welcome-modal-content {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  width: 60%;
  max-width: 350px;
  text-align: center;
}

.welcome-title {
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  color: #333;
}

.welcome-message {
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: #555;
}

.program-select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #007bff;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
}

.program-select option {
  padding: 10px; /* Adds padding to option for better touch targets */
}

.selected-program-image-container {
  margin-top: 20px;
  display: none; /* Initially hide the image container */
  flex-direction: column;
  align-items: center;
}

.image-title {
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  color: #333;
}

.program-image {
  width: 100px; /* Fixed size for the image */
  height: 100px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Mobile styles */
@media (max-width: 600px) {
  .welcome-modal-content {
    padding: 15px; /* Reduce padding for smaller screens */
    width: 75%;
  }

  .welcome-title {
    font-size: 20px; /* Smaller title font for mobile */
  }

  .welcome-message {
    font-size: 14px; /* Smaller message font for mobile */
  }

  .program-button {
    padding: 8px 16px; /* Adjust button padding for mobile */
    font-size: 14px; /* Smaller button font for mobile */
  }

  .image-title {
    font-size: 16px; /* Smaller image title font for mobile */
  }

  .program-image {
    width: 150px; /* Smaller image for mobile */
  }
}

.continue-button {
  background-color: #e70022; /* Bootstrap primary color */
  color: white;
  padding: 10px 20px;
  width: 100%;
  border: none;
  margin-bottom: 1em;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.continue-button:hover {
  background-color: #c4001a; /* Darken the button on hover */
}

/* Mobile styles */
@media (max-width: 600px) {
  .continue-button {
    padding: 10px 16px; /* Adjust button padding for mobile */
    font-size: 16px; /* Smaller button font for mobile */
    width: 100%;
  }
}
