*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    width: 150vw;
    height: 170vh;
    font-family: Georgia, 'Times New Roman', Times, serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8d087;
   
}

.app{
    width: 100%;
    height: fit-content;
    max-height: 1400px;
    min-width: 340px;
    max-width: 1300px;
    margin: 3vh;
    display: flex;
    flex-direction: column;
    gap: 10vw;
    border-radius: 20px;
    background: linear-gradient(#efb64d,#904040);
    padding: 2vh;
    overflow: auto;
    transition: background-color 0.3s;

    -webkit-user-select: none;  /* For older WebKit-based browsers */
    -moz-user-select: none;     /* For older Firefox browsers */
    -ms-user-select: none;      /* For older Microsoft browsers */
    user-select: none;          /* The standard property */
}

.app>.title{
  text-align: center;
  font-size: 3rem;
  margin-top: 2vh;
  color: #ffffff;
}

.container .filterContainer .filter-buttons{
  text-align: center;
}

.container .filterContainer .filter-buttons .on{
    background-color: #f8d087;
}


.container .filterContainer .title{
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1vh;
  color: #ffffff;
}
.container .filterContainer .filter-buttons button{
    width: calc(100%/3 - 30px) ;
    max-width: 150px;
    height: 20px;
    margin-bottom: 1vh;
    margin-right: 10px;
    font-family: inherit;
    font-size: 1.2rem;
    padding-top: 5px;
    padding-bottom: 35px;
    border-radius: 20px;
   
}

.app button:active{
    background-color:#fdc04f ;
}




.container .filterContainer .filter-buttons button:nth-child(4),
.container .filterContainer .filter-buttons button:nth-child(5),
.container .filterContainer .filter-buttons button:nth-child(6){
 margin-bottom: 5vh;
}

.container .filterContainer .slider{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container .filterContainer .slider div{
    display: flex;
    gap: 20px;

}

.container .filterContainer .slider input{
  width:70% ;
  margin-bottom: 5vh;
}


.container .filterContainer .rotate-flip .rotate-flip-buttons{
    display: flex;
    justify-content: space-around;
}

.container .filterContainer .rotate-flip .rotate-flip-buttons img{
   width: 50.2px;
}

.container .filterContainer .rotate-flip .rotate-flip-buttons div{
   display: inline-block;
   padding: 20px;
   border-radius: 50%;
   margin-top: 1vh;
}

.container .filterContainer .rotate-flip .rotate-flip-buttons div:active{
   background-color:#fdc04f ; 
}

.container .filterContainer .rotate-flip{
    margin-bottom: 5vh;
}

.container .imgPreview{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container .imgPreview img{
     border-radius: 20px;
     object-fit:scale-down;
     max-width: 600px;
     max-height: 500px;
     width: 100%;
     height: 100%;
}

.app .footer{
   display: flex; 
   justify-content: space-between;
}

.app .footer button{
    font-size: 1.2rem;
    padding: 10px;
    font-family: inherit;
    border-radius: 10px;
    margin-bottom: 2vh;
}

.app .footer>button{
    margin-left: 4vw;
}

.app .footer .imageBtn button{
    margin-right: 4vw;
}

:where(button ,.rotate-flip .rotate-flip-buttons div){
    border: none;
    border: 2px dashed;
    box-shadow: 0 4px 6px #0000001a, 0 1px 3px #00000014;
    color: inherit;
    background-color: white;
    cursor: pointer;
    
}

.editor.disable{
   opacity: 0.6;
   pointer-events: none;
}

#reset,#save{
    pointer-events: none;
}

@media(width<350px){
    .container .filterContainer .rotate-flip .rotate-flip-buttons img{
      width: 25.6px;
    }

    .app .footer button{
        font-size: 0.9rem;
       
    }

    .container .filterContainer .filter-buttons button{
        font-size: 0.7rem;
        padding-top: 5px;
        padding-bottom: 20px;
    }

}


@media(width>900px){

    body{
        width: 100%;
        height: 100%;
    }

    .app{
       gap: 0;
       justify-content: space-between;
    }

    .app>.title{
        font-size: min(10vw,100px);
    }
    
    .container .filterContainer .title{
        font-size: 3rem;
    }

    .container{
        display: flex;
    
    }
    .container .filterContainer{
        display: flex;
        flex-direction: column;
        width: 440px;
        padding: 1vw;
        margin-right: 2vw;
        border-right: 1px solid;
        height: 100%;
    }

    .container .filterContainer .filter-buttons button{
        width: calc(100%/2 - 20px) ;
        height: 40px;
        margin-bottom: 3vh;  
        font-size: 1.8rem;
        max-width: none;
    }


    .container .filterContainer .filter-buttons button:nth-child(4),
    .container .filterContainer .filter-buttons button:nth-child(5),
    .container .filterContainer .filter-buttons button:nth-child(6){
      margin-bottom: 3vh;
    }


    .container .filterContainer .slider input{
        width: 95%;
    }

    .container .filterContainer .rotate-flip .rotate-flip-buttons img{
      width: 35.84px;
    }
    .container .filterContainer .rotate-flip .rotate-flip-buttons div{
        padding: 10px;
        
    }

    .container .imgPreview{
        flex: 1;
        
    }

}

