.logo-img {
    position: absolute;
    top: 40px;
}


body, html {
    margin: 0;
    padding: 0;
    position: relative;
    height: 200vh;
}

@media (min-width: 768px) {
    #vorm {
        clip-path: polygon(100% 0, 100% 54%, 0 100%, 0 0);
    }
}

.curtain {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100vh;
    transition: transform 0.7s ease-in-out;
    z-index: 10;
}

.curtain-left {
    left: 0;
    transform: translateX(0);
}

.curtain-right {
    right: 0;
    transform: translateX(0);
}

.curtain-open .curtain-left {
    transform: translateX(-100%);
}

.curtain-open .curtain-right {
    transform: translateX(100%);
}

::-webkit-scrollbar-thumb {
    box-shadow: 0 0 20px rgb(255, 255, 255), 0 0 30px rgb(255, 255, 255), inset 0 0 7px rgb(255, 255, 255);
    text-shadow: 0 0 5px rgb(0, 141, 143), 0 0 10px rgb(0, 141, 143), 0 0 20px rgb(0, 141, 143), 0 0 30px rgb(0, 141, 143), 0 0 40px rgb(0, 141, 143), 0 0 55px #da8fff, 0 0 75px #da8fff;
    background: white; 
    border-radius: 10px;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(0, 0, 0); 
    border-radius: 10px;
}

#truck {
    display: flex;
    transition: 4s;
    left: 2%;
    position: absolute;
}

#gordijntjetruck {
    display: none;
    transition: 3s;
    left: 4%;
    width: 4%;
    bottom: 40%;
    position: absolute;
}

@media (max-width: 768px) {
    img[alt="gordijn"] {
        display: none;
    }
    
    #truckbutton {
        display: none;
    }

    .smoke-wrap {
        display: none;
    }
}
.smoke-wrap {
    position: absolute;
    right: 3%;
    bottom: 100px;
    top: -70%;
    width: 200px;
}

.smoke, .smoke2, .smoke3 {
    filter: blur(5px);
    transform-origin: 50% 50%;
}

.smoke1 {
    animation: smoke1 3s infinite;
    animation-delay: 0.5s;
}

.smoke2 {
    animation: smoke2 3s infinite;
    animation-delay: 1.5s;
}

.smoke2 {
    animation: smoke2 3s infinite;
    animation-delay: 1.5s;
}

.smoke3 {
    width: 500px;
    animation: smoke3 4s infinite;
    animation-delay: 2.5s;
}

@keyframes smoke1 {
    0% {
        filter: blur(0px);
        transform: translateY(0px) scale(-1, 1);
        opacity: 0;
    }
    25% {
        filter: blur(3px);
        transform: translateY(-10px) scale(-1, 1.05);
        opacity: 0.5;
    }
    50% {filter: blur(5px);
        transform: translateY(-20px) scale(-1, 1.1);
        opacity: 1;
    }
    75% {
        filter: blur(5px);
        transform: translateY(-30px) scale(-1, 1.15);
        opacity: 0.5;
    }
    100% {
        filter: blur(7px);
        transform: translateY(-40px) scale(-1, 1.2);
        opacity: 0;
    }
}

@keyframes smoke2 {
    0% {
        filter: blur(0px);
        transform: translateY(0px) scale(1);
        opacity: 0;
    }
    25% {
        filter: blur(3px);
        transform: translateY(-10px) scale(1.05);
        opacity: 0.5;
    }
    50% {filter: blur(5px);
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
    75% {
        filter: blur(5px);
        transform: translateY(-30px) scale(1.15);
        opacity: 0.5;
    }
    100% {
        filter: blur(7px);
        transform: translateY(-40px) scale(1.2);
        opacity: 0;
    }
}

@keyframes smoke3 {
    0% {
        filter: blur(0px);
        transform: translateY(0px) scale(1);
        opacity: 0;
    }
    25% {
        filter: blur(3px);
        transform: translateY(-20px) scale(1.05);
        opacity: 0.5;
    }
    50% {filter: blur(5px);
        transform: translateY(-40px) scale(1.1);
        opacity: 1;
    }
    75% {
        filter: blur(5px);
        transform: translateY(-60px) scale(1.15);
        opacity: 0.5;
    }
    100% {
        filter: blur(7px);
        transform: translateY(-80px) scale(1.2);
        opacity: 0;
    }
}

.phone-icon {
    font-size: 50px;
    animation: ring 1s infinite;
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }
    10% {
        transform: rotate(15deg);
    }
    20% {
        transform: rotate(-15deg);
    }
    30% {
        transform: rotate(10deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(5deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0);
    }
}


#animateDiv {
    width: 25%;
    position: relative;
}

@keyframes example {
    0% {
        left: 2%;
        top: 10%;
        transform: rotate(0deg);
        animation-timing-function: ease-in-out;
    }
    10% {
        left: 0%;
        top: 10%;
        animation-timing-function: ease-in-out;
    }
    25% {
        top: 10%;
        transform: rotate(0deg);
        animation-timing-function: ease-in-out;
    }
    40% {
        left: 13%;
        top: 30%;
        transform: rotate(90deg);
        animation-timing-function: ease-in-out;
    }
    70% {
        left: 13%;
        top: 58%;
        opacity: 1;
        animation-timing-function: ease-in-out;
    }
    73% {
        transform: rotate(90deg);
        opacity: 0;
        animation-timing-function: ease-in-out;
    }
}


img.gordijnanimatieliniaal {
    height: auto;
    margin-top: 20px;
}

#drill-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Limit container width */
    height: 600px; /* Fixed height for consistency */
    overflow: hidden;
}

/* Background Image */
.background {
    width: 500px;
    border-radius: 8px;
    height: auto;
    position: absolute;
}

/* Curtain Images */
.curtain-container {
    position: relative;
    width: 500px;
    height: 200px;
    display: flex;
    justify-content: space-between;
}

.drill-curtain-left {
    position: absolute;
    top: 30px;
    left: 80px;
    width: 120px;
    height: auto;
}

.drill-curtain-right {
    position: absolute;
    top: 30px;
    right: 10px;
    width: 120px;
    height: auto;
}

/* Drill */
.drill {
    width: 50px;
    height: auto;
    position: absolute;
    top: 300px; /* Starting point */
    left: 50px;
    animation: drill-movement 6s ease-in-out infinite; /* Infinite animation */
    z-index: 2;
}

/* Animations */

/* Drill moving toward the center */
@keyframes drill-movement {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(0px, -280px) rotate(360deg); /* Moves toward the right curtain */
    }
    80%{
        transform: translate(390px, -280px) rotate(360deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg); /* Returns to starting position */
    }
}

/* Curtains shaking as the drill "hits" */
@keyframes curtain-shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Apply shaking effect when triggered */
.curtain.shake {
    animation: curtain-shake 0.5s ease;
}


.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .logo-img {
        position: absolute;
        top: 40px;
    }


    body, html {
        margin: 0;
        padding: 0;
        position: relative;
        height: 200vh;
    }

    @media (min-width: 768px) {
        #vorm {
            clip-path: polygon(100% 0, 100% 54%, 0 100%, 0 0);
        }
    }

    .curtain {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 50%;
        height: 100vh;
        transition: transform 0.7s ease-in-out;
        z-index: 10;
    }

    .curtain-left {
        left: 0;
        transform: translateX(0);
    }

    .curtain-right {
        right: 0;
        transform: translateX(0);
    }

    .curtain-open .curtain-left {
        transform: translateX(-100%);
    }

    .curtain-open .curtain-right {
        transform: translateX(100%);
    }

    ::-webkit-scrollbar-thumb {
        box-shadow: 0 0 20px rgb(255, 255, 255), 0 0 30px rgb(255, 255, 255), inset 0 0 7px rgb(255, 255, 255);
        text-shadow: 0 0 5px rgb(0, 141, 143), 0 0 10px rgb(0, 141, 143), 0 0 20px rgb(0, 141, 143), 0 0 30px rgb(0, 141, 143), 0 0 40px rgb(0, 141, 143), 0 0 55px #da8fff, 0 0 75px #da8fff;
        background: white; 
        border-radius: 10px;
    }

    ::-webkit-scrollbar {
        width: 5px;
    }

    ::-webkit-scrollbar-track {
        box-shadow: inset 0 0 5px rgb(0, 0, 0); 
        border-radius: 10px;
    }

    #truck {
        display: flex;
        transition: 4s;
        left: 2%;
        position: absolute;
    }

    #gordijntjetruck {
        display: none;
        transition: 3s;
        left: 4%;
        width: 4%;
        bottom: 40%;
        position: absolute;
    }

    @media (max-width: 768px) {
        img[alt="gordijn"] {
            display: none;
        }
        
        #truckbutton {
            display: none;
        }

        .smoke-wrap {
            display: none;
        }
    }
    .smoke-wrap {
        position: absolute;
        right: 3%;
        bottom: 100px;
        top: -70%;
        width: 200px;
    }

    .smoke, .smoke2, .smoke3 {
        filter: blur(5px);
        transform-origin: 50% 50%;
    }

    .smoke1 {
        animation: smoke1 3s infinite;
        animation-delay: 0.5s;
    }

    .smoke2 {
        animation: smoke2 3s infinite;
        animation-delay: 1.5s;
    }

    .smoke2 {
        animation: smoke2 3s infinite;
        animation-delay: 1.5s;
    }

    .smoke3 {
        width: 500px;
        animation: smoke3 4s infinite;
        animation-delay: 2.5s;
    }

    @keyframes smoke1 {
        0% {
            filter: blur(0px);
            transform: translateY(0px) scale(-1, 1);
            opacity: 0;
        }
        25% {
            filter: blur(3px);
            transform: translateY(-10px) scale(-1, 1.05);
            opacity: 0.5;
        }
        50% {filter: blur(5px);
            transform: translateY(-20px) scale(-1, 1.1);
            opacity: 1;
        }
        75% {
            filter: blur(5px);
            transform: translateY(-30px) scale(-1, 1.15);
            opacity: 0.5;
        }
        100% {
            filter: blur(7px);
            transform: translateY(-40px) scale(-1, 1.2);
            opacity: 0;
        }
    }

    @keyframes smoke2 {
        0% {
            filter: blur(0px);
            transform: translateY(0px) scale(1);
            opacity: 0;
        }
        25% {
            filter: blur(3px);
            transform: translateY(-10px) scale(1.05);
            opacity: 0.5;
        }
        50% {filter: blur(5px);
            transform: translateY(-20px) scale(1.1);
            opacity: 1;
        }
        75% {
            filter: blur(5px);
            transform: translateY(-30px) scale(1.15);
            opacity: 0.5;
        }
        100% {
            filter: blur(7px);
            transform: translateY(-40px) scale(1.2);
            opacity: 0;
        }
    }

    @keyframes smoke3 {
        0% {
            filter: blur(0px);
            transform: translateY(0px) scale(1);
            opacity: 0;
        }
        25% {
            filter: blur(3px);
            transform: translateY(-20px) scale(1.05);
            opacity: 0.5;
        }
        50% {filter: blur(5px);
            transform: translateY(-40px) scale(1.1);
            opacity: 1;
        }
        75% {
            filter: blur(5px);
            transform: translateY(-60px) scale(1.15);
            opacity: 0.5;
        }
        100% {
            filter: blur(7px);
            transform: translateY(-80px) scale(1.2);
            opacity: 0;
        }
    }

    .phone-icon {
        font-size: 50px;
        animation: ring 1s infinite;
    }

    @keyframes ring {
        0% {
            transform: rotate(0);
        }
        10% {
            transform: rotate(15deg);
        }
        20% {
            transform: rotate(-15deg);
        }
        30% {
            transform: rotate(10deg);
        }
        40% {
            transform: rotate(-10deg);
        }
        50% {
            transform: rotate(5deg);
        }
        60% {
            transform: rotate(-5deg);
        }
        100% {
            transform: rotate(0);
        }
    }


    #animateDiv {
        width: 25%;
        position: relative;
    }

    @keyframes example {
        0% {
            left: 2%;
            top: 10%;
            transform: rotate(0deg);
            animation-timing-function: ease-in-out;
        }
        10% {
            left: 0%;
            top: 10%;
            animation-timing-function: ease-in-out;
        }
        25% {
            top: 10%;
            transform: rotate(0deg);
            animation-timing-function: ease-in-out;
        }
        40% {
            left: 13%;
            top: 30%;
            transform: rotate(90deg);
            animation-timing-function: ease-in-out;
        }
        70% {
            left: 13%;
            top: 58%;
            opacity: 1;
            animation-timing-function: ease-in-out;
        }
        73% {
            transform: rotate(90deg);
            opacity: 0;
            animation-timing-function: ease-in-out;
        }
    }


    img.gordijnanimatieliniaal {
        height: auto;
        margin-top: 20px;
    }

    #drill-container {
        position: relative;
        width: 100%;
        max-width: 800px; /* Limit container width */
        height: 600px; /* Fixed height for consistency */
        overflow: hidden;
    }

    /* Background Image */
    .background {
        width: 500px;
        border-radius: 8px;
        height: auto;
        position: absolute;
    }

    /* Curtain Images */
    .curtain-container {
        position: relative;
        width: 500px;
        height: 200px;
        display: flex;
        justify-content: space-between;
    }

    .curtain {
        width: 120px;
        height: auto;
    }

    .drill-curtain-left {
        position: absolute;
        top: 30px;
        left: 80px;
    }

    .drill-curtain-right {
        position: absolute;
        top: 30px;
        right: 10px;
    }

    /* Drill */
    .drill {
        width: 50px;
        height: auto;
        position: absolute;
        top: 300px; /* Starting point */
        left: 50px;
        animation: drill-movement 6s ease-in-out infinite; /* Infinite animation */
        z-index: 2;
    }

    /* Animations */

    /* Drill moving toward the center */
    @keyframes drill-movement {
        0% {
            transform: translate(0, 0) rotate(0deg);
        }
        50% {
            transform: translate(0px, -280px) rotate(360deg); /* Moves toward the right curtain */
        }
        80%{
            transform: translate(390px, -280px) rotate(360deg);
        }
        100% {
            transform: translate(0, 0) rotate(0deg); /* Returns to starting position */
        }
    }

    /* Curtains shaking as the drill "hits" */
    @keyframes curtain-shake {
        0% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(-5px);
        }
        50% {
            transform: translateX(5px);
        }
        75% {
            transform: translateX(-5px);
        }
        100% {
            transform: translateX(0);
        }
    }

    /* Apply shaking effect when triggered */
    .curtain.shake {
        animation: curtain-shake 0.5s ease;
    }


    .mobile-only {
        display: none;
    }

    @media (max-width: 768px) {
        .logo-img {
            top: 0px;
        }
        .mobile-only {
            display: block;
        }

        .phone-icon {
            animation: none;
        }

        #drill-container {
            display: none;
        }
    }

    @media (max-width: 660px) {
        #contactimg {
            width: 80%;
        }
    }

    @media (max-width: 1000px) {
        #contacttext p {
            font-size: medium;
        }

        #contacttext h1 {
            font-size: large;
        }

        main {
            margin-top: 5%;
        }

        #opmetensectie {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
        }

        #opmetentext {
            align-items: center;
            text-align: center;
        }
    }

    @media (max-width: 1400px) {
        #contact {
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
        }

        #contacttext {
            width: 100%;
        }

        #contact img {
            margin-right: 0%;
            margin-bottom: 8%;
            margin-top: 5%;
        }
    }