@import url('https://fonts.googleapis.com/css?family=Open+Sans|PT+Serif:700');


h1,h2,h3,h4,h5{
  font-family: 'PT Serif', serif;
}

p,button,small,a{
  font-family: 'Open Sans', sans-serif;
}

h1,h2,h3,h4,h5,p,small{
  color:#2E2E2E;
}

h1,h2,h3,h4,h5{
  margin-top:0;
  margin-bottom:0.5em;
}

body{
  background: rgb(245, 245, 245);
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  min-height: 100vh;
}

header{
  position:fixed;
  border-bottom:1px #CCC solid;
  width:100%;
  padding:0.8em 0.5em;
  background:#FFF;
  z-index: 100;
  top:0;
  left:0;
  box-sizing: border-box;
}

header h1{
  padding:0;
  margin:0;
  display:inline-block;
}

header a{
  text-decoration: none;
  opacity: 1;
  transition:0.2s ease-in-out opacity;
}

header a:hover{
  opacity: 0.5;
}

main{
  min-height: calc(100vh - 6.5em);
  padding: 8em 0.5em 1em 0.5em;
  box-sizing: border-box;
}

#counter{
  position: absolute;
  top:0;
  right:0;
  padding:0.5em;
  margin:0;
  font-size:0.9em;
  color:#8c8c8c;
}

#card{
  position: relative;
  max-width: 420px;
  width:100%;
  background: #FFF;
  margin: auto;
  box-shadow:0px 10px 20px 0px rgba(0,0,0,0.1);
}

.container-wrapper{
  overflow: hidden;
  transition: height 0.3s ease-in;
}

#card::before{
  content:'';
  position: absolute;
  height:100%;
  width:80%;
  box-shadow:0px 20px 40px 0px rgba(0,0,0,0.1);
  left:50%;
  transform:translateX(-50%);
  z-index:-1;
}

button,.button{
  padding:1em 2em;
  color:#FFF;
  background:#34B5C6;
  outline:none;
  border:none;
  transition:background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor:pointer;
  text-decoration: none;
  display:block;
  text-align: center;
  font-size:1.1em;
}

button:hover, .button:hover{
  background:#3AC8DB;
}

.wrapper{
  max-width: 1280px;
  margin:auto;
}

#card .wrapper{
  padding:1.5em 2em 2em 2em;
  box-sizing: border-box;
}

.question h2{
  text-align: center;
  animation: 0.4s ease-out 0s 1 reveal;
}

.alt-container{
  width:100%;
  animation: 0.4s ease-out 0s 1 reveal;
}



.disapear{
  transform: translateX(-100%);
  transition: 0.4s ease-in;
}

@keyframes reveal {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

.alt-container button{
  width:100%;
  padding:0.8em;
  margin-bottom:1em;
}

.alt-container button:last-child{
  margin-bottom:0;
}


.question-result{
  position:relative;
  padding-left:0.8em;
  box-sizing: border-box;
  animation: 0.5s ease-out 0s 1 slideInFromTop;
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

.correct::before, .wrong::before{
  content:"";
  left:0;
  top:0;
  height:100%;
  width:0.3em;
  position:absolute;
}
.correct::before{
  background:#57DF9A;
}

.wrong::before{
  background:#FF5E5E;
}

#result .button{
  margin-top:2em;
}

#result h3{
  margin-bottom:0;
}

#result p{
  margin-bottom:2em;
  margin-top:0.5em;
}

footer{
  padding:4em 0.5em 1em 0.5em;
}
