.modul {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  /* overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #ffffff; /* White background */
  width: 500px; /* Fixed width */
  max-width: 90%; /* Responsive for smaller screens */
  max-height:90%;
  padding: 20px; /* Inner spacing */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  gap: 15px; /* Spacing between elements */
  overflow-x: hidden;
  overflow-y: auto;
  margin:auto;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#open-add-student-modal {
  position: fixed;
  left: 20px;
  top: 8rem;
  transform: translateY(-50%);
  z-index: 1000;
  padding: 10px 15px;
  background-color: #a8d5ba;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#open-add-student-modal:hover {
  background-color: #a9d5bb;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  #open-add-student-modal {
    top: 10%; /* Move to the top */
  	align-items: center;
    transform: none; /* Remove vertical centering */
  }
}