label[for=input-image],label[for=input-overlay-image]{
  cursor:pointer;
  font-size: 1.5rem;
  background-color: blueviolet ;
  display: block;
  border-radius: 1rem;
  margin-bottom: 1rem;
}
html,body{
  background-color: whitesmoke;
}
.to-style-label{
  height: 20rem;
}
#resize-button{
  font-size: 1.5rem;
}
.main-cont{
  display: grid;
  grid-template-columns:  20vw 70vw;
}
p{
  font-size: 1.3rem;
}
.home-link{
  text-decoration: none;
  display: block;
  color: red;
  font-size: 2rem;
}
.home-link:hover{
  text-decoration: underline;
}
#drag-text{
  font-size: 2rem;
}
#overlay{
  background-color: black;
  position: absolute;
}
.image-cont{
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30vh;
  max-width: fit-content;
  max-height: fit-content;
  height:30vh;
}
.image-cont img{
  position: absolute;
  width: 100%;
}
#output-image{
  margin-left: auto;
  margin-right: auto;
  position: static;
  aspect-ratio: initial;
  display: none;
  height: auto;
  max-height: 70vh;
  max-width: 70vw;
  width: auto;
  min-height: 100%;
  min-width: 100%;
}
#resizable{
  /* this div is just to allow to user to rezize cause it's not working directly on image*/
  display: none;
  resize: both;
  top: 0;
  left: 0;
  resize: both;
  overflow: hidden;
  position: absolute;
  min-height: 10vh;
  min-width: 10vw;
  height: fit-content;
  width: fit-content;
  max-height: 100vh;
  max-width: 100vw;
 
}
#resizable::marker{
  display: none;
}
#output-overlay-image{
  position: static;
  aspect-ratio: initial;
  display: none;
/* 100% of the width and height of the resizable div*/
width: 100%;
height: 100%;
min-width:100%;
min-height: 100%;
}
#opacity{
  font-size: 2rem;
  display: inline-block;
}
#crop-button{
  display: none;
  height: 5rem;
  width: 10rem;
  position: relative;
  font-size: 4rem;
  background-color: rgb(4, 75, 181);
  font-weight: 300;
  color: rgb(240, 126, 164);
}
#rotate-deg{
  font-size: 2rem;
  display: inline-block;
}
@media only screen and (max-width: 800px){
  img{
    margin: 0;
  }
  #output-image{
    width: 100vw;
  }
  #crop-button,
  #crop-button-overlay
  {
    font-size: 2rem;
  }
 .image-cont{
   width: 100vw;
   margin: 0;
 }
	.main-cont{
    display: block;
  }
  p{
    display: block;
  }
  .changes{
    display: block;
  }
}
#crop-cont{
  position: absolute;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.4);
}
.crop-sub-cont{
  width: 30vw;
  height: 30vh;
  max-width: 100%;

}
* {box-sizing: border-box;} */

/* Set a style for all buttons */
button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.9;
}

button:hover {
  opacity:1;
}

.btn-list {
    text-align: center;
}


/* Add a color to the delete button */
.deletebtn {
  background-color: #f44336;
}

.open-modal-btn {
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  color: #fff;
  background-color: #00f;
}

.container {
  padding: 16px;
  text-align: center;
}

/* The Modal (background) */
.modal {
  display: none; 
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; /* Enable scroll if needed */
  background-color: #474e5d;
  padding-top: 50px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto; 
  border: 1px solid #888;
  width: 80%; 
}
.cancelbtn{
  font-size: 3rem;
}
hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}
 
.close {
  position: absolute;
  right: 35px;
  top: 15px;
  font-size: 40px;
  transition: all 1s ease-in;
  font-weight: bold;
  color: #f1f1f1;
}
#crop-button-overlay{
  display: none;
  height: 5rem;
  width: 15rem;
  position: relative;
  font-size: 2rem;
  background-color: rgb(4, 75, 181);
  font-weight: 300;
  color: rgb(240, 126, 164);
}
.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}
#crop-action-button,
#crop-action-button-overlay{
font-size: 3rem;
 display: block;
 background-color: #00f;
 height:5rem;
 width: 8rem;
}
/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Change styles for cancel button and delete button on extra small screens */
@media screen and (max-width: 300px) {
   .deletebtn {
     width: 100%;
  }
  .cancelbtn{
    font-size: 1rem;
  }
  #crop-action-button{
    font-size: 1rem;
    width: 100%;
  }
}