* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-text {
    margin-top: 20px;
}

.header-text h1,
.header-text h5 {
    margin: 0;
    line-height: 1.2;
}

.header-text h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header-text h5 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.navigation {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-right: 40px;
}

.navigation a {
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
    position: relative;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
}

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

.navigation .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

.navigation .btnLogin-popup:hover {
    background: #fff;
    color: skyblue;
}

.theme-toggle {
    display: inline-block;
    margin-left: 20px;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
}

main {
    margin: 20px auto;
    max-width: 800px;
}

.event {
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.event h2 {
    color: #0073e6;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.event p {
    color: skyblue;
    font-size: 1.2em;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#TT {
    margin-bottom: 80px;
}

#DB {
    margin-bottom: 80px;
}

#CW {
    margin-bottom: 100px;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transform-origin: right;
    transform: scalex(0);
    transition: transform .5s;
}

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

.navigation .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    transition: .5s;
}

.navigation .btnLogin-popup:hover {
    background: #fff;
    color: skyblue;
}


/* Toggle Switch */

.theme-toggle {
    display: inline-block;
    margin-left: 20px;
}

.theme-switch {
    display: none;
}

.toggle-label {
    width: 40px;
    height: 20px;
    background-color: #2b2828;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.sun,
.moon {
    font-size: 16px;
    transition: all 0.3s ease;
}

.toggle-label .moon {
    opacity: 0;
}

.theme-switch:checked+.toggle-label .sun {
    opacity: 0;
}

.theme-switch:checked+.toggle-label .moon {
    opacity: 1;
    transform: translateX(-15px);
}


/* Dark Theme */

body.dark-theme {
    background-color: #2c2c2c;
    color: #ffffff;
}

.theme-switch:checked+.toggle-label {
    background-color: #000;
}


/* Floating Up Arrow Button */

.scroll-to-top {
    position: fixed;
    bottom: 85px;
    right: 90px;
    width: 40px;
    height: 40px;
    background-color: rgb(15, 15, 15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #292727;
}


/* Dropdown Menu */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.arrow {
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #353333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
    padding: 0;
    align-items: center;
}

.dropdown-menu a {
    color: #ffffff;
    padding: 12px 20px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #1d1c1c;
}

.dropdown.show .dropdown-menu {
    display: block;
}

.dropdown.show .arrow {
    transform: rotate(180deg);
}