@font-face{
    font-family: 'Tourney';
    src: url(Fonts/Tourney-VariableFont_wdth\,wght.ttf);
}

@font-face {
    font-family: 'Lexend';
    src: url(Fonts/Lexend-VariableFont_wght.ttf);
}

h1 {
    font-family: 'Tourney';
    color: green;
    text-align: center;
    margin-top: 32px;
    margin-bottom: 8px;
}

body {
    font-family: 'Lexend';
    background-color: #f0f0f0;
    transition: background 0.4s, color 0.4s;
}

body.dark-mode {
  background: #181a1b;
  color: #f0f0f0;
}

body.dark-mode,
body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode a,
body.dark-mode td,
body.dark-mode th,
body.dark-mode li,
body.dark-mode span {
  color: #fff !important;
}

p {
    color: black;
}

h2 {
    color: black;
    text-align: center;;
}

section h2 {
    font-family: 'Tourney';
    color: green;
    font-size: 2.2rem;
    margin-bottom: 16px;
    text-align: center;
}

footer {
    font-family: 'Lexend';
    border-top: 2px solid #ccc;
    margin-top: 48px;
    padding-top: 16px;
    text-align: center;
}

.logo {
    width: 240px;
    height: auto;
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInLogo 0.8s ease-out forwards;
}

@keyframes slideInLogo {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
  justify-content: flex-start;
}

.header-row h1 {
    margin: 0 auto;
}

.menu {
  margin-left: auto;
    display: flex;
    gap: 16px;
    flex: unset; /* Remove flex: 1 to prevent stretching */
}

.menu a {
    flex: unset; /* Remove stretching */
    min-width: 60px; /* Smaller minimum width */
    padding: 6px 10px; /* Smaller padding */
    font-size: 0.95rem; /* Slightly smaller text */
    margin: 0 2px;
    text-align: center;
    text-decoration: none;
    color: #f0f0f0;
    background-color: green;
    border: 2px solid green;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    opacity: 0;
    transform: translateX(60px);
    animation: slideInMenu 0.8s ease-out forwards;
}

.menu a:hover {
    background-color: #f0f0f0;
    color: green;
    border-color: darkgreen;
}

.menu a:hover::after {
    left: 0;
    width: 100%;
}

.menu a:nth-child(1) { animation-delay: 0.3s; }
.menu a:nth-child(2) { animation-delay: 0.45s; }
.menu a:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInMenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

section {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 24px;
    padding-bottom: 24px;
}

#events {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body > *:not(.header-row):not(script) {
    opacity: 0;
    animation: fadeInBody 1s ease 0.8s forwards;
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

#about {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.hero {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
     /* Light background for contrast */
    padding: 20px;
    margin-top: 10px;
    justify-content: space-between;
}

.hero-image {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: 40px; /* More space between text and image */
    max-width: fit-content; /* Ensures image doesn't stretch too much */
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-text {
    max-width: 60%; /* Prevents text from taking too much space */
    padding: 20px;
    text-align: start;
}
.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-align: start;
    max-width: 700px;
}
.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-align: start;
}
.hero-text > p {
  font-size: 2rem;
  font-weight: 500;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

html {
    scroll-behavior: smooth;
}

.events-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align items to the left */
    gap: 40px;
}

.events-text {
    max-width: 60%;
}

.events-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 20px;
    /* Removed box-shadow and border for no visible line */
    min-width: 350px;
}

.events-card .hero-image {
    width: 400px;      /* Increased image size */
    height: 400px;     /* Increased image size */
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 16px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-text {
    max-width: 60%;
}

.about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 20px;
    /* Removed box-shadow and border for no visible outline */
    min-width: 350px;
}

.about-card .hero-image {
    width: 400px;      /* Increased image size */
    height: 400px;     /* Increased image size */
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 16px;
}

/* Hide menu toggle by default */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.menu-toggle img {
    width: 32px;
    height: 32px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-row {
        flex-wrap: nowrap;
        align-items: center; /* Center logo and menu button vertically */
        position: relative;
        padding: 0 10px;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
        align-self: center; /* Ensure vertical alignment */
    }
    .menu-toggle img {
        width: 32px;
        height: 32px;
        display: block;
    }
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 60px; /* Adjust to match logo height */
        left: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        z-index: 100;
    }
    .menu.open {
        display: flex;
    }
    .menu a {
        margin: 12px 0;
        padding: 12px 24px;
        font-size: 1.2rem;
        border-radius: 0;
        border: none;
        background: none;
        color: green;
        text-align: left;
    }
    .events-container,
    .about-container {
        flex-direction: column !important;
        align-items: center;
    }
    .events-card,
    .about-card {
        margin-bottom: 20px;
    }
    /* Mobile: stack card above text */
    .hero {
        flex-direction: column;
        align-items: center;
    }
    .hero-card {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-text {
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }
    .events-text h2,
    .about-text h2 {
        font-size: 1.3rem;
    }
    .events-text p,
    .about-text p {
        font-size: 0.98rem;
    }
    .hero-image,
    .events-card .hero-image,
    .about-card .hero-image {
        width: 90vw;
        max-width: 350px;
        height: auto;
        margin-left: 0;
    }
    .hero-card,
    .events-card,
    .about-card {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 10px;
    }
    .hero-text,
    .events-text,
    .about-text {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 0 8px;
        word-break: break-word;
    }
    .menu {
        margin-left: 0; /* Move menu closer to the logo */
    }
    .menu a {
        font-size: 1rem;    /* Smaller menu items */
        padding: 12px 0;    /* Less padding */
    }
    .logo {
        width: 160px;
        height: auto;
    }
    .menu {
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        border-radius: 0 0 12px 12px;
        padding: 0;
        align-items: center;
    }
    .menu a {
        display: block;
        width: 100%;
        margin: 0;
        padding: 18px 0;
        font-size: 1.15rem;
        border: none;
        background: none;
        color: green;
        text-align: center;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        transition: background 0.2s, color 0.2s;
    }
    .menu a:last-child {
        border-bottom: none;
    }
    .menu {
        margin-left: -12px; /* Move menu a bit more to the left */
        width: 90vw;        /* Make the menu box smaller */
        left: 0;
        right: 0;
        max-width: 320px;   /* Limit menu width */
    }
    .menu.open {
        display: flex;
    }
    .menu a {
        font-size: 0.95rem;   /* Smaller menu items */
        padding: 10px 0;      /* Less padding */
    }
}

button, .menu a {
  transition: transform 0.2s;
}
button:hover, .menu a:hover {
  transform: scale(1.08);
}

.contact-table {
    margin: 0 auto;
    border-collapse: collapse;
    min-width: 300px;
    width: 100%;
    max-width: 500px;
}
.contact-table th,
.contact-table td {
    border: 1px solid #ccc;
    padding: 8px;
    color: #000 !important;
}
.contact-table th {
    background: #e6ffe6;
}

.event-ended {
    text-decoration: line-through;
}

.logo-link {
    display: flex;
    align-items: center;
}

#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #232526;
  border: 2px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 999;
  cursor: pointer;
  padding: 0;
}

#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn img {
  width: 24px;
  height: 24px;
  display: block;
}

body:not(.dark-mode) #scrollTopBtn {
  background: #fff;
  border-color: #e0e0e0;
}

body.dark-mode .header-row,
body.dark-mode footer {
  background: #232526;
  color: #f0f0f0;
}

body.dark-mode .menu,
body.dark-mode .about-container,
body.dark-mode .events-container,
body.dark-mode .about-card,
body.dark-mode .events-card,
body.dark-mode .contact-table {
  background: #232526 !important;
  color: #f0f0f0 !important;
}

body.dark-mode .menu a {
  color: #90ee90 !important;
}

body.dark-mode #scrollTopBtn {
  background: #232526;
  border-color: #444;
}

body.dark-mode .logo {
  filter: brightness(0.85);
}

body.dark-mode .hero,
body.dark-mode .events-card,
body.dark-mode .about-card {
  background: #232526 !important;
  color: #fff !important;
}

body.dark-mode .hero-text,
body.dark-mode .hero-text h1,
body.dark-mode .hero-text h2 {
  color: #fff !important;
}

.dark-mode-switch {
  width: 80px;
  height: 40px;
  background: #e0e0e0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-left: 20px;
  position: static; /* Inline with header */
}

.switch-slider {
  position: relative;
  left: 6px;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  transition: left 0.3s, background 0.3s;
  z-index: 1;
}

.dark-mode-switch.active .switch-slider {
  left: 42px;
  background: #181a1b;
}

#scrollTopBtn .arrow-dark {
  display: none;
}
body.dark-mode #scrollTopBtn .arrow-light {
  display: none;
}
body.dark-mode #scrollTopBtn .arrow-dark {
  display: block;
}

.menu-toggle .menu-dark {
  display: none;
}
body.dark-mode .menu-toggle .menu-light {
  display: none;
}
body.dark-mode .contact-table th,
.contact-table th {
  color: #000 !important;
}

h1, h2, h3, h4, h5, h6,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
.hero-text h1,
.hero-text h2,
body.dark-mode .hero-text h1,
body.dark-mode .hero-text h2 {
  color: green !important;
}

.menu a,
body.dark-mode .menu a {
  color: #fff !important;
}