/* Existing styles */

.roster {
  list-style-type: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.STB, .CPR {
  flex: 1;
  margin: 10px;
  min-height: 100px;
  padding-top: 20px;
}

.image-container {
  width: 100%;
  max-width: 250px; /* Set a consistent max width */
  height: 150px; /* Set a fixed height to control the layout */
  margin: 0 auto 20px auto; /* Center the container and add space below it */
  display: flex; /* Flexbox ensures that the image is centered */
  align-items: center; /* Vertically center the image */
  justify-content: center; /* Horizontally center the image */
}

#STB, #CPR {
  list-style-type: none;
  margin-top: 10px;
  margin-right: 0;
    margin-top: 0;
}

.listing {
  border: solid 3px black;
  border-radius: 5px;
  padding-bottom: 10px;
  background-color: #e9e9e9;
  margin-bottom: 30px;
}

.signUp {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #3498db;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.signUp:hover {
  background-color: rgb(251, 99, 14);
}

.signUpLink {
  text-decoration: none;
}

.photoButton {
  width: 100%;
  margin: 0 auto 20px auto; /* Center the image and add space below it */
  max-width: 250px; /* Ensure the images have the same width */
  object-fit: cover; /* Maintain the aspect ratio while filling the fixed height */
}

/* New Responsive Styles */
@media screen and (max-width: 1024px) {
  /* Stack the STB and CPR sections vertically */
  .divider {
    width: 80%;
    margin: 20px 0;
    border: 0;
    border-top: 2px solid #ccc; /* Light gray divider */
  }

  .roster {
    flex-direction: column;
    align-items: center;
  }

  .STB, .CPR {
    margin: 0;
    max-width: 100%;
  }

  /* Adjust the padding and font size of buttons */
  .signUp {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  .goBack {
    margin-top: 15px;
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  /* Adjust the margin for listing containers */
  .listing {
    margin-bottom: 20px;
    padding: 20px 15px; /* Increased padding */
  }

  /* Ensure images scale nicely on small screens */
  .photoButton {
    max-width: 100%;
    height: auto;
  }

  #CPR .photoButton {
  max-width: 250px; /* Same max-width as the STB logo */
  }
}

/* Notification styles */
.notification-signup {
    margin: 15px 0;
}

.notification-signup p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}