html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Helvetica;
}

main {
    flex: 1;
    padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

nav {
  justify-content: center;
}

#homepage {
  text-align: center;
}

hr {
    border: none;
    height: 1px;
    background-color: #d5c7c78b; 
}

h1 {
    font-family: Century Gothic, sans-serif;
    font-size: 40px;
    color: #1f1313;
    text-shadow: 3px 3px 3px #edccc56e;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

footer {
    padding-left: 20px;
}

article {
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 6px solid #79ca7b83;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding-left: 30px;
}

article time {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

article img {
    margin-top: 1rem;
    max-width: 100%;
    border-radius: 6px;
}

nav {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

nav button {
    padding: 0.5rem 1rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

nav button:hover {
    background-color: #0c6812;
}

nav button.active {
  background-color: #0c6812;
  color: rgb(255, 255, 255);
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 1.5rem;
}

.image-gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

@media (max-width: 800px) {
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .image-gallery {
    grid-template-columns: repeat(3, 2fr);
  }
}

#back-to-home {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#back-to-home:hover {
    background-color: #0c6812;
}

@media (max-width: 600px) {
    header {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 32px; 
        text-shadow: 2px 2px 2px #edccc56e;
        font-weight: bold; 
    }

    h2 {
        font-size: 18px; 
    }

    h3 {
        font-size: 16px;
    }

    h4 {
        font-size: 12px;
    }

    p {
        font-size: 12px;
        line-height: 1.4;
    }

    nav {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    nav button {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    article {
        margin: 1rem 0;
        padding: 0.8rem;
        padding-left: 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr); 
    }

    #back-to-home {
        right: 10px;
        bottom: 10px;
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 24px;
    }

    nav button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .image-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}