
.code-outer {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  -webkit-perspective: 1000;
  -webkit-perspective-origin-y: 25%;
}

.code-inner {
  width: 40%;
  border-radius: 30px;
  border: outset rgb(185, 102, 42);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: lightgreen;
  transform: rotateY(90deg);
  opacity: 0;
  background: url('../img/wood.svg') no-repeat center;
  background-size: cover;
  transition: transform 0.7s cubic-bezier(0.694, 0.0482, 0.335, 1),
              opacity 0.7s cubic-bezier(0.694, 0.0482, 0.335, 1),
              box-shadow 0.7s cubic-bezier(0.694, 0.0482, 0.335, 1),
}


.code-inner-visible {
  transform: rotateY(0deg);
  opacity: 1;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.code {
  width: 15%;
  margin: 3%;
  position: relative;
}

.code::before {
  display: block;
  content: '';
  width: 100%;
  padding-top: 100%;
}

.code input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  color: #fa2d2d;
  outline: none;
  border: 2px solid #6fc0c8;
  border-radius: 10%;
  transition: box-shadow 0.3s ease-out,
              border 0.3s ease-out;
}

.code input:focus {
  border: 2px solid #fa2d2d;
  box-shadow: 0 0 8px 2px rgba(250, 45, 45, 0.5);
}
