html,
body {
  height: 100%;
}

#cs {
  display: none;
}

.main {
  margin-bottom: 2em;
}

.img_container {
  box-sizing: border-box;
  position: relative;
  display: block;
  /* width: calc(100% - 3em); */
  max-width: 600px;
  overflow: hidden;
  /* margin: 0 auto; */
  /* margin-top: 6px; */
}
.img_container img {
  display: block;
  width: 60%;
  cursor: crosshair;
  border: 5px solid #fff;
  /* margin: 10px auto; */
}
.img_container .preview {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: absolute;
  top: 30%;
  right: 20%;
  display: block;
  margin: 0;
  width: 100px;
  height: 70px;
  border: 4px solid #ececec;
  background: #efe0d7;
  padding: 15px;
}
.img_container #image-input {
  opacity: 0;
  visibility: hidden;
}
.img_container #fake {
  padding: 10px;
  display: input-block;
  overflow: hidden;
  width: auto;
  cursor: pointer;
  font-size: 90%;
  float: left;
  background: #000;
  background: #197de4;
  color: #ececec;
  -webkit-transition: all 500ms ease;
  transition: all 500ms ease;
}
.img_container #fake:hover, .img_container #fake:focus {
  background: #0f4b88;
  color: #ececec;
  -webkit-transition: all 500ms ease;
  transition: all 500ms ease;
}

.color_value{
	/*background-color: #000;*/
	color: #fff;
	padding: 3px 5px;
	font-size: 12px;
}


#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 90px;
    font-size: 17px;
}

#more_tools{
  font-size: 16px;
  border: 1px solid #4CAF50;
  background-color: #4CAF50;
  padding: 12px;
  border-radius: unset;
}

#more_tools:focus{
  border:1px solid #4CAF50;
  outline: unset;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 90px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 90px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 90px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 90px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@media (max-width: 768px) {

  .img_container .preview {
  right: 5%;
	}
}

#color_holder{
	outline:unset;
	color: #ffffff;
	border: unset;
	background-color: #ffffff;
	font-size: 1px;
}

.color {
  display: inline-block;
  width: calc(100% / 4 - 1.2em);
  height: 80px;
  margin: 0.5em;
  font-size: 12px;
  text-align: center;
  line-height: 80px;
  border: 1px solid #ececec;
  box-shadow: 0 3px 3px #b9b9b9;
  -webkit-animation: showColor 500ms ease;
          animation: showColor 500ms ease;
   cursor: pointer;
}
.color:last-child {
  margin-right: 0;
}
.color span {
  padding: 3px 5px;
  background: black;
  color: white;
  -webkit-animation: showColor 1s 500ms ease;
          animation: showColor 1s 500ms ease;
}
@-webkit-keyframes showColor {
  from {
    width: 0;
    opacity: 0;
    height: 0;
  }
}
@keyframes showColor {
  from {
    width: 0;
    opacity: 0;
    height: 0;
  }
}
@media (max-width: 768px) {
  .color {
    height: 60px;
    line-height: 60px;
    margin: 0.2em;
    width: calc(100% / 4 - 0.567em);
  }
}



/*old*/



.page {
	margin: 1em auto;
	max-width: 768px;
	display: -webkit-box;
	display: flex;
	-webkit-box-align: start;
	        align-items: flex-start;
	flex-wrap: wrap;
	height: 100%;
}


.box-2 {
	padding: 10px 0px;
	/*width: calc(100%/2 - 1em);*/
	width: 60%;
}	


#image{
	width: 100%;
}


.options input{
	padding:0.5em 1em;
	width: 8em;
}


.save, .download, .crop_again{
	background: #6ddb43;
	color: white;
	border: 1px solid #6ddb43;
	padding: 1em 1em;
	text-decoration:none;
	margin: 0.8em 0em;
	display:inline-block;
	cursor:pointer;
	font-size: 15px;
}

.save{
	background-color: #FF9800;
	border-color: #FF9800;
}

.save:hover, .save:focus, .download:hover, .download:focus, .crop_again:hover, .crop_again:focus{
	color: white;
	outline: unset;
}

.crop_again{
	background-color: #4d90fe;
	border-color: #4d90fe;
}

.hide {
	display: none;
}

.cropped {
	max-width: 60%;
}

.box-2 > .col-md-9{
	padding:unset;
}

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  max-width: 680px;
  height: 150px;
  background-color: #f3f3f3;
  text-align: center;
  padding: 45px 25px;
  border: 1.5px dashed #ccc;
  cursor: pointer;
}

#file-input{
width: 680px;
  height: 150px;
}

#upload_btn {
  border: 2px solid #4d90fe;
  color: white;
  background-color: #4d90fe;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

#ad_space{
	margin-top: 30px;
}

#content_box{
	padding-top: 80px;
}

#form_box{
	border: 1px solid #e9e9e9;
	padding: 20px 40px;
	margin-top: 30px;
	margin-bottom: 30px;
	max-width: 800px;
	position: relative;
	box-shadow: 0.5px 0.5px 0px 0px rgba(0,0,0,0.1);
	background-color: #fff;
}

#form_box h1{
	font-size: 24px;
}

#form_box h2, h3{
	font-size: 20px;
}

#form_box textarea, .parameters{
	background:#fff;
	padding:8px;
	border:2px solid #dfe2e4;
	color:#716b79;
	min-height:180px;
	height:auto;
	width:100%;
	margin-bottom: 10px;
}

#content_section{
	margin-top: unset;
}

label{
	margin: unset;
}


#second_content_box{
	background-color: rgba(158, 158, 158, 0.16);
	padding-bottom: 40px;
}


thead{
	background-color: #e2fff4;
}

h2, h3{
	color: #494949;
}

a:focus, a:hover{
	text-decoration: none;
}


#headingDescription{
	font-size: 15px;
	line-height: 1.8em;
	margin-bottom: 25px;
	font-weight: bold;
}

@media (max-width: 767px) {
	#form_box{
		padding: unset;
		padding-right: 10px;
		padding-left: 10px;
		padding-bottom: 25px;
		padding-top: 10px;
		width: 100%;
	}

	#upload_btn {
	  border: 2px solid #4d90fe;
	  color: white;
	  background-color: #4d90fe;
	  padding: 6px 16px;
	  border-radius: 8px;
	  font-size: 16px;
	  font-weight: bold;
	  cursor: pointer;
	}

	.box-2 {
		padding: 10px 0px;
		/*width: calc(100%/2 - 1em);*/
		width: 100%;
	}	

	.options{
		margin-top: 15px;
	}

	.img-w{
		margin-left: 10px;
	}

	.img-h{
		margin-left: 4px;
		margin-top: 10px;
	}

	.upload-btn-wrapper{
		padding:55px 25px;
	}


	#second_content_box .col-md-9, #second_content_box .col-md-3{
		padding-right: unset;
		padding-left: unset;
	}

	#form_box h1{
		font-size: 20px;
	}
}