*{
	padding: 0;
	margin: 0;
	font-family: sans-serif;
}

body{
	background-color: lightgray;
}

.main{
	max-width : 500px;
  width:  90%;
	margin: 25px auto 5px;
	padding: 10px;
	border: 1px solid gray;
	background-color: #FFF;
	box-shadow: 0 0 3px 2px gray;
}

/* Styling the key holder */
input[type='text']{
  width: 95%;
  height: 25px;
  padding: 2%;
  margin: 10px auto 5px;
  border: 1px solid gray;
  color: blue;
  font-weight: bold;;
  outline: none;
  transition: all 1s linear;
}

input[type='text']:hover, input[type='text']:focus{
  border: 1px solid blue;
}

/* Styling the text to be crypted holder */
textarea{
	max-width: 95%;
	width: 95%;
	margin: auto;
	padding: 2%;
	max-height: 200px;
	height: 200px;
	border: 1px solid gray;
	outline: none;
	font-size: 1em;
  color: blue;
}

textarea:hover, textarea:focus{
	border: 1px solid blue;
}

/* Styling the button destin to trigger the cryptage process */
input[type=button]{
  width: 60px;
  height: 25px;
	border: 1px solid gray;
	border-radius: 2px;
	color: gray;
	cursor: pointer;
  margin: 5px 0;
  outline: none;
}

input[type=button]:hover{
	border: 1px solid blue;
  color: blue;
}

/* Styling the paragraph of the crypted text*/
p#result{
	border: 1px solid gray;
	width: 95%;
	padding: 2%;
  color: blue;
	height: 210px;
	overflow-y: scroll;
}

/* Styling the footer */
footer{
  text-align: center;
  font-size: .8em;
  color: gray;
}

footer a{
  text-decoration: none;
  color: inherit;
}

footer:hover{
  color: blue;
}

/* Styling the toogle button */
#toggleContainer{
	width: 100%;
	height: 40px;
}

.kitty-switch {
  width: auto;
  display: block;
  position: relative;
  margin: 0px 35px 0px 0px;
  text-align: center;
}

.kitty-switch .prompt {
  display: inline-block;
  margin-top: 10px;
}
.kitty-switch .well {
  background: white;
  height: 20px;
  width: 65px;
  position: absolute;
  right: 50px;
  top: 7px;
  border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid blue;
  cursor: pointer;
}
.kitty-switch #toggle {
  opacity: 0;
  border: none;
  border-radius: 0;
  outline: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  height: 29px;
  width: 140px;
  background: transparent;
  position: absolute;
  right: 0px;
  top: 3px;
  cursor: pointer;
  z-index: 100;
  color: tranparent;
}
.kitty-switch #toggle:after {
  content: '';
  background-color: transparent;
  height: 40px;
  width: 80px;
  position: absolute;
  left: 30px;
  top: -5px;
}
.kitty-switch #toggle ~ div.kitty:before {
  content: "\00b0";
  position: absolute;
  right: 93px;
  top: -6px;
  font-size: 75px;
  color: blue;
  z-index: 1;
  -moz-transition: all 0.25s ease-out;
  -webkit-transition: all 0.25s ease-out;
  -o-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
}
.kitty-switch #toggle:checked {
  right: 0px;
}
.kitty-switch #toggle:checked:after {
  left: -80px;
}
.kitty-switch #toggle:checked ~ div.kitty:before {
  content: '\00b0';
  top: -6px;
  right: 43px;
}
.kitty-switch #toggle:checked ~ div.visible {
  opacity: 1;
  max-height: 900px;
  overflow: visible;
}
.kitty-switch #toggle ~ label:before {
  content: "Decrypt";
  font-weight: bold;
  position: absolute;
  color: blue;
  left: -65px;
  top: 0px;
  font-size: 16px;
}
.kitty-switch #toggle ~ label:after {
  content: "Encrypt";
  font-weight: bold;
  position: absolute;
  color: gray;
  left: 72px;
  top: 0px;
  font-size: 16px;
}
.kitty-switch #toggle:checked ~ label:before {
  color: gray;
}
.kitty-switch #toggle:checked ~ label:after {
  color: blue;
}