@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,800;0,900;1,400&family=Poppins:wght@100;200;300;400;500;600&family=Roboto+Flex:opsz,wght@8..144,100;8..144,300;8..144,400;8..144,600;8..144,700;8..144,800&family=Roboto:wght@100;300;400;500;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #e3f2fd;
    background-color: rgba(red, green, blue, alpha);


}

.container {

    width: 850px;
    background: #fff;
    border-radius: 10px;
    padding: 30px 35px 35px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.container.disable :where(.edit-panel, .reset-filter, .save-img) {

    opacity: 0.6;
    pointer-events: none;




}

.container h2 {
    font-size: 22px;
    font-weight: 500;
}

.container .wrapper {

    display: flex;
    margin: 20px 0;
    min-height: 335px;
}

.edit-panel {


    padding: 15px 20px;
    width: 280px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.edit-panel .tittle {


    display: block;
    font-size: 16px;
    margin-bottom: 12px;
}

.edit-panel .options, .controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

.edit-panel button {
    height: 40px;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    border: 1px solid #aaa;
    background: #fff;
    border-radius: 5px;
}

.edit-panel button:hover {
    background: #f5f5f5;
}

.edit-panel .filter button {
    width: calc(100% / 2 - 4px);
}

.filter button.active {
    color: #fff;
    background: #5372f0;
    border-color: #5372f0;
}

.filter .slider {
    margin-top: 12px;

}

.filter .slider input {
    width: 100%;
    height: 5px;
    accent-color: #5372f0;

}

.filter .slider .filter-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #464646;
}

.edit-panel .rotate {
    margin-top: 17px;
}

.rotate button {
    width: calc(100% / 4 - 3px);

}

.rotate button:nth-child(3),
.rotate button:nth-child(4) {

    font-size: 18px;

}

.wrapper .perview-img {
    margin-left: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    flex-grow: 1;
}

.wrapper .perview-img img {
    max-width: 490px;
    max-height: 353px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls button {
    padding: 11px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
}

.controls .reset-filter {
    color: #6c757d;
    border: 1px solid #6c757d;
}

.controls .choose-img {
    background: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.controls .save-img {
    background: #5372f9;
    color: #fff;
    margin-left: 5px;
    border: 1px solid #5372f9;
}

/*media query*/

@media screen and (max-width:760px) {
    .container {
        padding: 25px;
    }

    .container .wrapper {
        flex-wrap: wrap-reverse;

    }

    .wrapper .edit-panel {


        width: 100%;
    }

    .wrapper .perview-img {
        width: 100%;
        margin: 0 0 15px;
    }

}

@media screen and (max-width:500px) {
    .controls button {
        width: 100%;
        margin-bottom: 10px;
    }

    .controls .row {
        width: 100%;
    }

    .controls .row .save-img {
        margin-left: 0px;
    }

}