/* МОДАЛЬНАЯ ФОРМА ПЕРЕХОДА К ТЕСТАМ */

/* modal-style.css */
.dynamic-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.dynamic-modal.show {
  opacity: 1;
  visibility: visible;
}

.dynamic-modal .modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dynamic-modal .modal-content h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #222;
}

.dynamic-modal .modal-content button {
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.dynamic-modal .btn-no {
  background: #ccc;
}

.dynamic-modal .btn-no:hover {
  background: #aaa;
}

.dynamic-modal .btn-yes {
  background: #2e7d32;
  color: #fff;
}

.dynamic-modal .btn-yes:hover {
  background: #1b5e20;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
  .dynamic-modal .modal-content {
    width: 90%;
    padding: 16px;
  }
  .dynamic-modal .modal-content button {
    width: 100%;
  }
}

