body, html {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #E0E0E0;
    overflow-x: hidden;
}

.events-tracker-page {
    flex: 1; 
    width: 90%; 
    max-width: 1200px; 
    font-size: 16px;
    margin: 0 auto;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: red;
}

a:hover {
    color: #ff6666;
}

hr {
    margin-top: 15px;
    border: none; 
    height: 3px; 
    background-color: #C80000; 
}

footer {
    text-align: center;
    color: #E0E0E0;
    font-size: 16px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    line-height: 1.5;
}

footer a {
    text-decoration: none;
    color: #C80000; 
    vertical-align: middle; 
    font-size: 18px;
}

footer a:visited {
    text-decoration: none;
    color: #C80000; 
}

footer a:hover {
    text-decoration: none;
    color: red; 
}

footer p {
    margin: 10px auto;
}

.end-hr {
    margin-bottom: 0;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 0;
    background-color: #121212;
    border-bottom: 3px solid #C80000;
    white-space: nowrap;
    margin-bottom: 5px;
}

.nav a {
    color: #E0E0E0 !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    height: 24px; 
    display: flex;
    align-items: center; 
    line-height: 1.5;
}

.nav a:hover {
    color: red !important;
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-bottom: 3px solid #C80000;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left; 
}

.EAM {
    width: 172px; 
    height: 100px;
    margin-left: 50px;
    margin-right: 50px;
}

.title-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.banner h1 {
    font-size: 2.3rem;
    white-space: nowrap; 
    margin: 5px;
}

.open-in-new-tab {
    font-weight: bold;
    float: right;
}

.open-in-new-tab svg {
    height: 16px;
    width: 16px;
    transform: translateY(2px);
}

.open-in-new-tab a:hover svg path {
    fill: #ff6666;
}


.events-section-title {
    width: 1108px; 
    max-width: 1108px;
    margin: 0 auto; 
}

.events-section-title h2 {
    text-align: left; 
    margin: 10px 0;
}

.events-cards {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
}
    
.event-card {
    width: 350px;
    max-width: 350px;
    min-width: 350px;
    border: 3px solid #C80000;
    margin: 10px;
}

.event-card img {
    width: 350px;
}

.event-card-content {
    padding: 10px;
}

.event-card-content hr {
    margin: 0 0 5px 0;
}



.event-title-zh {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 21px;
    color: red;
}

.event-title-en {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 18px;
}

.event-detail-time {
    font-family: monospace;
    margin-bottom: 5px;
}

.event-detail-des {
    height: 210px;
    max-height: 210px;
    min-height: 210px;
    overflow-y: auto;
    margin-bottom: 10px;
    box-sizing: border-box;
    padding-right: 5px;
}

.event-detail-des::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.event-detail-des::-webkit-scrollbar-track {
    background: #121212;
}

.event-detail-des::-webkit-scrollbar-thumb {
    background: #121212;
    border: 1px solid #C80000;
    box-sizing: border-box;
}

.event-detail-des::-webkit-scrollbar-thumb:hover {
    background: darkred;
}

.spoiler-text {
    background-color: #121212;
    color: #121212; 
    transition: color 0.3s ease;
}

.spoiler-text:hover {
    color: #E0E0E0;
}

.spoiler-text:active,
.spoiler-text:focus {
    color: inherit; 
    background-color: transparent;
}

.disclaimer {
    text-align: center;
}

.disclaimer p {
    margin: 10px auto;
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }
    .EAM {
        width: 147px; 
        height: 85px;
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media (max-width: 540px) {
    .banner h1 {
        font-size: 1.5rem;
    }
    .EAM {
        width: 103px; 
        height: 60px;
        margin-left: 10px;
        margin-right: 10px;
    }
}