/* CSS Variables (Palette) */
:root {
    --big-stone: #0f1a2d;
    --satin-linen: #dfd9c9;
    --satin-linen-midlight: #efeada;
    --satin-linen-light: #fefeff;
    --danube: #3670a5;
    --danube-dark: #034072;
    --danube-darker: #012051;
    --regent-gray: #8394a3;
    --spring-wood: #f3f1e8;
    --hit-gray: #acb4b6;
    --hit-gray-light: #ced6d8;
    --storm-dust: #6c6d64;
    --dusty-gray: #a49c9f;
    --dove-gray: #6c6464;
    --gray-olive: #8a9883;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #fefefe;  /* Dark background */
    margin: 0 !important;
    min-width: 300px;
}

.container {
    width: 98%;
    margin: 0 auto;
}

/* Layout Flex Helpers */
.disp-row {
    display: flex;
    flex-direction: row;
}

.disp-col {
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--big-stone); /* Updated color */
    color: var(--satin-linen); /* Light color for text */
    padding: 10px 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: fixed; /* Make navbar fixed */
    top: 0; /* Fix it to the top */
    left: 0;
    width: 97.5%; /* Ensure it spans the full width */
    z-index: 1000; /* Ensure it stays on top of other elements */
}

.navbar-brand {
    font-size: 1.5em;
    margin-right: 15px;
}

.navbar-menu {
    display: flex;
    gap: 15px;
    margin-right: 10px;
}

.navbar-item {
    color: var(--satin-linen); /* Consistent text color */
    text-decoration: none;
    font-size: 1.1em;
}

.navbar-item:hover {
    color: var(--regent-gray); /* Hover effect */
}

/* Hamburger Menu Button (Mobile) */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--satin-linen);
    font-size: 1.5em;
    cursor: pointer;
}

/* Loading Overlay and Spinner */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid var(--satin-linen);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide Elements with 'hidden' Class */
.hidden {
    display: none;
}

/* Content Styles */
#content-container {
    padding: 0 0 20px 0;
    margin-top: 65px;
    background-color: #fefefe; /* Background consistent with content */
    color: var(--big-stone);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

#content-container h2, #content-container h3 {
    color: var(--big-stone);
}

#content-container h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--dusty-gray); /* Subtle underline */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#content-container h3 {
    font-size: 1.5em;
    margin: 20px 0 10px 0;
}

#content-container p, #content-container ol {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

#content-container ol {
    padding-left: 20px;
}

#content-container sup {
    font-size: 0.8em;
    color: var(--hit-gray);
}

/* Pun List and Pagination */
#pun-search-container {
    display: flex; 
    flex-direction: row;
    background-color: var(--satin-linen-light);
    border: 1px solid #ededea;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}

#pun-search-area {
    display: flex;
    flex-direction: column;
    width:100%; 
    max-width: 950px; 
    padding: 20px;
}

#mid-barrier {
    max-width: 1.5px;
    min-width: 1.5px;
    max-height: none;
    min-height: none;
    background-color: var(--hit-gray-light);
}

#main-ad-area {
    min-width: 200px;
    max-width: 400px;
    width: auto;
    max-height: none;
    min-height: 200px;
    height: auto;
}

#search-form {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
    align-items: start;
    max-height: 130px;
    max-width: 250px;
    padding: 5px;
    background-color: var(--hit-gray-light);
    border: 1px solid var(--hit-gray);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.25);
}

#search-query {
    width: 210px;
    font-size: 14.5px;
}

.form-row-height {
    height: 35px;
}

#pun-list {
    list-style: none;
    padding: 10px;
    padding-left: 45px;
}

.pun-list-item-container {
    margin-bottom: 10px;
}

.pun-list-items {
    list-style: square;
    padding: 3px 0 3px 20px;
    margin-left: 10px;
}

.pun-list-items li {
    font-size: 17px;
}

#pagination button {
    margin-right: 5px;
    background-color: var(--danube-dark); 
    color: var(--satin-linen);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid var(--spring-wood);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

#pagination button:hover {
    color: var(--satin-linen);
    border: 1px solid var(--gray-olive);
}

#pagination button.active {
    background-color: var(--danube);
}

#pagination button.next-button {
    background-color: var(--hit-gray-light);
    color: var(--big-stone);
    border: 1px solid var(--danube-darker);
}

#pagination button.next-button:hover {
    color: #000;
    border: 1px solid var(--big-stone);
}

.search-item {
    /* 
    background-color: var(--spring-wood); 
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    */
    color: var(--big-stone); /* Darker text color */
    margin: 5px;
}

.search-item a {
    color: var(--big-stone);
    text-decoration: none;
    font-size: 19.5px;
    font-weight: 600;
}

.search-item a:hover {
    color: var(--dusty-gray); /* Hover effect */
}

/* About Page Styles */
#about-container {
    padding: 40px 10px 20px 10px;
    background-color: var(--storm-dust); /* Background consistent with content */
    color: var(--spring-wood);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    width: 100%;
    position: absolute;
    left: 0;
}

#about-container section {
    margin-left: 15px;
}

#about-container h2 {
    color: var(--satin-linen);
    margin-bottom: 10px;
}

#about-container p, #about-container li {
    margin-bottom: 15px;
}

#privacy-policy {
    margin: 30px 20px 0 0;
    padding: 15px;
    background-color: var(--dusty-gray); /* Subtle privacy section background */
    border-radius: 5px;
}

#about-img {
    max-width: 350px; 
    width: auto;
    height:auto; 
    margin-top: 5px;
}

#contact-info a {
    color: var(--danube);
    text-decoration: none;
}

#contact-info a:hover {
    color: var(--regent-gray); /* Hover effect */
}

/* Responsive Media Queries */

/* Mobile Styles */
@media (max-width: 768px) {

    .container {
        width: 100%;
        margin: 0;
    }

    .navbar {
        width: 95%;
    }

    /* Navbar Menu for Mobile */
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background-color: var(--danube);
        width: 150px;
        padding: 5px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .navbar-menu.show {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    /* Content Container for Mobile */
    #content-container {
        padding: 0 0 15px 0;
    }
    
    #pun-search-container {
        flex-direction: column;
    }

    #pun-search-area {
        padding: 10px;
        width: auto;
    }
    
    #pun-list {
        padding: 5px;
    }
    
    .pun-list-items {
        margin-left: 5px;
        margin-right: 10px;
    }
    
    .pun-list-items li {
        font-size: 16px;
    }

    #mid-barrier {
        max-width: none;
        min-width: none;
        max-height: 1.5px;
        min-height: 1.5px;
    }

    #main-ad-area {
        min-width: 200px;
        max-width: none;
        max-height: 400px;
        min-height: 200px;
    }
}

/* Smaller Mobile Devices (Max Width: 600px) */
@media (max-width: 600px) {

    #content-container {
        width: 100%;
    }

    #content-container h2 {
        font-size: 1.5em;
    }

    #content-container h3 {
        font-size: 1.2em;
    }

    #content-container p, #content-container ol {
        font-size: 0.9em;
    }

    #navbar-toggle {
        margin-right: 10px;
    }

}

@media (max-width: 400px) {
    #about-img {
        max-width: 300px;
    }

    
}

@media (max-width: 350px) {
    #about-img {
        max-width: 270px;
    }

}


/* BLOG */

/* Blog page styles */
#blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    color: var(--big-stone);
    background-color: #f4f4ff;
    min-height: calc(100vh - 60px);
}

#blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    color: var(--big-stone);
    background-color: var(--satin-linen-light);
}

#blog-container h1, #blog-post-container h1 {
    text-align: left;
    color: var(--danube-darker);
    font-size: 2.5rem;
}

#blog-header-area h1 {
    margin-bottom: 0;
}

#blog-header-area h2 {
    text-align: left;
    color: var(--danube-darker);
    font-size: 1.5rem;
    margin-top: 0;
}


#posts-list h2 a {
    color: var(--danube-dark);
    text-decoration: none;
}

#posts-list h2 a:hover {
    color: var(--danube);
    text-decoration:underline;
}

.blog-post {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--hit-gray-light);
    padding-bottom: 20px;
}

.blog-post h2 {
    color: var(--danube-dark);
    font-size: 1.8rem;
}

.blog-post p {
    color: #111;
    font-size: 1rem;
}

.read-more {
    color: var(--danube-dark);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.blog-pagination a {
    color: var(--danube-darker);
    text-decoration: none;
    padding: 10px;
    border: 1px solid var(--danube-darker);
    border-radius: 5px;
}

.blog-pagination a:hover {
    background-color: var(--danube);
    color: var(--satin-linen-light);
}

/* Mobile styles */
@media (max-width: 600px) {
    #blog-container h1 {
        font-size: 2rem;
    }

    .blog-post h2 {
        font-size: 1.4rem;
    }

    .blog-pagination a {
        padding: 8px;
        font-size: 0.9rem;
    }
}


/* STORE */
