.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../assets/img/gallery/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Prevents rescaling on mobile */
    z-index: -1;
    -webkit-transform: translateZ(0); /* iOS fix for fixed background */
    transform: translateZ(0);
}

.background-image-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content towards the bottom */
    align-items: center;
    overflow: hidden;
    background: none;
    font-weight: bolder;
    padding-bottom: 50px; /* Add spacing from the bottom */
}


.background-image.fixed {
    position: fixed; /* Make the background image fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1; /* Push it behind other content */
}

.background-image-container h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    text-align: center;
    margin: 0;
    padding: 10px;
    white-space: nowrap;
    font-weight: 900;
    font-style: oblique;
    font-stretch: ultra-condensed;
}

.background-image-container p {
    position: relative;
    text-align: center;
    margin: 0;
    padding: 10px;
    font-size: 48px;
    font-size: clamp(2rem, 1vw, 1rem); /* Smaller responsive font size */

}

.background-image h1 {
    padding-top: 20vh;
    font-size: 3em;
}

.background-image p {
    font-size: 1.5em;
    margin-top: 1em;
}

body {
    background-color:#020401;
    margin: 0;
    margin-top: 0px;
    padding: 0px;
    padding-top: 0px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    min-height: 100vh;
    color: green;
    text-shadow: 
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

blockquote {
    border-left: 5px solid #ccc;
    padding-left: 10px;
    margin-left: 0;
    color: #666;
}

button {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #34495e;
}

code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

/* Apply opacity to everything except text */
.container {
    position: relative;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    width: calc(100% - 40px); /* Add responsive padding from screen edges */
    background-color: rgba(30, 40, 29, 0.9);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Ensure padding and border are included in width/height */
    text-shadow: none;
}

/* Ensure text remains fully opaque */
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6,
.container p,
.container span,
.container small {
    opacity: 1; /* Override opacity for text elements */
    text-align: center; /* Center-align text for better scaling */
}

.container a {
    opacity: 1;
    color: #44553f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.container a:hover {
    color: #696969;
}

.container .heading {
    font-size: clamp(1.5rem, 4vw, 4rem);
    text-align: left;
    margin: 5px 5px;
    font-weight: 900;
    font-stretch: ultra-condensed;
}
.container p img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    object-fit: contain; /* Maintain aspect ratio of images */
}

.container ul {
    justify-content: right;
    font-size: clamp(1rem, 1.2em, 1.5rem); /* Responsive font size */
    margin: 0;
    padding: 0;
    list-style: none;
}

.container * {
    max-width: 100%; /* Ensure all elements scale within the container */
    box-sizing: border-box; /* Include padding and border in element's dimensions */
}
.error {
    color: #e74c3c;
    text-align: center;
    font-weight: 500;
}

.favicon {
    width: 48px;
    height: 48px;
    margin-left: 20px;
}

.favicon-link {
    display: flex;
    align-items: center;
    margin-left: auto;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

footer p {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


header {
    align-items: center;
    background-color: #45f761;
    color: white;
    display: flex;
    text-align: center;
    justify-content: space-between;
    padding: 15px 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 90%;
    margin: 0 100px;
    padding: 0 20px;
}

header nav .favicon-link {
    margin-right: auto;
    margin-left: 0;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    /*padding-left: 0;*/
}

header nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
    /*justify-content: right;*/
}

header nav ul li a:hover {
    color: #696969;
}

h1, h2 {
    text-align: center;
    /*color: #b4dfa7;*/
    color: green;
    margin-top: 20px;
    font-weight: 900;
    font-style: oblique; 
}

input[type="text"], textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

li {
    margin-bottom: 10px;
    list-style-type: none;
    color: rgb(180, 223, 167);
    
}

li.post {
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white background */
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

li.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

li.post h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6em;
    text-align: left;
}

li.post p {
    color: #444;
    margin-bottom: 15px;
    font-family: Courier, monospace;
}

li.post small {
    color: #666;
    display: block;
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-size: 0.9em;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo-title a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 100px; /* Adjust size as needed */
    height: 100px;
    margin-right: 30px;
}

p {
    margin-bottom: 20px;
}

pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

search-form {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 30px;
    padding-bottom: 6px;
}

#spacer {
    height: 200px; /* Adjust height as needed */
    width: 100%;
    background: transparent; /* Ensure it's completely empty */
    margin: 0;
    padding: 0;
}

.search-form input[type="text"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.search-form button {
    padding: 5px 10px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #696969;
}

.site-title {
    font-size: 24px;
}

.site-title:hover {
    color: #696969;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(180, 223, 167, 0.2);
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-moss);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 8px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
    transition: filter 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--dark-forest);
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}


.success {
    color: #2ecc71;
    text-align: center;
    font-weight: 500;
}

tags-input-wrapper {
    background: white;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
    padding: 8px 0;
}

tag {
    background-color: #ffffff;
    color: #333;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    gap: 5px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

tag:hover {
    background-color: #696969;
    border-color: #999999;
    transform: translateY(-1px);
}

tag-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;  /* Increased height to show more tags */
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 4px;
}

tag-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

tag-suggestion:hover {
    background-color: #f0f0f0;
}

tags-input-wrapper {
    position: relative;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.typed-cursor {
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 2px;
}

post {
    background-color: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

tag-close {
    cursor: pointer;
    color: #666;
}
#tagInput {
    border: none;
    outline: none;
    flex: 1;
    min-width: 60px;
    padding: 5px;
}

textarea {
    min-height: 200px;
    resize: vertical;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: green;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.menu-items {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 300px;
    height: 100vh;
    background: rgba(43, 66, 40, 0.95);
    padding: 80px 40px;
    transition: right 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
    visibility: hidden; /* Hide the menu completely */
    opacity: 0; /* Make it transparent */
}

.menu-items.active {
    right: 0;
    visibility: visible; /* Show the menu when active */
    opacity: 1; /* Make it fully visible */
}

.menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items ul li {
    margin: 20px 0;
}

.menu-items ul li a {
    color: green;
    text-decoration: none;
    font-size: 2.0em;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.menu-items ul li a i {
    margin-right: 10px;
    width: 20px;
}

.menu-items ul li a:hover {
    color: white;
    font-style: oblique;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    color: #f1f1f1;
    font-size: 40px;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.modal-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-nav button:hover {
    background: rgba(255,255,255,0.3);
}

/* Media query for iOS devices */
@supports (-webkit-touch-callout: none) {
    .background-image {
        background-attachment: scroll; /* Fallback for iOS */
    }
}

/* Ensure minimum text size on very small screens */
@media screen and (max-width: 380px) {
    .background-image-container h1 {
        font-size: 2.5rem; /* Minimum font size */
    }
}

@media (max-width: 768px) {
    .social-icon {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
}