@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: 2.5em;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-image: url("Bubble_bg.svg");
}

.container{
  width: 70em;
  padding: 2em 3em;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(11.4px);
  -webkit-backdrop-filter: blur(11.4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.container.disable .editor-panel,
.container.disable .controls .reset-filter,
.container.disable .controls .save-img{
  opacity: 0.85;
  pointer-events: none;
}

.container img{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.container p, .title{
  text-align: center;
  color: #ccc;
}

.container .wrapper{
  display: flex;
  margin: 20px 0;
  min-height: 335px;
}

.wrapper .editor-panel{
  padding: 15px 20px;
  width: 50%;
  border-radius: 1.5rem;
  border: 1px solid #ccc;
}

.editor-panel .title{
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}

.editor-panel .options, .controls{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.editor-panel button{
  outline: none;
  height: 40px;
  font-size: 14px;
  color: #6C757D;
  background: #fff;
  border-radius: 3px;
  margin-bottom: 8px;
  border: 1px solid #aaa;
}

.editor-panel .filter button{
  width: calc(100% / 2 - 4px);
}

.editor-panel button:hover{
  background: #f5f5f5;
}

.filter button.active{
  color: #fff;
  border-color: #8c52ff;
  background: #8c52ff;
}

.filter .slider{
  margin-top: 12px;
}

.filter .slider .filter-info{
  display: flex;
  color: #291c44;
  font-size: 14px;
  margin-right: 2.5rem;
  justify-content: space-between;
}

.filter .slider input{
  width: 100%;
  height: 0.4em;
  accent-color: #291c44;
}

.editor-panel .rotate{
  margin-top: 17px;
}

.editor-panel .rotate button{
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% / 4 - 3px);
}

.rotate .options button:nth-child(3),
.rotate .options button:nth-child(4){
  font-size: 18px;
}

.rotate .options button:active{
  color: #fff;
  background: #292335;
  border-color: #261f36;
}

.wrapper .preview-img{
  flex-grow: 1;
  display: flex;
  overflow: hidden;
  margin-left: 20px;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
}

.preview-img img{
  max-width: 500px;
  max-height: 335px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.controls button{
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 3px;
  outline: none;
  color: #fff;
  cursor: pointer;
  background: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.controls .reset-filter{
  color: #ccc;
  border: 1px solid #b9cfe0;
}

.controls .reset-filter:hover{
  color: #fff;
  background: #35434e;
}

.controls .row{
  margin-right: 6.5em;
}

.controls .choose-img{
  background: #12042e;
  border: 1px solid #6d757c;
}

.controls .choose-img:hover{
  background: #3f2a69;
  border: 1px solid #040f18;
}

.controls .save-img{
  margin-left: 5px;
  background: #12042e;;
  border: 1px solid #6d757c;
}

.controls .save-img:hover{
  margin-left: 5px;
  background: #3f2a69;
  border: 1px solid #040f18;
}

@media screen and (max-width: 760px) {
  .container{
    padding: 25px;
  }
  
  .container img{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .container p{
    font-size: small;
  }

  .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) {
  .container img{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .container p{
    font-size: small;
  }
  
  .controls button{
    width: 100%;
    margin-bottom: 10px;
  }

  .controls .row{
    width: 100%;
  }

  .controls .row .save-img{
    margin-left: 0px;
  }
}