/* notification-modal.css */

.notification-modal {
    display: none;
    position: fixed;
    z-index: 100; /* board-modal(99)보다 높게 설정 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.5); /* board-modal보다 약간 진하게 */
}

.notification-modal-container {
    position: relative;
    left: 50%;
    top: 50%;
    width: 800px;
    height: 700px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 2px 3px 5px rgba(128, 128, 128, 0.326);
    transform: translate(-50%, -50%);
}

.notification-modal-side-bar {
    width: 18px;
    background-color: var(--foam-latte);
    height: inherit;
    position: absolute;
}

.notification-modal-background img {
    pointer-events: none;
}

.notification-modal-background img:first-child {
    width: 33%;
    position: absolute;
    top: -10%;
    left: -3%;
    opacity: 5%;
}

.notification-modal-background img:last-child {
    width: 55%;
    position: absolute;
    bottom: -20%;
    right: -15%;
    opacity: 5%;
}

.notification-modal-content {
    text-align: center;
    margin: 40px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.notification-modal-header {
    flex-shrink: 0;
}

h1.notification-modal-title {
    color: var(--deep-latte);
    line-height: 1.4;
    font-size: 24px;
    margin-bottom: 8px;
}

h4.notification-modal-period {
    color: var(--silver);
    font-size: 16px;
    margin-top: 0;
}

.notification-modal-content hr {
    border: none;
    background-color: var(--whitey-gray);
    height: 1px;
    flex-shrink: 0;
}

.notification-modal-body {
    margin: 30px auto;
    max-height: 450px;
    overflow-y: auto;
    flex-grow: 1;
    text-align: left;
}

.notification-modal-content-text {
    line-height: 1.8;
    color: var(--black);
    white-space: pre-wrap; /* 줄바꿈 유지 */
}

.notification-modal-image {
    width: 100%;
    height: auto;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 8px;
}

.notification-modal-footer {
    flex-shrink: 0;
    margin-top: 20px;
    padding-top: 15px;
    padding-bottom: 60px;  /* 로고와의 간격 확보 */
    border-top: 1px solid var(--whitey-gray);
}

.dont-show-today {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.dont-show-today input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--deep-latte);
}

.dont-show-today span {
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 500;
}

.modal-jubilee-logo {
    width: 12%;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.notification-modal-close {
    color: var(--black);
    float: right;
    margin: 15px;
    font-size: 25px;
    cursor: pointer;
    transition: color 0.2s;
}

.notification-modal-close:hover,
.notification-modal-close:focus {
    color: var(--deep-latte);
}

/* Mobile responsive */
@media(max-width: 768px) {
    .notification-modal-container {
        width: 95%;
        max-width: 95%;
        height: 600px;
    }

    .notification-modal-content {
        margin: 30px 25px;
    }

    .notification-modal-body {
        margin-top: 15px;
        max-height: 350px;
    }

    h1.notification-modal-title {
        font-size: 20px;
        line-height: 1.3;
    }

    h4.notification-modal-period {
        font-size: 14px;
    }

    .notification-modal-content-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .notification-modal-footer {
        padding-bottom: 50px;  /* 모바일에서도 로고와의 간격 확보 */
    }

    .dont-show-today span {
        font-size: 13px;
    }

    .modal-jubilee-logo {
        width: 15%;
    }
}
