/* Shared styles for all pages */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    height: 100%;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

p {
    margin: 0;
    padding: 20px;
}

nav {
    display: flex;
    justify-content: flex-end; /* Align the menu and hamburger to the right */
    align-items: center;
    width: 100%; /* Ensure the nav takes the full width */
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    margin: 0 20px;
}

nav a:hover {
    color: grey;
}

/* Main content styles */
main {
    height: 100vh;
    padding: 120px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

h1 {
    font-size: 64px;
    font-weight: 400;
    margin: 0;
}

.form-container {
    max-width: 300px;
    margin-top: 20px;
}

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

input {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
}

button {
    padding: 10px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.flashes {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.flashes li {
    padding: 10px;
    margin-bottom: 10px;
}

.flashes .success {
    background-color: lightgreen;
}

.flashes .error {
    background-color: lightcoral;
}

.home {
    padding-top: 100px; /* Adjust this value according to the height of your header */
}

.gallery {
    padding-top: 100px; /* Adjust this value according to the height of your header */
}

.about {
    padding-top: 100px; /* Adjust this value according to the height of your header */
}

.contact {
    padding-top: 100px; /* Adjust this value according to the height of your header */
}

.profile {
    padding-top: 100px; /* Adjust this value according to the height of your header */
}

/* Photo gallery styles */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
}

.photo {
    margin: 10px;
}

.photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #fff;
}

/* Menu styles */
.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* Display the menu as a horizontal list for desktop */
    justify-content: flex-end; /* Align the menu links to the right */
    flex-grow: 1; /* Push the menu to the right by growing to take remaining space */
}

.menu li {
    display: inline-block;
    margin-right: 20px;
}

.menu li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.menu li a:hover {
    color: grey;
}

/* Hamburger menu icon */
.hamburger {
    font-size: 30px;
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    margin-left: auto; /* Ensure the hamburger is aligned to the right on mobile */
}

main {
    margin-top: 80px; /* Add space to prevent content overlap with header */
    padding: 20px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger icon on smaller screens */
    }

    .menu {
        display: none; /* Hide menu initially on mobile */
        flex-direction: column; /* Stack menu items vertically */
        /*background-color: rgba(255, 255, 255, 0.1); */ /* Transparent white background */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .menu li {
        text-align: left;
        padding: 0; /* Remove padding to ensure full-width links */
        margin: 0;
        width: 100%; /* Ensure list items take full width */
    }

    .menu li a {
        display: block;
        text-decoration: none; /* Remove underline */
        color: black;
        padding: 15px 20px;
        width: 100%; /* Make sure the links take the full width of the screen */
        box-sizing: border-box; /* Ensure padding doesn't exceed width */
        text-align: right; /* Align the text to the right */
        padding-right: 40px /* Add extra padding on the right */
    }

    .menu li a:hover {
        background-color: rgba(0, 0, 0, 0.1); /* Slightly darker background on hover */
    }
}


/* Show the menu when the hamburger is clicked */
.menu.active {
    display: flex; /* Show the menu on mobile when active */
}


.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slides {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 1s ease-in-out;
}

.slide {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

.overlay {
    position: absolute;
    bottom: 150px;
    left: 20px;
    color: rgb(0, 0, 0);
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 8px;
    z-index: 10;
}

.overlay h2 {
    margin: 0;
}

  /* Navigation arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.arrow.prev {
    left: 20px;
}

.arrow.next {
    right: 20px;
}

.dropzone {
    width: 100%;
    padding: 40px;
    border: 2px dashed #ccc;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load[src] {
    opacity: 1;
}

.dropzone.dragover {
    background-color: #f0f0f0;
    border-color: #666;
}

/* Media query to hide the dropzone on mobile devices */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}