* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Contact bar */
.contact-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0d1b2a;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 14px;
}

/* Main header */
.main-header {
    position: sticky;
    top: 32px;
    z-index: 999;
    background: #1b263b;

    display: flex;
    align-items: center;

    height: 70px;
    padding: 0 20px;
}

/* Logo and title */
.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 1;
}

.logo {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

/* Navigation tabs */
.nav-tabs {
    display: flex;
    height: 100%;
    width: 40%;
}

.nav-tabs a {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    color: white;
    text-decoration: none !important;

    background: #1b263b;

    border-right: 1px solid #415a77;
    transition: background 0.2s ease;
}

.nav-tabs a:first-child {
    border-left: 1px solid #415a77;
}

.nav-tabs a:hover {
    background: #415a77;
}

.nav-tabs a.active {
    background: #415a77;
    box-shadow: inset 0 -3px 0 #778da9;
}

/* Page content */
.page-content {
    padding: 20px;
    min-height: 80vh;
}

/* Footer */
.footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}

/* Images fill container */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade animation */
.fade {
    transition: opacity 2s ease-in-out;
}

/* Active slide */
.slide.active {
    opacity: 1;
}



/* Centered overlay text */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;

    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 10px;
}

.box-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.events-container {
    border: solid;
    border-radius: 10px;
    padding: 15px;
    width: 50%;
    align-items: left;
}

.leaderboard-container {
    border: solid;
    border-radius: 10px;
    padding: 15px;
    width: 50%;
    align-items: right;

}

.form-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
}

/* Calendar */
#calendar {
  margin: 40px auto;
  font-family: Arial, sans-serif;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: white;
    width: 400px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    padding: 10px 15px;
    cursor: pointer;
}

.login-message {
    margin-top: 10px;
    text-align: center;
}

.rsvp-message {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    color: green;
}

/* Validation error messages */
#emailErr {
    color: red;
}

#pwdErr {
    color: red;
}