@import url('https://fonts.cdnfonts.com/css/barlow-condensed');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../images/Booklet22.png');
    /* Replace with your image path */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: 40%;
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
    flex-direction: column;
    min-height: 100vh;
    display: flex;
    position: relative;
}

html {
    width: 100%;
    height: 100%; /* Ensures that the body takes the full height of the viewport */
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    margin: 0;
    padding: 0;
    position: relative;
}

header img {
    width: 120px;
    z-index: 100000;
}

header {
    display: flex;
    justify-content: space-between; /* This will place space between the logo and the menu icon */
    align-items: center; /* Vertically align images in the center */
    position: relative;
    width: 100%; /* Ensures header takes full width of the screen */
    z-index: 1000; /* Ensure header stays on top */
    margin-top: -40px;
}

.logo {
    width: 250px; /* Adjust the size of the logo */
    height: auto;
}

.menuToggle {
    width: 110px;
    height: 130px;
    transform: translateX(-30px);
    cursor: grab;
    position: relative; /* Keeps the menu toggle in place */
    z-index: 1000;
}

header .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: rgb(0, 0, 0); /* Adjust transparency as needed */
    opacity: 0;
    visibility: hidden;
    z-index: -1; /* Below navigation but above all other content */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When header has the open class */
header.open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

header .navigation {
    pointer-events: none; /* Disable interaction when hidden */
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 20vh;
    right: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 80px;
    list-style: none;
    z-index: 10000;
}

header.open .navigation {
    pointer-events: auto; /* Enable interaction when visible */
    opacity: 1;
    visibility: visible;
}

header.open .navigation img {
    transform: scale(1.2);
}

body.menu-open {
    overflow: hidden;
}

/* Disable scrolling */
.no-scroll {
    overflow: hidden;
    height: 100vh; /* Prevent scrolling by fixing the height */
}

.homename {
    margin-left: -1px;
}

.aboutname {
    width: 130px;
    margin-left: -4px;
    margin-top: -15px;
}

.galleryname {
    width: 150px;
    margin-top: 2px;
    margin-left: 2px;
    position: relative;
}

.contactname {
    width: 160px;    
    margin-top: -12px; /* Adjust this value to move it up or down */
    margin-left: -10px;
    position: relative;
}

.navigation li {
    position: relative;
    display: inline-block; /* Makes sure each item takes only as much space as the text/image */
    margin-right: 30px; /* Adds some spacing between items */
}

.navigation li a::before {
    content: '';
    position: absolute;
    left: -50px; /* Adjust this distance as needed */
    top: 50%;
    transform: translateY(-50%);
    width: 40px; /* Size of the dot */
    height: 40px;
    background-image: url('../images/circledotthing.png'); /* Path to your dot image */
    background-size: contain;
    background-repeat: no-repeat;
    display: none; /* Hidden by default */
    overflow: visible;
    cursor: grab;
}

.navigation li a:hover::before {
    display: block; /* Shows the dot on hover */
    cursor: grab;
}

@media (max-width: 1280px) {
    .image-container {
        margin-top: -30px;
        left: 40%;
    }

    .image-placement {
        width: 500px;
        transform: scale(0.6);
    }
}

@media screen and (max-width: 1024px) and (max-height: 600px) {
    .image-container {
        margin-top: -30px;
        left: 42%;
    }

    .image-placement {
        transform: scale(0.6);
    }
}

@media (max-width: 1023px) {
    .image-container {
        margin-top: -30px;
    }

    .image-placement {
        width: 500px;
        transform: scale(0.6);
    }
}

@media (max-width: 853px) {
    .image-container {
        margin-top: -30px;
        left: 32%;
    }

    .image-placement {
        width: 800px;
    }
}

@media (max-width: 768px) {
    .image-container {
        margin-top: 10px;
        left: 33%;
    }

    .image-placement {
        width: 600px;
    }

    .menuToggle {
        width: 70px;
        height: 90px;
    }

    .logo {
        width: 120px; /* Adjust size for smaller screens */
    }

    header {
        margin-top: 0px;
    }
}

@media (max-width: 640px) {
    .image-placement {
        width: 500px;
    }
}

@media (max-width: 540px) {
    header {
        margin-top: 0px;
    }

    header.open .navigation {
        left: 10%;
        transform: scale(0.8);
    }

    .image-placement {
        width: 440px;
    }
}

@media (max-width: 539px) {
    header {
        margin-top: 0px;
    }

    header.open .navigation {
        transform: scale(0.8);
    }

    .image-container {
        margin-top: 10px;
        left: 33%;
    }

    .image-placement {
        width: 440px;
        left: 20%;
    }
}

@media (max-width: 375px) {
    header.open .navigation {
        transform: scale(0.6);
        left: 18%;
    }

    .menuToggle {
        width: 60px;
        height: 80px;
    }

    .logo {
        width: 110px; /* Adjust size for smaller screens */
    }

    .image-container {
        margin-top: 0px;
    }

    .image-placement {
        width: 370px;
    }
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.6);
        gap: 80px; /* Reduce spacing between items */
        left: 150px;
    }
    
    header.open .navigation img {
        transform: scale(2); /* Reset the 1.2 scale */
    }
}

@media only screen and (max-width: 932px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.6);
        gap: 40px; /* Reduce spacing between items */
        left: 150px;
    }
    
    header.open .navigation img {
        transform: scale(1.4); /* Reset the 1.2 scale */
    }
}

@media only screen and (max-width: 768px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.5);
        top: 5vh;
        gap: 30px;
    }
}

@media only screen and (max-width: 740px) and (orientation: landscape) {
    header.open .navigation {
        transform: scale(0.6);
        gap: 40px; /* Reduce spacing between items */
        left: 120px;
        top: 40px;
    }
    
    header.open .navigation img {
        transform: scale(1.4); /* Reset the 1.2 scale */
    }
}