@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #d7f6fa;
}

.container {
    width: 50rem;
    background-color: azure;
    padding: 30px 35px 35px;
    border-radius: 10px;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.container.disable :where(.editor,
.reset,
.save) {
    opacity: 0.6;
    pointer-events: none;
}

.container h2 {
    font-size: 2rem;
    font-weight: 500;
}

.wrapper {
    display: flex;
    margin: 0.2rem 0;
    min-height: 18rem;
    padding: 0.5rem 0 1rem 0;
}

.editor {
    width: 20rem;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.editor .title {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.editor .options,
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.editor button {
    height: 2rem;
    font-size: 0.8rem;
    color: gray;
    cursor: pointer;
    margin-bottom: 0.3rem;
    border-radius: 3px;
    background-color: white;
    border: 1px solid #aaa;
}

.editor button:hover {
    background: #f3f2f2;
}

.editor .filter button {
    width: calc(100%/2 - 6px);
}

.filter button.active {
    color: white;
    border-color: rgb(126, 126, 250);
    background: rgb(126, 126, 250);
}

.filter .slider {
    margin-top: 1rem;
    accent-color: rgb(126, 126, 250);
}

.filter .slider .filter-info {
    display: flex;
    color: rgb(104, 101, 101);
    font-size: 1rem;
    justify-content: space-between;
}

.filter .slider input {
    width: 100%;
    height: 0.3rem;
}

.editor .rotate {
    margin-top: 1.5rem;
}

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

.preview-img {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.preview-img img {
    max-width: 30rem;
    max-height: 18.25rem;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
    color: white;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
}

.controls .reset {
    color: rgb(104, 101, 101);
    border: 1px solid rgb(104, 101, 101);
}

.controls .choose {
    background-color: rgb(104, 101, 101);
    border: 1px solid rgb(104, 101, 101);
}

.controls .save {
    background-color: rgb(126, 126, 250);
    border: 1px solid rgb(126, 126, 250);
}

@media screen and (max-width: 760px) {
    .container {
        padding: 1rem;
    }
    .editor button {
        font-size: 0.75rem;
    }
    .wrapper {
        flex-wrap: wrap-reverse;
    }
    .editor,
    .preview-img {
        margin-top: 1rem;
        width: 100%;
    }
    .preview-img {
        margin-left: 0;
    }
}

@media screen and (max-width: 375px) {
    .container {
        padding: 1rem;
    }
    .controls button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .controls .row {
        width: 100%;
    }
    .controls .row .save {
        margin-left: 0px;
    }
}

@media screen and (max-width: 270px) {
    .editor .options {
        display: flex;
        flex-direction: column;
    }
    .editor .options button {
        width: 100%;
    }
}