@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    user-select: none;
}
body{
    display: flex;
    justify-content:center;
    align-items: center;
    min-height: 100vh;
    background: #e3f2fd;
}
.container{
    width: 600px;
    border-radius: 10px;
    padding: 30px 35px 35px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* disable all feature if user haven't selected anything */
.container.disable :where(.editor-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: 235px;
}
.container .editor-panel{
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px 20px ;
    width: 280px;
}
.editor-panel .title{
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
}
.editor-panel .options, .controls{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.editor-panel button{
    height: 40px;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    border: 1px solid #aaa;
    border-radius: 3px;
}
.editor-panel button:hover{
    background: #f5f5f5;
}
.editor-panel .filter button{
    width: calc(100% / 2 - 4px);
}
.filter button.active{
    background: #5372f0;
    color: #fff;
    border-color: #5372f0;
}
.editor-panel .rotate button{
    width: calc(100% / 4 - 3px);
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editor-panel .slider{
    margin-top: 12px;
}
.editor-panel .filter-info{
    display: flex;
    justify-content: space-between;
    color: #464646;
}
.filter .slider input{
    width: 100%;
    height: 5px;
    accent-color: #5372f0;
}
.editor-panel .rotate{
    margin-top: 17px;
}
.wrapper .preview-img{
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 25px;
}
.preview-img img{
    max-width: 490px;
    max-height: 335px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}
.controls button{
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 3px;
    cursor: pointer;
    background: #fff;
}
.controls .reset-filter{
    color: #6c757d;
    border: 1px solid #6c757d;
}
.controls .choose-img{
    color: #fff;
    background: #6c757d;
    border: 1px solid #6c757d;
}
.controls .save-img{
    color: #fff;
    background:#5372f0;
    border: 1px solid #5372f0;
}
/* -------------------------------------------------------- */

@media screen and (max-width:760px){
    .container{
        padding: 25px;
    }
    .container .wrapper{
        flex-wrap: wrap-reverse;
    }
    .wrapper .editor-panel{
        width: 100%;
    }
    .wrapper .preview-img{
        width: 100%;
        margin: 0 0 15px;
    }
    .wrapper .preview-img img{
       height: 50vh;
    }
}
@media screen and (max-width:500px){
    .controls button{
        width: 100%;
        margin-bottom: 10px;
    }
    .controls .row{
        margin:  0 auto;
    }
}










