
.modal {
  background: rgba(0,172,194,0.8);
  height: 1px;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease 0.5s, height 0.5s ease;
  width: 0;
  z-index:1000000;
}

.contenido {
  color: transparent;
  position: absolute;
  top: 50%;
  text-align: center;
  transform: translate3d(0, -50%, 0);
  transition: color 0.5s ease;
  width: 100%;
}

input[type=text]{
	background: white;
	display: block;
	width: 500px;
	height: 70px;
	opacity: 1;
	text-align: center;
	border: 0;
	outline: none;
	line-height: 40px;
	margin: 0 auto;
	cursor: text;
	font-size: 20px;
}

label {
  color: dodgerblue;
  cursor: pointer;
}

input {
  cursor: pointer;
  height: 0;
  opacity: 0;
  width: 0;
}
input:focus {
  outline: none;
}

input:checked {
  height: 40px;
  opacity: 1;
  position: fixed;
  right: 20px;
  top: 20px;
  z-index:10000000;
  -webkit-appearance: none;
  width: 40px;
}
input:checked::after, input:checked:before {
  border-top: 1px solid #FFF;
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: rotate(45deg);
  width: 100%;
}
input:checked::after {
  transform: rotate(-45deg);
}

input:checked + label {
  color: #FFF;
  transition: color 0.5s ease;
}

input:checked ~ .modal {
  height: 100%;
  width: 100%;
  transition: width 0.5s ease, height 0.5s ease 0.5s;
}
input:checked ~ .modal .content {
  color: #FFF;
  transition: color 0.5s ease 0.5s;
}



@media only screen and (min-width:0px) and (max-width:768px){
	
	input[type=text]{
	background: white;
	display: block;
	width: 90%;
	height: 70px;
	opacity: 1;
	text-align: center;
	border: 0;
	outline: none;
	line-height: 40px;
	margin: 0 auto;
	cursor: text;
	font-size: 20px;
}
	
}

