.game-component {
    /* position: absolute; */
    /* bottom: 10%; */
    /* bottom: 16%; */
    height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-position: top;
    /* margin-top: 1%; */
    margin: auto;
}

.deck {
    position: relative;
    height: 50vh;
    width: 35vh;
    min-height: 27.5rem;
    min-width: 20rem;
    transition: all .4s;
    border-radius: .688rem;
}

.deck:hover {
    /* transform: translateY(-0.5rem); */
    box-shadow: 0 0 3rem rgba(66, 54, 54, 0.4);
}

.door {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    cursor: pointer;
    border-radius: .688rem;
    box-shadow: 0 1rem 1rem rgb(0,0,0,.2);
}

.flippable {
    transition: 0.5s;
    transform-style: preserve-3d;
}

.flipme {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.slide {
  -webkit-transform: translateX(50vh);
  -moz-transform: translateX(50vh);
  -ms-transform: translateX(50vh);
  -o-transform: translateX(50vh);
  transform: translateX(50vh);
}

.front, .back, .success, .fail {
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: .688rem;
    background-color: rgb(255, 255, 255);
    color: black;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}
.card-icon {
  /* transform: translateZ(2rem); */
}

.front {
    z-index: -1;
    -webkit-transform: rotateY(0deg); /* Firefox 31 fix */
    -moz-transform: rotateY(0deg); /* Firefox 31 fix */
    -ms-transform: rotateY(0deg); /* Firefox 31 fix */
    -o-transform: rotateY(0deg); /* Firefox 31 fix */
    transform: rotateY(0deg); /* Firefox 31 fix */
}

.back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    font-size: 1.8rem;
}

.success {
     /* background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);  */
     background-color: rgba(255, 255, 255, 0);
    /*background: rgb(0, 226, 0);*/
    visibility: hidden;
    display: flex;
    top: 0;
    -webkit-transform: translate3d(0);
    -moz-transform: translate3d(0);
    -ms-transform: translate3d(0);
    -o-transform: translate3d(0);
    transform: translate3d(0);
    align-items: center;
}
.fail {
    /* background-image: linear-gradient(120deg, pink 0%, red 100%);  */
    background-color: rgba(255, 255, 255, 0);
    visibility: hidden;
    -webkit-transform: translate3d(0);
    -moz-transform: translate3d(0);
    -ms-transform: translate3d(0);
    -o-transform: translate3d(0);
    transform: translate3d(0);
    align-items: center;
}
.success h5, .fail h5 {
  font-size: 2.5rem;
}

/* Card Content */
.card-img-top {
  width: 100%;
  height: auto;
}

p {
  margin-top: 1rem;
}

.card-body {
}

.card-text {
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.75rem;
}

.shakeme {
  animation: shake 0.5s;
}

.control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
}

.text-box {
    min-width: 20rem;
    min-height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 5px;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);;
    box-shadow: 0 1rem 2rem rgb(0,0,0,.2);
}

#text-answer {
    min-width: 18rem;
    min-height: 1.25rem;
    font-size: 1.25rem;
    text-align: center;

}

.next-button {
  position: relative;
}

.cancel-button {
  position: relative;
}

.bttn:link,
.bttn:visited {
    text-transform: uppercase;
    transition: all .2s;
    text-decoration: none;
}

.bttn--next {
  display: inline-flex;
  background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
  -webkit-clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
  -moz-clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
  -ms-clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
  -o-clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
  clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
  height: 4rem;
  width: 4rem;
  cursor: pointer;
  vertical-align: middle;
}

.bttn--cancel {
    height: 4rem;
    width: 4rem;
    background-image: linear-gradient(120deg, #ff4444 0%, #ff7d7d 100%);
    -webkit-clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    -moz-clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    -ms-clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    -o-clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    cursor: pointer;
    vertical-align: middle;
}


.bttn:active {
  box-shadow: 0 1.2rem 1.2rem rgb(0,0,0,.3);
}

.bttn:hover {
  transform: translateZ(.3rem);
  box-shadow: 1 1rem 1rem rgb(0,0,0,.2);
}


.bttn--next:hover {
    transform: translateX(.3rem);
    box-shadow: 0 1rem 1rem rgb(0,0,0,.2);
}
.bttn--cancel:hover {
/*    transform: translateX(-.3rem);*/
    box-shadow: 0 1rem 1rem rgb(0,0,0,.2);
}

h5.card-icon {
    font-size: 120px;
}
h1 {
    margin: auto;
    margin-top: 10%;
    height: 5rem;
    width: 5rem;
}

.instruction-component {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 25rem;
    height: 0rem;
    bottom: 3rem;
    padding: .5rem;
    text-align: center;
    visibility: hidden;
}
 
.controlLeft {
    float: left;
    margin-top: 14.1rem;
    margin-right: 28.5rem;
    margin-left: -16.5rem;
    margin-bottom: -2.55rem;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    box-shadow: 0 .5rem 1rem rgb(0,0,0,.2);
}
.controlRight {
    float: right;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    margin-left: 28.5rem;
    margin-right: -16.5rem;
    box-shadow: 0 .5rem 1rem rgb(0,0,0,.2);
}
.cardRight {
    float: right;
    margin-left: 28rem;
    margin-right: -16rem;
    margin-top: 10rem;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    box-shadow: 0 .5rem 1rem rgb(0,0,0,.2);
    padding: .5rem;
}

.timerRight {
    float: right;
    margin-top: -37.5rem;
    margin-right: -18rem;
    margin-left: 25rem;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    box-shadow: 0 .5rem 1rem rgb(0,0,0,.2);
}

.keyboard-deck {
    min-height: 18rem;
    min-width: 15rem;
}

@media only screen and (max-width: 600px) {

  .game-component {
    bottom: 5%;
  }

  .control {
    margin-top: .25rem;
  }

  .text-box {
    min-width: 8rem;
  }

  #text-answer {
    min-width: 8rem;
  }
  .card-title {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 1rem;
  }

  input {
    /*min-width: 5rem;*/
  }
}

@media only screen and (max-width: 375px) and (max-height: 667px) {
  .deck {
    min-height: 24rem;
  }

  .keyboard-deck {
    min-height: 12rem;
    min-width: 10rem;
  }
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.animate-card-icon {
  transition: 1s;
  -webkit-transtion: 1s;
  font-size: 15rem;
  opacity: 0;
}

.success-border {
  transition: 1s;
  border: 25px solid rgb(8, 184, 8);
}

.fail-border {
  transition: 1s;
  border: 25px solid rgb(184, 8, 8);
}

.settings-icon {
  /*z-index: 3;*/
  position: absolute;
  right: 0;
  top: 0;
  backface-visibility: visible; 
  overflow: visible;
  background: url("../images/settings-icon.png") no-repeat;
  background-size: 100% 100%;
  width: 2.5rem;
  height: 2rem;
}

.settings {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
}
.algo-select {
  flex-direction: row;
}
.flip-on-click {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  font-size: 1rem;
}
.toggle-flip {
  margin-left: 0.5rem;
}

.back .settings button,
.back .settings select,
.back .settings input {
  margin-top: .5rem;
}