/* General styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: #e0e0e0;
}

/* Prevent main content from shifting the header */
body.menu-open main {
    margin-left: 300px; /* Shifts only main content when the menu is active */
}

/* Main content */
main {
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content {
    margin: 80px auto 20px;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #2b2b2b;
    color: #ccc;
}

/* Header styles */
#main-header {
    display: flex;
    align-items: center; /* Aligns all items vertically */
    justify-content: space-between; /* Ensures even spacing between elements */
    background: linear-gradient(90deg, #1e1e1e, #2b2b2b);
    padding: 10px 20px 3px 10px;
    position: fixed; /* Keeps the header in place */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2001; /* Keeps it above other elements */
}

.menu-button {
    font-size: 1.4em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    position: relative; /* Prevents unnecessary absolute positioning */
    margin-right: 20px; /* Adds space between button and title */
    top: -3px;
    z-index: 1101; /* Ensures it's above the menu */
    transition: color 0.3s ease, transform 0.2s ease;
}

.menu-button:hover {
    color: #ff7eb3;
    transform: scale(1.1);
}
/* Include Quicksand font */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@700&display=swap');

/* Site name styling */
/* needed for title */
a {
    text-decoration: none;
}
.site-name {
    font-family: 'Quicksand', Arial, sans-serif; /* Use Quicksand as primary font */
    font-size: 1.5em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1101;
    text-align: left;
    position: absolute;
    left: 60px;
    top: -3px;
    font-weight: bold; /* Ensure bold styling */
}

.site-name .honest {
    color: #ff7eb3;
}

.site-name .mouse {
    color: #7ec8ff;
}

.site-name .site-link:hover .honest {
    color: #7ec8ff; /* Swap to Mouse color */
}

.site-name .site-link:hover .mouse {
    color: #ff7eb3; /* Swap to Honest color */
}

/* Search bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligns search bar to the right */
    padding-right: 45px; /* Adds padding to create space from the right edge */
    padding-bottom: 5px;
}
.search-toggle {
    display: none; /* Hidden by default */
    font-size: 1.5em;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}
.search-toggle:hover {
    color: #ff7eb3;
}


/* Mobile view adjustments */
@media (max-width: 768px) {
    .search-container {
        display: none; /* Hide the search bar */
    }

    .search-toggle {
        display: inline-block; /* Show the magnifying glass */
	margin-right: 10px;
    }

    .search-container.active {
	display: flex !important; /* Override any other conflicting rules */
        position: absolute;
        top: 50px;
        right: 10px;
        background: #2b2b2b;
        border: 1px solid #444;
        border-radius: 4px;
        padding: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    }
}

.search-input {
    width: 220px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.search-results {
    margin: 0;
    padding: 0;
    border: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #1e1e1e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 200;
    width: 85%;
    display: none; /* Hidden by default */
}

.search-results.active {
    display: block; /* Becomes visible when active */
}

.search-result-item {
    display: block;
    padding: 10px;
    color: #e0e0e0;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.search-result-item:hover {
    background: #ff7eb3;
    color: #1e1e1e;
}

/* Album grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.album {
    text-decoration: none;
    color: #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album:hover {
    transform: scale(1.05); /* Slightly expand the thumbnail */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.7); /* Add a shadow effect */
}

.album img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.album h2 {
    margin: 10px 0 0;
    font-size: 1.2em;
}

/* Left rail menu */
.menu {
    position: fixed;
    top: 0; /* Shifts the menu down below the header */
    left: 0; /* Initially hidden */
    width: 300px;
    height: calc(100% - 50px); /* Adjust height to account for header */
    background: #2b2b2b;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 2000;
    transition: transform 0.3s ease; /* Smooth sliding animation */
    transform: translateX(-100%); /* Move off-screen initially */
    padding: 50px 10px 10px;
    box-sizing: border-box;
}

.menu.active {
    transform: translateX(0);

}

.menu a {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px;
    border-bottom: 1px solid #444;
    transition: background 0.3s ease, color 0.3s ease;
}

.menu a:hover {
    background: #ff7eb3;
    color: #1e1e1e;
}

.random-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #fff;
}

.random-button:hover {
    color: #ff7eb3;
}

.tag-details {
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 0 0 8px 8px;
}

.tag-details h2 {
    margin: 5px 0;
    font-size: 1.1em;
    color: #ff7eb3;
}

.tag-details p {
    margin: 0;
    font-size: 0.9em;
    color: #e0e0e0;
}
/* Section Links for Albums, Characters, and Tags */
.section-link {
    text-decoration: none;
    color: #ff7eb3;
    font-weight: bold;
    transition: color 0.3s, transform 0.2s;
}

.section-link:hover {
    color: #7ec8ff;
    transform: scale(1.05);
    text-decoration: underline;
}
/* View All Link Styles */
.view-all-link {
    text-align: center;
    margin: 20px 20px; /* Add spacing around the links */
}

.view-all-link a {
    display: inline-block;
    text-decoration: none;
    color: #e0e0e0;
    background-color: #2b2b2b;
    padding: 10px 20px;
    border-radius: 25px; /* Rounded corners */
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
}

.view-all-link a:hover {
    background-color: #ff7eb3;
    color: #1e1e1e;
    transform: scale(1.1); /* Slightly grow on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6); /* Deepen shadow on hover */
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    z-index: 1999; /* Below the menu but above the content */
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

