* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}



main {
    width: 850px;
    border-radius: 15px;
    padding: 30px 35px 35px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

main.disable :where(.panel, .reset-filter, .save-img) {
    opacity: 0.6;
    pointer-events: none;
}

main h2 {
    font-size: 24px;
    font-weight: 600;
}

.wrapper {
    display: flex;
    margin: 20px 0;
    min-height: 35px;
}

.panel {
    border: 1px solid #ccc;
    padding: 15px 20px;
    width: 300px;
    border-radius: 5px;
}

.title {
    display: block;
    font-size: 20px;
    margin-bottom: 12px;
}

.options,
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.panel button {
    height: 40px;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid grey;
}

.filter button {
    width: calc(100%/2 - 4px);
}

.filter .options .active {
    color: #fff;
    background-color: #5372f0;
    background: #5372f0;
}

.panel button:hover {
    background: #f5f5f5;
}

.panel .rotate button {
    width: calc(100% / 4 - 4px);
}

.filter .slider {
    margin-top: 12px;
}

.filter .slider .filter-info {
    display: flex;
    justify-content: space-between;
    color: #464646;
    font-size: 17px;
}

.filter .slider input {
    width: 100%;
    height: 5px;
    accent-color: #5372f0;
}

.panel .rotate {
    margin-top: 17px;
}

.rotate button:nth-child(3),
.rotate button:nth-child(4) {
    font-size: 18px;
}

.preview-img {
    margin-left: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img img {
    width: 100%;
    height: 100%;
    max-width: 490px;
    max-height: 335px;
    object-fit: contain;
}

.controls button {
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 3px;
    cursor: pointer;
    background: #fff;
    color: #fff;
}

.controls .reset-filter {
    color: #656c7d;
    border: 1px solid #656c7d;
}

.controls .choose-img {
    background: #6c757d;
    border: 1px solid #656c7d;
}

.controls .save-img {
    background: #5372f0;
    border: 1px solid #5372f0;
    margin-left: 5px;
}


@media screen and (max-width: 760px) {
    .container {
        padding: 25px;
    }

    .container .wrapper {
        flex-wrap: wrap-reverse;
    }

    .wrapper .panel {
        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 {
        width: 100%;
    }

    .controls .save-img {
        margin: 0 auto;
    }
}