.bg-yellow-400 {
    background-color: #ffc107;
}

.bg-red-800 {
    background-color: #dc3545;
}

/* General Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #06402B;
    color: white;
}

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    background-image: url("background.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* background-size: 100%; */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1920px) {
    body {
        background-size: 1920px, 1080px;
    }
}

@media (max-width: 2560px) {
    body {
        background-size: 2560px, 1440px;
    }
}

@media (max-width: 3840px) {
    body {
        background-size: 3840px, 2160px;
    }
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #06402B;
    color: white;
    margin-top: auto;
}

/* Navigation Bar */
.nav-container {
    flex: 1;
    justify-content: center;
    text-decoration: underline;
}

nav {
    background-color: #06402B;
    padding: 10px;
    text-align: center;
    display: flex;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 25px;
}

nav a:hover {
    text-decoration: underline;
}

.lia p {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

.profile-photo-header {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    color:#06402B;
    background-color: #06402B;
}
.user-info {
    position: absolute;
    right: 20px;
    /* display: flex; */
    /* align-items: center; */
}
.username {
    color: lightblue;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-wrap: wrap; /* Allows wrapping */
        gap: 10px;
    }

    .nav-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        flex: 1; /* Takes up remaining space */
        justify-content: left;

    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        display: inline-block; /* Prevents full-width stacking */
        padding: 10px;
        white-space: nowrap; /* Prevents breaking */
        flex-shrink: 0; /* Prevents shrinking */
    }

    .profile-photo-header {
        width: 30px;
        height: 30px;
    }
    .user-info {
        position: static;
        right: auto;
    }
    .logo-container {
        position: static;
    }

    .username {
        font-size: 14px;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-buttons {
        flex-direction: column;
    }
}



/* Main Content Container */
.container {
    width: 80%;
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Media Grid Container */
.media-grid {
    display: grid;
    gap: 5px;
    width: 100%;
    height: 200px; /* Consistent height for all media blocks */
    overflow: hidden; /* Hide overflow */

}

/* Post Styles */
.post {
    border-bottom: 1px solid #ddd;
    padding: 20px;
}

.post h2 {
    margin: 0;
    color: #333;
}

.post-image {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

.profile-photo-post {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 5px; /* Space between username and profile picture */
}

.post-user-link {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline */
    color: black; /* Make text black */
    font-style: normal; /* Ensure normal text style */
}
.post-media {
    display: flex;
    flex-wrap: wrap; /* Wrap media if too many */
    gap: 10px; /* Space between items */
    justify-content: left;
    align-items: center;
}

.post-media img {
    max-width: 100%; /* Ensure it doesn’t overflow */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Prevent huge images */
    object-fit: contain; /* Scale properly */
    border-radius: 10px; /* Optional rounded corners */
}

.post-media video {
    max-width: 100%; 
    max-height: 300px; /* Same height constraint */
    border-radius: 10px;
}

.post-media audio {
    width: 100%; /* Ensure it spans container */
    max-width: 400px; /* Prevent overly wide players */
}

/* Post Styles (View All/User Profile) */
.post-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures button stays at bottom */
    height: 500px; /* Adjust as needed to fit your content */
    margin-bottom: 20px;
    border-radius: 15px;
    border: 2px solid #ddd;
    padding: 20px;
    transition: transform 0.3s ease;

}


.post-tile:hover {
    transform: translateY(-5px);
}

.post-content {
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-image, .post-video {
    max-width: 275px;
    max-height: 200px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 10px;
}

.post-user-link {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline */
    color: black; /* Make text black */
    font-style: normal; /* Ensure normal text style */
}

.search-bar {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Ensuring media elements have consistent size */
.media-item {
    width: 100%;
    height: 100% !important;
    object-fit: cover; /* Crops images/videos instead of stretching */
    border-radius: 10px;
    aspect-ratio: 16/9;
}
audio.media-item {
    height: 40px; /* Control the height of the audio player */
    object-fit: contain; /* Keep audio controls contained */
    border-radius: 5px;
}

/* Different layouts based on file count */
.grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.grid-1x2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-1x1 {
    grid-template-columns: 1fr;
}


/* Profile Section */
.profile-container {
    text-align: center;
    margin-bottom: 20px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-links a {
    display: inline-block;
    margin: 0 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.profile-links a:hover {
    text-decoration: underline;
}

/* Form Styling */
form {
    margin-top: 15px;
}

form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 100px;
}

form label {
    font-weight: bold;
}

.post_controls {
    margin-top: 30px;
}

/* Map Styling */
#map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.map-container {
    max-width: 1200px;
    height: 100%;
    margin: auto;
    text-align: center;
    padding: 20px;
}

/* Comment Styling */
#comments {
    overflow-x: auto;
    white-space: normal;
    max-width: 100%;
}

.comment {
    margin-left: 0px; /* Remove left margin */
    border-left: 1px solid #ccc; /* Add a left border */
    padding-left: 10px; /* Add padding to create space */
    min-width: 60%; /* Ensure comments don't get too narrow */
}

.replies {
    margin-left: 20px; /* Indent replies */
    max-width: 100%; /* Keep it responsive */
    padding-left: 20px; /* Add some padding */
    display: flex;
    flex-direction: column; /* Stack replies vertically */
    gap: 10px; /* Add some gap between replies */
}

.replies .comment {
    width: 100%; /* Adjust width for nested comments */
}

/* Tagify input field styling */
.tagify__input {
    min-width: 150px; /* Adjust width as needed */
    padding-left: 10px;
    padding-right: 10px;
    display: inline-block; /* Ensure it's displayed inline-block */
    vertical-align: middle; /* Align it in the middle */
}

.tagify {
    display: flex;
    align-items: center;
    min-height: 38px; /* Ensuring the container has a consistent height */
    border: 1px solid #ccc; /* Adding border for a complete input field appearance */
    padding: 5px; /* Adding padding for a consistent look */
}

/* Placeholder text styling */
.tagify__input::placeholder {
    opacity: 0.5; /* Adjust opacity for better visibility */
    padding-left: 10px; /* Ensure placeholder is well-aligned */
}

.error-box {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.success-box {
    color: black;
    background-color: #00ff8c;
    border-color: #00ff0c;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.bg-adventure-green {
    background-color: #06402B;
}

.nav-buttons {
    flex-direction: row;
}




