@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
html {
  background: linear-gradient(180deg, rgb(196, 139, 171) 0%, rgb(162, 139, 197) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100%;
  font-size: 1.6vw;
  line-height: 1.8vw;
}
html body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #43278F;
}
html * {
  font-family: "Lato", sans-serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  letter-spacing: 0.05vw;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
html .logo img {
  position: absolute;
  bottom: 5.5vw;
  right: 5.5vw;
  width: 8vw;
}
html .progress-bar {
  height: 4px;
  background-color: #43278F;
  position: absolute;
  top: 0;
  left: 0;
}
@media (max-width: 769px) {
  html {
    font-size: 3vw;
    line-height: 3.2vw;
  }
  html .logo img {
    bottom: 10vw;
    right: 8vw;
    width: 12vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 4vw;
    line-height: 4.5vw;
  }
  html .logo img {
    bottom: 20vw;
    width: 20vw;
  }
}

#quiz {
  box-shadow: 0.5vw 0.5vw 1.2vw 0.5vw rgba(118, 20, 133, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;
  position: relative;
  background-image: url(../images/bg.png);
  background-size: cover;
  background-position: center;
  width: 90vw;
  height: 50vw;
  padding: 5vw;
}
#quiz .title {
  font-size: 2.6vw;
  line-height: 2.8vw;
  margin: 0 1vw;
}
#quiz .intro {
  text-align: center;
}
#quiz .intro .title {
  line-height: 4vw;
}
#quiz h2 {
  font-size: 2.2vw;
  line-height: 3vw;
  margin: 0 1vw;
}
#quiz .controls {
  display: flex;
  justify-content: space-between;
}
#quiz .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1vw 1.5vw;
  background-color: #43278F;
  color: #FFF;
  font-weight: 700;
  font-size: 1.6vw;
  border-radius: 0.35vw;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  width: 28vw;
  margin: 0 1vw;
}
#quiz .button:hover {
  background-color: rgb(139, 49, 147);
}
#quiz #start {
  margin: 5vw auto;
}
#quiz .warning {
  width: 58vw;
}
#quiz .result {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
}
#quiz .reveal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
#quiz .reveal p {
  font-size: 1.6vw;
  margin: 0 1vw;
}
#quiz .reveal p .mark {
  font-size: 1.8vw;
}

@media (max-width: 769px) {
  #quiz {
    height: 100vw;
  }
  #quiz .intro .title {
    line-height: 6vw;
  }
  #quiz .title {
    font-size: 4vw;
    line-height: 4.5vw;
  }
  #quiz h2 {
    font-size: 3.5vw;
    line-height: 3.5vw;
  }
  #quiz .reveal {
    height: 90%;
    margin-bottom: 10%;
  }
  #quiz .reveal p {
    font-size: 2.4vw;
  }
  #quiz .reveal p .mark {
    font-size: 2.5vw;
  }
  #quiz .button {
    font-size: 2.4vw;
    padding: 2vw 1.4vw;
    border-radius: 1vw;
    width: 33vw;
  }
  #quiz .warning {
    width: 70vw;
    line-height: 4vw;
    font-size: 3.2vw;
  }
  #quiz #retry {
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  #quiz {
    height: 150vw;
  }
  #quiz .title {
    font-size: 5vw;
    line-height: 6vw;
  }
  #quiz h2 {
    font-size: 4vw;
    line-height: 4.5vw;
  }
  #quiz .reveal {
    height: 85%;
    margin-bottom: 15%;
  }
  #quiz .reveal p {
    font-size: 4vw;
  }
  #quiz .reveal p .mark {
    font-size: 4.2vw;
  }
  #quiz .button {
    font-size: 3.8vw;
    padding: 2vw 1.5vw;
    border-radius: 1.5vw;
  }
}
.question {
  width: 60vw;
  -webkit-animation: fadein 1s;
  animation: fadein 1s;
}
.question ul {
  list-style: none;
  margin: 2vw 0;
  counter-reset: listStyle;
  margin: 0 1vw;
}
.question ul li {
  position: relative;
}
.question ul li label {
  counter-increment: listStyle;
  display: flex;
  align-items: center;
  background-color: #FFF;
  padding: 1vw;
  margin: 1vw 0;
  border-radius: 0.35vw;
  transition: all 0.3s ease;
}
.question ul li label::before {
  margin-right: 1em;
  content: counter(listStyle, upper-alpha);
  width: 3vw;
  min-width: 3vw;
  height: 3vw;
  display: flex;
  background: #E7CBED;
  align-items: center;
  justify-content: center;
  border-radius: 3vw;
}
.question ul li label.correct {
  background: #000;
}
.question ul li input[type=radio] {
  position: absolute;
  width: 100%;
  opacity: 0;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  display: block;
}
.question ul li input[type=radio]:checked + label {
  font-weight: bold;
  background-color: rgba(139, 49, 147, 0.6);
}
.question ul li input[type=radio]:checked + label:before {
  font-weight: bold;
  background-color: #43278F;
  color: #fff;
}

@media (max-width: 769px) {
  .question {
    width: 70vw;
  }
  .question ul li label {
    border-radius: 1vw;
    margin: 2vw 0;
  }
  .question ul li label::before {
    width: 6vw;
    height: 6vw;
    border-radius: 6vw;
  }
}
@media (max-width: 480px) {
  .question ul li label {
    border-radius: 1.5vw;
    margin: 3vw 0;
  }
  .question ul li label::before {
    width: 9vw;
    height: 9vw;
    border-radius: 9vw;
  }
}
#embed-codebox {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}

#embed-button {
  z-index: 2;
  line-height: 2vw;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: pointer;
  position: absolute;
  border-radius: 100%;
  background: #fff;
  padding: 0.5vw;
  width: 8vw;
  height: 8vw;
  bottom: 2vw;
  left: 2vw;
  transition: all 0.3s ease;
}
#embed-button:hover {
  background-color: rgb(139, 49, 147);
  color: #fff;
}
#embed-button .wrapper {
  text-align: center;
  width: 100%;
  display: block;
  line-height: 2vw;
  margin-top: 1.2vw;
}
#embed-button .wrapper#copied {
  display: none;
  padding-top: 1vw;
}
#embed-button .wrapper span {
  text-align: center;
  font-size: 2vw;
  display: block;
  width: 100%;
}
#embed-button .wrapper span:first-child {
  font-weight: bold;
}
#embed-button .wrapper span:last-child {
  font-weight: bold;
}
#embed-button.copied .wrapper#generic {
  display: none;
}
#embed-button.copied .wrapper#copied {
  display: block;
}
#embed-button.copied .wrapper#copied span {
  font-size: 1.2vw !important;
  line-height: 1.5vw;
}
@media (max-width: 769px) {
  #embed-button {
    bottom: 10vw;
    left: 8vw;
    width: 10vw;
    height: 10vw;
    padding: 0;
  }
  #embed-button .wrapper {
    line-height: 3vw;
    margin-top: 1.5vw;
  }
  #embed-button .wrapper#copied {
    padding-top: 2vw;
  }
  #embed-button .wrapper span {
    font-size: 2.2vw;
  }
}
@media (max-width: 480px) {
  #embed-button {
    width: 16vw;
    height: 16vw;
    padding: 2vw 0;
    bottom: 20vw;
  }
  #embed-button .wrapper {
    line-height: 4vw;
    margin-top: 1.35vw;
  }
  #embed-button .wrapper span {
    font-size: 4vw;
  }
  #embed-button.copied .wrapper#copied span {
    padding-top: 0.5vw;
    line-height: 2.6vw;
    font-size: 2.6vw !important;
  }
}

#social-bar {
  right: 3vw;
  top: 3vw;
}
#social-bar h3 {
  font-size: 2vw;
  margin-bottom: 0.5vw;
}
#social-bar .shareon {
  display: flex;
  align-items: center;
}
#social-bar .shareon img {
  width: 4.5vw;
  height: auto;
  margin: 0 1vw;
}
