* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #e3f2fd;
}
.container {
  width: 850px;
  background-color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 30px 35px 35px;
}
.container.disable :where(.editorpanel, .reset-filter, .save-img) {
  opacity: 0.6;
  pointer-events: none;
}
h2 {
  font-size: 22px;
  font-weight: 500;
}
.wrapper {
  display: flex;
  margin: 20px 0;
  min-height: 335px;
}
.editorpanel {
  border: 1px solid #ccc;
  padding: 15px 20px;
  width: 280px;
  border-radius: 5px;
}
.title {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
.options,
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.editorpanel button {
  height: 40px;
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 8px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background-color: #fff;
}
.editorpanel button:hover {
  background-color: #f5f5f5;
}
.filter button {
  width: calc(100% / 2 - 4px);
}
.filter button.active {
  background-color: #5372f0;
  color: white;
  border-color: #5372f0;
}
.slider {
  margin-top: 12px;
}
.filter-info {
  display: flex;
  justify-content: space-between;
  color: #464646;
}
.slider input {
  width: 100%;
  height: 5px;
  accent-color: #5372f0;
}
.rotate {
  margin-top: 17px;
}
.rotate button {
  width: calc(100% / 4 - 3px);
}
.rotate button:nth-child(3),
.rotate button:nth-child(4) {
  font-size: 18px;
}
.preview-img {
  margin-left: 20px;
  display: flex;
  overflow: hidden;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
img {
  max-width: 490px;
  max-height: 335px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.controls button {
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 3px;
  cursor: pointer;
  background-color: white;
  color: white;
  text-transform: uppercase;
}
.reset-filter {
  color: #6c757d !important;
  border: 1px solid #6c757d;
}
.choose-img {
  background-color: #6c757d !important;
  border: 1px solid #6c757d;
}
.save-img {
  background-color: #5372f0 !important;
  border: 1px solid #5372f0;
  margin-left: 5px;
}

@media (max-width: 760px) {
  .container {
    padding: 25px;
  }
  .wrapper {
    flex-wrap: wrap-reverse;
  }
  .editorpanel {
    width: 100%;
  }
  .preview-img {
    width: 100%;
    margin: 0 0 15px;
  }
}

@media (max-width: 500px) {
  .controls button {
    width: 100%;
    margin-bottom: 10px;
  }
  .controls .row {
    width: 100%;
  }
  .save-img {
    margin-left: 0px;
  }
}
