.modal {
    display: none;
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .modal-content {
    background-color: var(--bg-oxford-red);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--border-prussian-red);
    width: 80%;
    position: relative;
    border-radius: var(--radius-16);
    animation: slideIn 0.3s ease-in-out;
    color: var(--text-wild-red-yonder);
    font-family: var(--fontFamily-noto_sans);
    max-width: 1000px;
  }

  .modal-content a {
    color: var(--text-carolina-red); /* Red color */
    display: inline; /* Prevent newline */
    text-decoration: none; /* Remove underline */
  }
  
  .modal-content a:hover {
    color: var(--text-columbia-red); /* Slightly different red on hover */
    text-decoration: underline; /* Add underline on hover for better UX */
  }
  
  .close {
    position: absolute;
    right: 10px;
    top: 0px;
    color: var(--text-shadow-red);
    float: right;
    font-size: 32px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: var(--text-carolina-red);
    text-decoration: none;
    cursor: pointer;
  }
  
  #timer {
    font-size: 16px;
    color: var(--text-wild-red-yonder);
    margin-top: 10px;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideIn {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
  }
  
  .modal.fade-out {
    animation: fadeOut 0.3s ease-in-out;
  }
  
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  