/* General Body Styling */

/* Background Animation */
.mah-background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png'),
              linear-gradient(130deg, rgba(0, 123, 255, 0.9), rgba(255, 255, 255, 0.9));
  animation: mah-moveBackground 15s linear infinite;
}

@keyframes mah-moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 200%;
  }
}

/* Headings */
h1 {
  color: #007bff;
  margin: 20px 0;
  font-size: 2rem;
}

h2 {
  color: #0056b3;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Buttons */
button {
  margin: 10px 5px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Modals */
.mah-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.mah-modal.mah-hidden {
  display: none;
}

.mah-modal-content {
  background: #fff;
  padding: 10px 0px 10px;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 85%;
}

/* Modal Background Animation */
.mah-modal-background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(130deg, rgba(0, 123, 255, 0.2), rgba(255, 255, 255, 0.3));
  background-size: 100% 100%;
  z-index: -1;
  animation: mah-moveModalBackground 8s linear infinite;
}

@keyframes mah-moveModalBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 200%;
  }
}

.close{font-size: 30px}

/* Subject List Styling */
.mah-subject-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.mah-subject-item {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mah-subject-item label {
  font-weight: bold;
  margin-bottom: 10px;
}

.mah-subject-item input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  text-align: center;
}

/* Progress List */
#mah-progressList {
  list-style-type: none;
  
  width:50%;
  margin:0 auto;
  max-width:700px;
  
  
}
/* Centering #mah-progressList */
#mah-progressList {
    list-style-type: none;
  max-width: 245px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  
  padding: 15px;
  
  }
#mah-progressList li {
  margin: 10px 0;
  padding: 15px;
  background: #e9f5ff;
  border: 1px solid #007bff;
  border-radius: 5px;
  color: #0056b3;
}

/* Fixed Save Button */
.mah-modal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 450px;
  background: #fff;
  text-align: center;
}
#time{width:92%!important}
