@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;
  padding: 10px;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-image: url(images/background.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
.container {
  width: 850px;
  padding: 30px 35px 35px;
  background: #262626;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgb(255 255 255);
  color: silver;
}
.container.disable .editor-panel,
.container.disable .controls .reset-filter,
.container.disable .controls .save-img {
  opacity: 0.5;
  pointer-events: none;
}
.container h2 {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
}
.container .wrapper {
  display: flex;
  margin: 22px 5px;
  min-height: 335px;
}
.wrapper .editor-panel {
  padding: 15px 20px;
  width: 280px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.editor-panel .title {
  display: block;
  font-size: 20px;
  margin-bottom: 12px;
  color: silver;
}
.editor-panel .options,
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.editor-panel button {
  outline: none;
  height: 43px;
  font-size: 15px;
  color: black;
  background: silver;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 2px solid #000;
}
.editor-panel .filter button {
  width: calc(100% / 2 - 4px);
}
.editor-panel button:hover {
  background: black;
  cursor: pointer;
  color: white;
  border: 2px solid white;
}
.filter button.active {
  color: black;
  border: 2px solid #000000;
  background: wheat;
}
.filter .slider {
  margin-top: 12px;
}
.filter .slider .filter-info {
  display: flex;
  color: silver;
  font-size: 15px;
  justify-content: space-between;
}
.filter .slider input {
  width: 100%;
  height: 7px;
  accent-color: wheat;
  cursor: pointer;
}
.editor-panel .rotate {
  margin-top: 15px;
}
.editor-panel .rotate button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% / 4 - 4px);
}
.rotate .options button:nth-child(3),
.rotate .options button:nth-child(4) {
  font-size: 18px;
}
.rotate .options button:active {
  color: black;
  border: 2px solid #000000;
  background: wheat;
}
.wrapper .preview-img {
  flex-grow: 1;
  display: flex;
  overflow: hidden;
  margin-left: 25px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.preview-img img {
  max-width: 490px;
  max-height: 335px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.controls button {
  padding: 11px 20px;
  font-size: 15px;
  border-radius: 15px;
  outline: none;
  color: #fff;
  cursor: pointer;
  background: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.controls .reset-filter {
  color: black;
  border: 2px solid black;
  background-color: silver;
}
.controls .reset-filter:hover {
  color: #fff;
  background: #6c757d;
}
.controls .choose-img {
  background: silver;
  border: 2px solid black;
  color: black;
  font-weight: bold;
}

.controls .choose-img:hover {
  color: black;
  background: rgb(227, 138, 138);
}

.controls .save-img {
  margin-left: 5px;
  background: #1b5500;
  font-weight: bold;
  border: 2px solid #ffffff;
}

.controls .save-img:hover {
  color: black;
  background: #568541;
}

@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;
  }
}

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