@tailwind base;
@tailwind components;
@tailwind utilities;

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Before-After Image Slider Section */
.before-after {
    max-width: 100%;
    height: 70vh;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: black;
}

.before-after .img {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 11%;
    overflow: hidden;
}

.before-after .img.front-img {
    z-index: 1;
    clip-path: polygon(0 0, 60% 0, 48% 100%, 0 100%);
}

.img-slider {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    width: 100%;
    height: 80%;
    background: transparent;
    z-index: 2;
}

.img-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 7px;
    height: 100%;
    cursor: pointer;
    background-color: transparent;
    border-radius: 0;
}

.img-slider::-moz-range-thumb {
    -moz-appearance: none;
    width: 7px;
    height: 100%;
    cursor: pointer;
    background-color: transparent;
    border-radius: 0;
}

.before-after .absolute {
    position: absolute;
}

.bottom-10 {
    bottom: 15%;
    right: 0%;
}

.top-10 {
    top: -5%;
    left: 0%;
}

/* @medias */

@media (min-width: 1024px) {
    header {
        height: 100vh;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    header {
        height: 60vh;
    }
}

@media (max-width: 767px) {
    header {
        height: 50vh;
    }

    h2,
    h3,
    p {
        text-align: center;
    }
}