@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

html,body{
    width: 100%;
    height: 100%;
    background-color: #121212;
    color: #000;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
}
.container{
    width: 850px;
    background-color: rgba(255, 255, 255, 0.788);
    border-radius: 10px;
    padding: 30px 35px 35px;
    box-shadow: 0 10px 20px rgb(61, 61, 61);
}
.container.disable :where(.editor-pannel, .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;
}
.wrapper .editor-pannel{
    width: 280px;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.editor-pannel .title{
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
}
.editor-pannel .options,.controls{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.editor-pannel button{
    height: 40px;
    font-size: 14px;
    color: #6C757D;
    margin-bottom: 8px;
    border-radius: 3px;
    background-color: #fff;
    border: 1px solid #aaa;
}
.editor-pannel button:hover{
    background: #f5f5f5;
}
.editor-pannel .filter button {
    width: calc(100%/2 - 4px);
}
.filter button.active{
    color: #fff;
    background: #5372F0;
    border-color: #5372F0;
}
.editor-pannel .slider{
    margin-bottom: 12px;
}
.filter .slider .filter-info{
    display: flex;
    color: #464646;
    font-size: 14px;
    justify-content: space-between;
}
.filter .slider input{
    width: 100%;
    height: 5px;
    accent-color: #5372f0;
}
.editor-pannel .rotate{
    margin-top: 17px;
}
.editor-pannel .rotate button {
    width: calc(100%/4 - 3px);
}
.rotate button:nth-child(3),
.rotate button:nth-child(4){
    font-size: 18px;
}
.wrapper .preview-img{
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    overflow: hidden;
}
.preview-img img{
    max-width: 490px;
    max-height: 335px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.controls button{
    font-size: 14px;
    padding: 11px 20px;
    cursor: pointer;
    background: #fff;
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
}
.controls .reset-filter{
    color: #6C757D;
    border: 1px solid #6C757D;
}
.controls .choose-img{
    background:#6C757D;
    border: 1px solid #6C757D;
}
.controls .save-img{
    margin-left: 5px;
    background:#5372F0;
    border: 1px solid #5372F0;
}

/* responsive */

@media screen and (max-width: 760px) {
    .container{
        padding: 25px;
    }
    .container .wrapper{
        flex-wrap: wrap-reverse;
    }
    .wrapper .editor-pannel{
        width: 100%;
    }
    .wrapper .preview-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;
    }
}