#game-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

#questions {
  text-align: center;
  padding-right: 20px;
}

#answers {
  text-align: center;
}

.question_block {
  display: inline-block;
  vertical-align: middle;
}

.person, .speech-bubble {
}

.person {
  width: 266px;
}

.speech-bubble {
  border: 2px solid #000;
  border-radius: 20px;
  width: 570px;
  margin-top: 5%;
  padding: 20px;
  position: relative;
}

.speech-bubble:after, .speech-bubble:before {
  right: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.speech-bubble:after {
  border-color: rgba(255, 255, 255, 0);
  border-right-color: #fff;
  border-width: 10px;
  margin-top: -10px;
}
.speech-bubble:before {
  border-color: rgba(0, 0, 0, 0);
  border-right-color: #000;
  border-width: 13px;
  margin-top: -13px;
}

.doorframe {
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  height: 547px;
  width: 271px;
  margin: 20px;
  margin-left: 0px;
  perspective: 750;
  border-radius: 3px;
  box-sizing: border-box;
}
        
.door {
  background-repeat: no-repeat;
  width: 271px;
  height: 547px;
  position: absolute;
  box-sizing: border-box;
  border-radius: 3px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .0) inset;
  transition: .5s transform linear;
  transform-origin: left;
  cursor: pointer;
}
        
.doorOpen {
  transform: rotateY(-90deg);
  transform-origin: 8px;
  transition: .5s linear;
}

.nameplate {
  position: absolute;
  top: 30px;
  left: 15%;
  height: 80px;
  width: 70%;
  background: none;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.nameplate.executive {
   background: #92d050;
}

.nameplate.judicial {
  background: #ff0000;
}

.nameplate.legislative {
  background: #00afef;
}

.doorOpen .nameplate {
  opacity: 0;
}

.nameplate-text {
  padding-left: 5%;
  padding-right: 5%;
  font-weight: bold;
  font-size: 1.2em;
  height: 100%;
  display: flex;
  align-items: center; /* Vertical center alignment */
  justify-content: center;
  line-height: 1;
}

.answer-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding-left: 8%;
  padding-right: 8%;
}

.answer-text {
  width: 70%;
  margin: 15% auto;
  color: red;
}

.answer-text.correct {
  color: green;
}

@media (max-width: 990px) {
  
  .door, .doorframe {
    width: 200px;
    height: 404px;
  }

  .person {
    width: 200px;
  }

  .speech-bubble {
    width: 400px;
  }
} 
 
 @media (max-width: 767px) {
  
  .door, .doorframe {
    width: 160px;
    height: 323px;
  }

     .person {
    width: 160px;
  }

  .speech-bubble {
    width: 340px;
  }
}

@media (max-width: 639px) {
  
  .door, .doorframe {
    width: 120px;
    height: 242px;
  }

  .answer-text {
    font-size: .8em;
    line-height: 1;
  }

     .person {
    width: 100px;
  }

  .speech-bubble {
    width: 200px;
  }

  .nameplate {
    top: 10px;
    height: 40px;
  }

   .nameplate-text {
    padding-left: 2%;
    padding-right: 2%;
    font-size: 1em;
}

  button.btn-primary {
    font-size: .7em;
  }

}

@media (max-width: 479px) {
  
  .door, .doorframe {
    width: 100px;
    height: 202px;
  }
  
  .answer-text, .nameplate-text {
    font-size: .7em;
  }
}

@media (max-width: 401px) {
  
  .door, .doorframe {
    width: 80px;
    height: 161px;
  }
  
  .answer-text {
    font-size: .6em;
  }
   .nameplate-text {
    font-size: 0.6em;
}
  button.btn-primary {
    font-size: .6em;
    line-height: 1;
  }
}

@keyframes go {
  100%{
    opacity:1;
    transform:rotateY(0deg);
  }
}