/* 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.8);
  animation: fadeIn 0.3s;
}

.modal-content {
  background: linear-gradient(135deg, #16213e 0%, #1a2942 100%);
  margin: 5% auto;
  padding: 30px;
  border: 4px solid #ffb81c;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.4s ease-out;
}

.close {
  color: #ffb81c;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close:hover {
  color: #4ecca3;
}

.modal h2 {
  color: #ffb81c;
  font-family: "Press Start 2P", cursive;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.grade-cell {
  background: #0f3460;
  border: 2px solid #003594;
  padding: 15px;
  text-align: center;
  transition: all 0.3s;
}

.grade-cell:hover {
  border-color: #4ecca3;
  transform: scale(1.05);
}

.grade-letter {
  color: #4ecca3;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.grade-value {
  color: #ffb81c;
  font-size: 0.8rem;
}
