/* Notice Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    margin-top: 0;
}

#modal-date {
    font-size: 0.9em;
    color: #666;
}

#modal-body {
    word-wrap: break-word;
}

#modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Notice Board Scrolling Animation */
.notice-board {
    height: 280px; /* Adjust as needed */
    overflow: hidden;
    position: relative; /* For positioning pseudo-elements if needed */
}

.scrolling-notice-board {
    /* The animation will be applied here */
    animation: scroll-up 30s linear infinite;
}

.scrolling-notice-board:hover {
    animation-play-state: paused;
}

/* The keyframes for the scrolling animation */
@keyframes scroll-up {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%); /* Scroll up by half the height, since content is duplicated */
    }
}

/* Add some spacing to notice items */
.notice-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}