@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Montserrat', sans-serif;
}

body{
  display: flex;
  padding: 10px;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
}

.container{
  width: 850px;
  padding: 30px 35px 35px;
  background: #111;
  border-radius: 18px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.6), -5px -5px 15px rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.container.disable .editor-panel,
.container.disable .controls .reset-filter,
.container.disable .controls .save-img{
  opacity: 0.5;
  pointer-events: none;
}

.container h2{
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

.wrapper{
  display: flex;
  margin: 20px 0;
  min-height: 335px;
  gap: 20px;
}

.editor-panel{
  padding: 20px;
  width: 280px;
  border-radius: 12px;
  background: #1a1a1a;
  box-shadow: 5px 5px 12px rgba(0,0,0,0.5), -5px -5px 12px rgba(255,255,255,0.05);
}

.editor-panel .title{
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}

.editor-panel .options{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-panel button{
  flex: 1;
  height: 40px;
  font-size: 14px;
  color: #fff;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.5), -3px -3px 8px rgba(255,255,255,0.05);
  transition: all 0.25s ease;
}

.editor-panel button:hover{
  background: #3498db;
  color: #000;
  transform: translateY(-2px);
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.5), inset -2px -2px 6px rgba(255,255,255,0.05);
}

.filter button.active{
  background: #3498db;
  color: #000;
  border-color: #3498db;
}

.filter .slider .filter-info{
  display: flex;
  justify-content: space-between;
  color: #ccc;
  font-size: 14px;
  margin-bottom: 6px;
}

.filter .slider input{
  width: 100%;
  height: 6px;
  accent-color: #3498db;
  border-radius: 4px;
}

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

.rotate .options button:active{
  background: #3498db;
  color: #000;
}

.wrapper .preview-img{
  flex-grow: 1;
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  box-shadow: 5px 5px 12px rgba(0,0,0,0.5), -5px -5px 12px rgba(255,255,255,0.05);
}

.preview-img img{
  max-width: 490px;
  max-height: 335px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.25s ease;
}

.controls{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.controls button{
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 12px;
  outline: none;
  color: #fff;
  cursor: pointer;
  background: #111;
  border: 1px solid #333;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.5), -3px -3px 8px rgba(255,255,255,0.05);
}

.controls button:hover{
  background: #3498db;
  color: #000;
  transform: translateY(-2px);
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.5), inset -2px -2px 6px rgba(255,255,255,0.05);
}

.controls .reset-filter{
  color: #ccc;
  border: 1px solid #555;
}

.controls .choose-img{
  background: #555;
  border: 1px solid #555;
}

.controls .save-img{
  background: #3498db;
  border: 1px solid #3498db;
}

@media screen and (max-width: 760px){
  .wrapper{
    flex-wrap: wrap-reverse;
  }
  .editor-panel{
    width: 100%;
  }
  .preview-img{
    width: 100%;
    margin-bottom: 15px;
  }
}

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