@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700'); 
body {
	font-family: "Source Code Pro", monospace;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;

}

html{
    background: url(images/background.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#indicator {
	border: 2px solid #070707;
	border-radius: 50%;
	height: 32px;
	margin: 0 auto 24px;
	overflow: hidden;
	position: fixed;
    top: 135px;
    left: 245px;
	width: 32px;
    opacity: 0.5;
}
#indicator.locked svg.unlocked {
	transform: translate(-50%, 50%);
}
#indicator.unlocked svg.locked {
	transform: translate(-50%, -100%);
}
#indicator.unlocked svg.unlocked {
	transform: translate(-50%, -50%);
}
#indicator svg {
	padding: 16px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
	width: 16px;
}
#indicator svg.locked {
	background: #f56666;
}
#indicator svg.unlocked {
	background: #50ef87;
}
#combination {
	display: flex;
	padding: 0 4px;
    position: fixed;
    top: 220px;
}
.wheel {
	font-size: 24px;
	padding: 0 4px;
	text-align: center;
}
.increment, .decrement {
	background: #1d242f;
	border: 2px solid #070707;
	border-radius: 50%;
	cursor: pointer;
	height: 24px;
	position: relative;
	transition: border-color 0.1s ease;
	width: 24px;
}
.increment:active, .decrement:active {
	border-color: #fff;
}
.increment.click, .decrement.click {
	border-color: #fff;
	transition: border-color 0s ease;
}
.increment img, .decrement img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
}
.increment {
	margin-top: -14px;
}
.decrement {
	margin-bottom: -14px;
}
.digit {
	-moz-appearance: textfield;
	background: #1d242f;
	border: 2px solid #070707;
	border-radius: 24px;
	caret-color: #1d242f;
	color: #fff;
	cursor: pointer;
	margin: 8px 0;
	outline: none;
	padding: 8px 0;
	text-align: center;
	user-select: none;
	transition: border-color 0.1s ease;
	width: 24px;
}
.digit:focus {
	border-color: #fff;
}
.digit::-webkit-inner-spin-button, .digit::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.digit::selection {
	background: transparent;
}

#main_wrapper{
    width: 100vw;
    height: 100vh;
    background: #252525;
    z-index:100;
    margin: 0;
    padding: 0;
}

#main{
    padding-top: 150px;
    padding-left: 200px;
    width: 320px;
    height: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: url(images/lock.png) no-repeat center center fixed; 
}

#typewritter{
    width: 100vw;
    height: 150px;
    position: absolute;
    background: #252525;
    z-index:5;
    bottom:0px;
    background: url(images/type1.png) repeat-x center bottom fixed; 
    left:0px;
    margin: 0;
    padding: 0;
}

#paper{
    width: 80vw;
    background: #fefefe; 
    height: 200px;
    position: absolute;
    bottom: 0px;
    z-index: 2;
    padding: 25px;
}

@keyframes ttype {
    0% {transform: translate(0%, 0%);}
    40% {transform: translate(0%, 5%);}
    100% {transform: translate(0%, 0%);}
  }

  @-moz-keyframes showtype {
    0% {transform: translate(0%, 0%);}
    40% {transform: translate(0%, 5%);}
    100% {transform: translate(0%, 0%);}
  }
  
  @-webkit-keyframes showtype {
    0% {transform: translate(0%, 0%);}
    40% {transform: translate(0%, 5%);}
    100% {transform: translate(0%, 0%);}
  }
  
  @-o-keyframes showtype {
    0% {transform: translate(0%, 0%);}
    40% {transform: translate(0%, 5%);}
    100% {transform: translate(0%, 0%);}
  }


@keyframes showtype {
    0% {opacity: 0;}
    25% {opacity: 0;}
    50% {transform: translate(0%, 0%);}
    70% {transform: translate(0%, 30%);}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }

  @-moz-keyframes showtype {
    0% {opacity: 0;}
    25% {opacity: 0;}
    50% {transform: translate(0%, 0%);}
    70% {transform: translate(0%, 30%);}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }
  
  @-webkit-keyframes showtype {
    0% {opacity: 0;}
    25% {opacity: 0;}
    50% {transform: translate(0%, 0%);}
    70% {transform: translate(0%, 30%);}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }
  
  @-o-keyframes showtype {
    0% {opacity: 0;}
    25% {opacity: 0;}
    50% {transform: translate(0%, 0%);}
    70% {transform: translate(0%, 30%);}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }

@keyframes slideup {
    0% {opacity: 1;}
    100% {opacity: 0;}
  }

  @-moz-keyframes slideup {
    0% {opacity: 1;}
    100% {opacity: 0;}
  }
  
  @-webkit-keyframes slideup {
    0% {opacity: 1;}
    100% {opacity: 0;}
  }
  
  @-o-keyframes slideup {
    0% {opacity: 1;}
    100% {opacity: 0;}
  }
  

  @keyframes slidepaper {
    0% {transform: translate(0%, 0%); opacity: 0;}
    70% {transform: translate(0%, 100%); opacity: 0;}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }

  @-moz-keyframes slidepaper {
    0% {transform: translate(0%, 0%); opacity: 0;}
    70% {transform: translate(0%, 100%); opacity: 0;}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }
  
  @-webkit-keyframes slidepaper {
    0% {transform: translate(0%, 0%); opacity: 0;}
    70% {transform: translate(0%, 100%); opacity: 0;}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }
  
  @-o-keyframes slidepaper {
    0% {transform: translate(0%, 0%); opacity: 0;}
    70% {transform: translate(0%, 100%); opacity: 0;}
    100% {transform: translate(0%, 0%); opacity: 1;}
  }

  @keyframes unlock {
    25% { transform: translate(-50%, -50%); opacity: 1;}
    50% { transform: translate(-50%, -30%); opacity: 1;}
    100% {transform: translate(-50%, -90%) rotate(45deg); opacity: 0;}
  }

  @-moz-keyframes unlock {
    25% { transform: translate(-50%, -50%); opacity: 1;}
    50% { transform: translate(-50%, -30%); opacity: 1;}
    100% {transform: translate(-50%, -90%) rotate(45deg); opacity: 0;}
  }
  
  @-webkit-keyframes unlock {
    25% { transform: translate(-50%, -50%); opacity: 1;}
    50% { transform: translate(-50%, -30%); opacity: 1;}
    100% {transform: translate(-50%, -90%) rotate(45deg); opacity: 0;}
  }
  
  @-o-keyframes unlock {
    25% { transform: translate(-50%, -50%); opacity: 1;}
    50% { transform: translate(-50%, -30%); opacity: 1;}
    100% {transform: translate(-50%, -90%) rotate(45deg); opacity: 0;}
  }

.hideme{
    animation: slideup 2s;
    -moz-animation: slideup 2s;
    -webkit-animation: slideup 2s;
    -o-animation: slideup 2s;
    opacity: 0;
}

.openlock{
    animation: unlock 1s;
    -moz-animation: unlock 1s;
    -webkit-animation: unlock 1s;
    -o-animation: unlock 1s;
    opacity: 0;
}

.removelock{
    display:none;
}

.showwritter{
    animation: showtype 3s;
    -moz-animation: showtype 3s;
    -webkit-animation: showtype 3s;
    -o-animation: showtype 3s;
    opacity: 1;    
}

.showpaper{
    animation: slidepaper 3s;
    -moz-animation: slidepaper 3s;
    -webkit-animation: slidepaper 3s;
    -o-animation: slidepaper 3s;
    opacity: 1;     
}

#letter{
    padding:20px;
}

#typer{
    animation-iteration-count: infinite;
    position: absolute;
    left: calc(50% - 200px)
}


.ttype{
    animation-iteration-count: infinite;
    animation: ttype 0.5s;
    -moz-animation: ttype 0.5s;
    -webkit-animation: ttype 0.5s;
    -o-animation: ttype 0.5s;
}