body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    text-align: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

table.container {
    background: transparent;
    box-shadow: none;
}

h1[id="title"] {
    color: #ff69b4;
    border-bottom: 3px solid #ff69b4;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#current-date {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #555;
}

.event-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: left;
    background-color: #fff9fc;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.event-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
}

.event-year {
    font-size: 0.9em;
    color: #ff69b4;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
}

#events-list {
    margin-top: 20px;
}

#events-list p {
    font-style: normal;
    color: #888;
}

table {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-top: auto;
}

input[id='submit'] {
    margin-left: auto;
    margin-right: auto;
}

input[type='text'],
input[type='date'] {
    border-radius: 5px;
    border: 0 0.5px 0.5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.message {
    color: rgba(255, 8, 10, 0.8);
}


.hide {
    display: none;
}

.comment {
    font-size: 11px;
    color: #777;
    margin-top: 25px;
    margin-bottom: 0;
}

.comment>a {
    color: inherit;
    text-decoration: inherit;
}

.comment>a::after {
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    color: inherit;
    transform-origin: bottom right;
    transition: transform 0.25s ease-in-out;
}

.comment>a:hover {
    text-decoration: underline;
}

.comment>a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

dialog {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 0;
    width: 60%;
    max-width: 400px;
    animation: fadeIn 0.3s ease-out;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.dialog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
    justify-self: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.dialog-content h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

input[type='date'][id='date-picker-input'] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    font-family: inherit;

    margin-left: auto;
    margin-right: auto;
    width: 85%;
}

input[type='date']:focus {
    border-color: #ff69b4;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

button.confirm-btn,
button.cancel-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

button.confirm-btn {
    background-color: #ff69b4;
    color: white;
}

button.confirm-btn:hover {
    background-color: #e0559a;
}

button.cancel-btn {
    background-color: #f0f0f0;
    color: #555;
}

button.cancel-btn:hover {
    background-color: #e0e0e0;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: #ffe6f2;
    color: #ff69b4;
}

.date-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#current-date {
    margin-bottom: 0;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 20px;
    transition: background-color 0.2s;
    font-weight: bold;
    user-select: none;
    font-size: 100%;
}

#current-date:hover {
    background-color: #f0f0f0;
    color: #ff69b4;
}

/* #current-date::after {
    content: ' 📅';
    font-size: 0.8em;
    opacity: 0.5;
} */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}