body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.modal.show {
  display: block;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
}
.modal-body p {
  font-weight: 300;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 600px;
  min-height: 740px;
  max-height: 740px;
  overflow-y: auto;
  transform: scale(0.7) translateY(-100px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-body {
  padding-top: 20px;
  word-wrap: break-word; /* 긴 단어 줄바꿈 */
}

.modal-body h3,
.modal-body h4 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-body p {
  margin-bottom: 15px;
  line-height: 1.6; /* 줄 간격 증가 */
}

/* 번호 목록 스타일 */
.modal-body ol {
  margin-left: 20px;
  padding-left: 20px;
}

.modal-body ol li {
  margin-bottom: 10px;
}
.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .modal-content {
    margin: 0;
    width: 100%;
    height: 100vh;
    max-height: none;
  }
}
