@import './const.css';
@import './header.css';
@import './footer.css';
@import './preloader.css';

.enjoy-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.enjoy-container {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}

.enjoy-content {
    padding: 100px 0;
    margin-left: 100px;
    max-width: 530px;
}

.h1__main {
    color: var(--light-text);
    margin-bottom: 40px;
}

.h1-accent__main {
    color: var(--accent-text);
}

.enjoy {
    margin-bottom: 100px;
}

.enjoy-text {
    color: var(--light-text);
    margin-bottom: 40px;
}

.button {
    width: 200px;
    height: 64px;
    border: none;
    border-radius: 100px;
    background-color: #E1D4C9;
    color: var(--dark-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
}

.button-menu {
    display: block;
    position: relative;
    padding: 20px 78px;
    transition: all 0.3s ease-in;
}

.button-menu::after {
    content: url('../svg/coffee-cup.svg');
    position: absolute;
    left: 116px;
    opacity: 0;
}

.favorites {
    margin-bottom: 100px;
}

.favorites-container {
    margin-bottom: 20px;
}

.h2__favorites {
    text-align: center;
}

.slider-container {
    display: flex;
    max-width: 1360px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.arrow {
    width: 60px;
    height: 60px;
    border-radius: 100px;
    border: 1px solid #665F55;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 4px;
    cursor: pointer;
    transition: all .3s ease-in;

}

.arrow svg {
    stroke: #665F55;
}

.arrow-left {
    transform: rotate(180deg);
}

.arrow-right {
    margin-right: 4px;
}

.slider {
    position: relative;
    height: 640px;
    width: 1152px;
    overflow: hidden;
    display: flex;
}

.slider-card__wrapper {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: left .5s ease-in;
}

.slider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 480px;
    gap: 20px;
}

.slider-card__img-container {
    max-width: 480px;
    line-height: 0;
}

.slider-card__img-container img {
    width: 100%;
}

.slider-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.card__info-text {
    text-align: center;
}

.slider-controllers {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.slider-controller {
    width: 40px;
    height: 4px;
    background-color: #C1B6AD;
}

.progress-controller {
    width: 0;
    height: 4px;
    background-color: #665F55;
    transition: width 0.4s ease;
}

.about {
    margin-bottom: 100px;
}

.about-images {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 40px;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 660px;
    border-radius: 20px;
    overflow: hidden;
}

.img-maxcontainer {
    max-height: 590px;
}

.img-mincontainer {
    max-height: 430px;
}

.about-image {
    transition: 0.3s ease-in;
}

.mobile-app {
    margin-bottom: 100px;
}

.mobile-app-container {
    display: flex;
    justify-content: space-between;
}

.h2__mobile {
    margin-bottom: 0;
}

.mobile-app__links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    max-width: 630px;
}

.mobile-app__image-container {
    max-width: 630px;
    line-height: 0;
    & img {
        width: 100%;
    }
}

.buttons-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.app-button {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border-dark);
    transition: background-color .3s ease-in;
}


.app-button svg path,
.app-button svg {
    transition: fill .5s ease-in;
}

.app-available,
.app-store {
    transition: color .5s ease-in;
}

.app-store {
    font-weight: 600;
}

@media (max-width: 1400px) {
    .about-images {
        justify-content: center;
    }

    .img-container {
        max-width: 688px;
    }
}

@media (max-width: 1340px) {
    .mobile-app-container {
        flex-direction: column;
        align-items: center;
    }

    .mobile-app__links {
        max-width: 1340px;
        margin-bottom: 100px;
    }
}

@media (max-width: 900px) {
    .enjoy-content {
        margin-left: 60px;
    }

    .button-menu {
        padding-left: 64px;
    }

    .button-menu::after {
        opacity: 1;
    }

    .img-mincontainer {
        display: none;
    }
}

@media (max-width: 740px) {
    .about-column {
        width: 100%;
    }

    .slider-container{
        justify-content: center;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 500px) {
    .mobile-app__links {
        margin-bottom: 40px;
    }

    .enjoy-content {
        padding: 60px 16px;
        margin: 0;
    }

    .slider-card {
        margin: 0;
    }

    .slider-container {
        margin-bottom: 0;
    }

    .slider {
        height: 572px;
    }

    .buttons-container {
        flex-direction: column;
    }
}

@media (hover: hover) {
    .button-menu:hover {
        padding-left: 64px;
        &::after {
            opacity: 1;
            transition: all 0.3s ease-in;
        }
    }

    .arrow {
        &:hover {
            background-color: #665F55;
        }
        &:hover svg {
            stroke: #E1D4C9;
        }
    }

    .about-image {
        &:hover {
            transform: scale(0.95);
        }
    }

    .app-button:hover {
        background-color: var(--bcg-container);
    }
    
    .app-button:hover svg {
        fill: var(--dark-text);
    }
    
    .app-button:hover svg path {
        fill: var(--bcg-body);
    }

    .app-button:hover .app-available,
    .app-button:hover .app-store {
        color: var(--light-text);
}
}