@keyframes slideInFromTop { 0% { top: 0; } 100% { transform: translateY(0); } }
body { padding: 0; margin: 0; }
div { font-family: Arial, Helvetica, sans-serif; color: #3C3C3C; }
h1 { font-weight: normal; font-size: 1.7em; }
canvas { vertical-align: top; }
img { position: absolute; top: .6rem; left: .6rem; height: 7rem; }

.first_session, .welcome_session, .game_session, .question_session { 
  position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; color: #3C3C3C; 
}
iframe { margin: 0; border: none; }
.action_msg { margin-top: 1.3rem; font-size: 2em; text-align: center; }
.welcome_msg { margin: 1.3rem 0 1.3rem 10rem; font-size: 5em; text-align: center; }
.introductory_msg, .practice_msg, .question_msg, .answer1, .button { 
  padding: 1rem; font-size: 1.8em; text-align: center; background-color: rgba(250, 160, 10, .9); 
}
.introductory_msg { line-height: 1.5em; & > b { color: #0000ff; } }

.credits_msg { font-size: 1.1em; text-align: right; color: #000; margin: .3rem; }

.countdown { padding: .1rem .7rem; font-size: 1.3em; text-align: right; color: #000; }

.feedback { font-size: 5em; }
.answer1, .button { background-color: rgba(255, 255, 255, 0); }
/* .button { margin-right: 10rem; } */
/* button { position: absolute; } */
.answer1 input { width: 1.5rem; margin-right: .5rem; }

input { text-align: center; }

#instruction { padding-top: 16%; }
#instruction .modal-content { width: 46rem; height: auto; }
#instruction .modal-body { text-align: center; background-color: #FAA00A; padding: 0 2rem; }


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 2%; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  display: flex; 
  flex-direction: column;
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  height: 90%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

.modal-header {
  padding: 2px 2px 2px 16px;
  background-color: lightgray;
  color: black;
}

.modal-header h2 { margin: .2rem 0; text-align: center; }

.modal-body { padding: 2px; flex: 1; }

.modal-footer {
  padding: 2px 16px;
  background-color: lightgray;
  color: black;
  text-align: center;
}

/* CSS */
.button-71 {
  background-color: #FAA00A;
  border: 0;
  border-radius: 56px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
  font-size: 18px;
  font-weight: 600;
  outline: 0;
  padding: .5rem 21px;
  margin: .5rem 0;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-71:before {
  background-color: initial;
  background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
  border-radius: 125px;
  content: "";
  height: 50%;
  left: 4%;
  opacity: .5;
  position: absolute;
  top: 0;
  transition: all .3s;
  width: 92%;
}

.button-71:hover {
  box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .button-71 {
    padding: .5rem 2rem;
    margin: .5rem 0;
  }
}

button {
  background-color: #FAA00A;
  border: 0;
  border-radius: 56px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
  font-size: 18px;
  font-weight: 600;
  outline: 0;
  padding: 16px 21px;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  position: relative;
}

button:before {
  background-color: initial;
  background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
  border-radius: 125px;
  content: "";
  height: 50%;
  left: 4%;
  opacity: .5;
  position: absolute;
  top: 0;
  transition: all .3s;
  width: 92%;
}

button:hover {
  box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  button {
    padding: 16px 48px;
  }
}