@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Kaushan Script', cursive;
    margin: 0;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

header {
    background-color: #1f1f1f;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: #ffd700; /* Gold */
    text-decoration: none;
    font-family: 'Kaushan Script', cursive;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

h1, h2 {
    color: #ffd700; /* Gold */
}

header h1 {
    font-family: 'Kaushan Script', cursive;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-item {
    text-align: center;
}

.grid-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid #ffd700;
}

.grid-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.grid-item p {
    font-size: 1rem;
    color: #aaa;
    margin-top: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #e0e0e0;
    text-decoration: none;
}

.social-links i {
    font-size: 2rem;
    transition: color 0.3s ease-in-out;
}

.social-links a:hover i {
    color: #ffd700;
}

#timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

#timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #ffd700;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.event {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.event::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffd700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #121212;
}

.event-content, .event-image {
    flex-basis: 50%;
    padding: 0 2rem;
}

.event-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gallery {
    position: relative;
}

.gallery-image {
    max-width: 100%;
    border-radius: 10px;
}

.prev-button, .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.indicator-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.indicator-dot.active {
    background-color: #ffd700;
}

.event-right {
    flex-direction: row-reverse;
}

.event img {
    max-width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #timeline::before, .event::after {
        display: none; /* Hide timeline on mobile */
    }

    .event {
        flex-direction: column;
    }

    .event-content, .event-image {
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .event-right {
        flex-direction: column;
    }

    .event-image {
        margin-top: 1rem;
    }
}

#image-map {
    position: relative;
    width: 100%;
    height: 100vh; /* Use viewport height for responsiveness */
    background-image: url('../images/logos/header-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-map-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-map-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow links to wrap on smaller screens */
    gap: 2rem;
    margin-top: 2rem;
}

.image-map-link {
    color: #ffd700; /* Gold */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5); /* Add a background for better readability */
}

.image-map-title {
    color: white;
    font-size: 48px;
    text-align: center;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .image-map-title {
        font-size: 32px;
    }

    .image-map-links {
        flex-direction: column;
    }
}

/* Events Page Styles */
.events-page {
    font-family: Helvetica, sans-serif;
    background-color: #122620;
}

/* Members Page Styles */
.members-page {
    font-family: Helvetica, sans-serif;
    background-color: #122620;
}

/* Bylaws Page Styles */
.bylaws-page {
    background-color: #d6ad60;
    font-family: sans-serif;
    color: #333;
}

.bylaws-page #bylaws {
    max-width: 800px;
    margin: 2rem auto;
}

.bylaws-page #bylaws h2 {
    text-align: center;
    color: #333;
}

.bylaw-item {
    margin-bottom: 2rem;
}

.bylaw-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.price {
    font-size: 1rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Playlist Page Styles */
.playlist-page {
    font-family: Helvetica, sans-serif;
    background-color: #d6ad60;
}

.playlist-page h2 {
    color: #000;
}

#playlist-section {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
}

.playlist-wrapper {
    margin: 0 auto;
}

#song-cover {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-110%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#song-cover.visible {
    opacity: 1;
}

#song-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#music-player {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 10px;
}

#current-song-title {
    text-align: center;
    padding-bottom: 1rem;
    color: #fff;
}

@media (max-width: 1200px) {
    #song-cover {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
    }
}

#audio-player {
    width: 100%;
    margin-bottom: 2rem;
}

#sort-buttons {
    text-align: right;
}

#sort-buttons button {
    background-color: #ffd700;
    color: #121212;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    padding: 0;
}

.playlist-header, .playlist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
}

.playlist-item:hover {
    background-color: #333;
}

.header-title, .song-title {
    flex: 1 1 50%;
    min-width: 0;
}

.header-author, .song-author {
    flex: 1 1 25%;
    min-width: 0;
    color: #888;
}

.header-date, .song-date {
    flex: 1 1 15%;
    min-width: 0;
    text-align: right;
    color: #888;
}

.header-link, .song-link-container {
    flex: 0 0 10%;
    text-align: right;
}

.song-title {
    cursor: pointer;
    font-weight: bold;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .playlist-header {
        display: none; /* Hide header on mobile */
    }

    .playlist-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .song-author, .song-date, .song-link-container {
        margin-top: 0.5rem;
        text-align: left;
    }
}

.song-link {
    color: #ffd700;
    text-decoration: none;
}

.playlist-page .honourable-mentions-title {
    color: #ffd700;
    margin-top: 2rem;
}