/* ==============================
   Navbar Styling
   ============================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.navbar.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    flex: 1;
}

.nav-left h2 {
    font-weight: 600;
    font-size: 1.5em;
    margin: 0;
    word-wrap: break-word;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Adds space between elements */
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-icon {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: #ffdb5b;
}

.nav-select {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-select:hover {
    background: #f3f3f3;
}

/* Floating Button Styling */
.floating-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff5e3a, #ff2d55);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.floating-button:hover {
    transform: scale(1.1);
}

/* ==============================
   Button Styling
   ============================== */
.primary-button {
    background: #ff5e3a;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.primary-button:hover {
    background: #e04c2f;
}

/* ==============================
   Visitor Count Styling
   ============================== */
.visitor-count {
    margin-left: 10px;
    font-size: 0.9em;
    color: #f0f0f0;
}

/* ==============================
   Gallery Styling
   ============================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Ensure items are arranged in a grid */
    gap: 20px; /* Add spacing between grid items */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Gallery Item Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 100%;
    height: 200px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fits the square container */
}

/* Gallery Item Click Count */
.gallery-item .click-count {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

/* ==============================
   Modal Styling
   ============================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    box-sizing: border-box;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Modal Close Button Styling */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    background: #ff5e3a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-left h2 {
        font-size: 1.2em;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-right {
        justify-content: center;
    }

    .modal {
        width: 90%;
        padding: 15px;
    }

    .modal-content {
        padding: 10px;
    }

    .close-button {
        top: 5px;
        right: 5px;
        font-size: 1.2em;
        width: 25px;
        height: 25px;
    }
}

/* ==============================
   Default Body Styling
   ============================== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, p, button, select, input {
    font-family: 'Poppins', sans-serif;
}

/* Ensure body takes up full width and height */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure main containers also take full width */
body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: 'Poppins', sans-serif; /* Retain existing styling */
    padding: 0;
}

/* ==============================
   Drop Zone Styling
   ============================== */
.drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    width: 100%;
    border: 2px dashed #6a11cb;
    border-radius: 10px;
    cursor: pointer; /* Make it clear that the whole area is clickable */
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
    color: #6a11cb;
    font-weight: bold;
}

.drop-zone-hover {
    background-color: rgba(106, 17, 203, 0.1);
}

.drop-zone.dropped {
    border: 2px solid #2575fc;
    background-color: rgba(106, 17, 203, 0.2);
    color: #2575fc;
}

.drop-zone p {
    margin: 0;
}

.drop-zone .success-message {
    color: #2575fc;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1em;
}
