@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: rgba(255, 183, 0, 0.148);
  text-transform: capitalize;
}
.intro {
  display: none;
}

#screen {
  padding: 30px;
  border-radius: 20px;
  background-color: white;
  text-align: center;
  width: 700px;
  min-width: 300px;
  transition: 0.3s;
}

.intro h1 {
  margin-bottom: 20px;
  color: orangered;
  font-weight: 900;
  font-size: 45px;
}
.intro p {
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.696);
}

.start {
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 25px;
  color: white;
  background-color: orangered;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;

  &:hover {
    transform: scale(1.1);
  }
}

.quiz {
  display: none;
  padding: 30px;
  border-radius: 20px;
  background-color: white;
  text-align: center;
  width: 700px;
  min-width: 300px;
  transition: 0.3s;

  .question {
    margin-bottom: 20px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.767);
  }

  .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    color: rgb(71, 71, 71);
    text-align: center;
  }

  .answers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: column;

    .answer {
      width: 90%;
      border: none;
      outline: none;
      padding: 10px 23px;
      font-size: 20px;
      color: black;
      background-color: rgba(255, 183, 0, 0.148);
      border-radius: 10px;
      font-weight: 400;
      cursor: pointer;
      transition: 0.3s;
      text-align: left;
      border: 1px solid rgba(0, 0, 0, 0.331);

      &:hover {
        transform: scale(1.1);
      }

      &.true {
        background-color: rgba(2, 255, 69, 0.215);
        box-shadow: 1px 1px 1px rgba(2, 255, 69, 0.215);
        color: green;
        font-weight: 700;
      }
      &.false {
        background-color: rgba(255, 0, 0, 0.215);
        box-shadow: 1px 1px 1px rgba(255, 0, 0, 0.215);
        color: rgb(190, 4, 4);
        font-weight: 700;
      }
    }
  }
  .progress {
    position: relative;
    width: 100%;
    background-color: rgba(255, 183, 0, 0.176);
    height: 10px;
    margin-top: 30px;
    border-radius: 10px;

    .bar {
      position: absolute;
      top: 0;
      left: 0;
      width: 0;
      height: 100%;
      background-color: rgba(255, 68, 0, 0.653);
      border-radius: 10px;
      transition: 0.3s;
    }
  }
}

.result {
  display: none;
  h1 {
    margin-bottom: 20px;
    color: orangered;
    font-weight: 900;
    font-size: 45px;
  }
  .box {
    background-color: rgba(255, 153, 0, 0.137);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 10px;
    p {
      margin-bottom: 20px;
      color: black;
      font-size: 20px;
      font-weight: 600;
    }
    h2 {
      font-weight: bolder;
      color: orangered;
      font-size: 30px;
    }
  }
  .start {
    margin-top: 10px;
  }
}

.app > div.active {
  display: block;
}
