:root {
    --primary-color: #6e044d;
    --secondary-color: #19693e; /* Your custom color choice */
    --accent-color: #c2db29;
    --accent-pink: #d866a9;
    --accent-light-green:#39438b;
    --accent-lavender: #a492e0;
    --text-color: #f0f0f0;
}

* {
    box-sizing: border-box; /* This fixes many layout problems */
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Source Code Pro', monospace;
    margin: 0;
    padding: 20px;
    text-align: center;
}

header, footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

h1, h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
}

nav {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.2em;
}

nav a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* Homepage Category Cards */
.homepage-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligns text to bottom */
    min-height: 300px;
    position: relative;
}

.category-card:hover {
    transform: scale(1.03);
}

.category-card h2 {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 10px 10px 10px;
    margin: 0;
}

.category-card img, .category-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.audio-card-preview {
    font-size: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.3;
}


/* Photo Gallery Page Styles */
.gallery-container {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.photo-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Video Gallery Styles */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-item h3 {
    margin-top: 0;
    color: var(--accent-light-green);
}

.video-item video {
    width: 100%;
    border-radius: 5px;
}

/* Audio List Styles */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.audio-item {
    background-color: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
}

.audio-item h3 {
    margin: 0 0 10px 0;
    color: var(--accent-pink);
}

.audio-item audio {
    width: 100%;
}
/* Styles for the 404 Error Page */
.error-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.error-container {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.error-container h1 {
    font-size: 6em;
    margin: 0;
    color: var(--accent-color);
}

.error-container h2 {
    color: var(--text-color);
    margin: 0 0 20px 0;
}

.home-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    border-radius: 5px;
    margin-top: 20px;
}
/* Styles for Pagination Buttons */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
