@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

section {
    display: flex;
}

#title {
    display: flex;
    height: 100vh;
    padding: 0;
    margin: 0;
    justify-content: center;
    background-color: aqua;
    background:url("images/splash-background.jpg") no-repeat fixed center;
    background-size: cover;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

#title div {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background:url("images/bubbles.png") repeat fixed center;
    animation: bubbleScroll 30s infinite linear;
}

#title h1 {
    margin: 0;
    padding: 0;
    color: rgba(0,0,0,0);
    width: 100%;
    height: 100%;
    background: url("images/pbyt-logo.png") no-repeat scroll center;
    background-size: 55vw;
}

#title div .return {
    position: absolute;
    top: 1%;
    left: 1%;
    font-family: 'Heebo', sans-serif;
    text-decoration: none;
    font-weight: 500;
    background-color: white;
    padding-right: 7px;
    border-radius: 0 7px 7px 0;
}

#title div .return:hover {
    text-decoration: underline;
}

#title div .return img {
    width: 40px;
    vertical-align: top;
    margin-right: 5px;
}

#title div .greenButton {
    position: absolute;
    margin-bottom: 4%;
}

#intro {
    padding: 30% 15% 30% 15%;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: #654a98;
    background-image:url("images/x-o.png");
    background-attachment: fixed;
    color: white;
    font-family: 'Heebo', sans-serif;
}

#intro div {
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

#intro div p {
    text-align: center;
    margin: 0;
}

#intro #overview a {
    color: #654a98
}

#intro #overview em {
    font-weight: 800;
    color: green;
}

#intro #overview a:hover {
    color: #a57cf3
}

#intro div:nth-child(1) {
    z-index: 5;
}

#intro div:nth-child(1) p {
    background-color: rgba(256,256,256,0.7);
    padding: 18px 20px;
    margin: 0;
    color: #503a78;
    font-weight: 700;
    font-size: 22px;
    border-radius: 10px;
}

.cellPeople {
    flex-direction: row !important;
    justify-content: space-between;
}

#intro div:nth-child(1) img {
    margin: 0;
    padding: 30px 0 0 5px;
    height: 20vh;
}

#intro div:nth-child(2) {
    align-items: center;
    font-size: 24px;
    z-index: 4;
}

#intro div:nth-child(3) {
    align-items: center;
    font-size: 24px;
    z-index: 3;
}

#intro div:nth-child(4) {
    align-items: center;
    font-size: 24px;
    z-index: 2;
}

#start {
    position: relative;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    background:url("images/game-pieces.png") repeat fixed center;
    display: flex;
    justify-content: center;
}

#startCircle {
    height: 80vh;
    width: 80vh;
    background-color: #503a78;
    border-radius: 50%;
    top: 10vh;
    margin: 0% 0%;
    border: 15px solid white;
    outline: 30px solid #503a78;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#startCircle a {
    color: white;
}

#startCircle p {
    text-align: center;
    color: white;
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
    font-size: 27px;
    margin: 1% 10% 3% 10%;
    line-height: 1.3;
}

.greenButton {
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
    font-size: 30px;
    color: white;
    text-decoration: none;
    background-color: green;
    border: 5px solid white;
    border-radius: 20px;
    padding: 20px 28px;
    box-shadow: 5px 5px 0px 3px white;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.5s;
    transition-property: background-color;
    z-index: 30;
}

.greenButton:hover {
    background-color: rgb(0, 173, 0);
}

#question-1 {
    height: 100vh;
    background: url("images/splash-background-gray.jpg") no-repeat fixed center;
    background-size: cover;
    color: white;
    text-shadow: 0px 0px 5px 5px black;
}

.questionArrows {
    background-image: url("images/down-arrows.png");
    background-repeat: repeat-y;
    background-position: center;
    animation: arrowScroll 15s infinite linear;

}

#question-1 .questionColumn {
    background-color: rgba(42, 179, 233, 0.7);
}

#question-2 {
    height: 100vh;
    background: url("images/splash-background-gray.jpg") no-repeat fixed center;
    background-size: cover;
    color: white;
}

#question-2 .questionColumn {
    background-color: rgba(211, 76, 149, 0.8);
}

#question-3 {
    height: 100vh;
    background: url("images/splash-background-gray.jpg") no-repeat fixed center;
    background-size: cover;
    color: white;
}

#question-3 .questionColumn {
    background-color: rgba(244, 120, 32, 0.8);
}

#question-4 {
    height: 100vh;
    background: url("images/splash-background-gray.jpg") no-repeat fixed center;
    background-size: cover;
    color: white;
}

#question-4 .questionColumn {
    background-color: rgba(211, 76, 149, 0.8);

}
#question-5 {
    height: 100vh;
    background: url("images/splash-background-gray.jpg") no-repeat fixed center;
    background-size: cover;
    color: white;
}

#question-5 .questionColumn {
    background-color: rgba(68, 172, 59, 0.7);

}

#question-6 {
    height: 100vh;
    background: url("images/splash-background-gray.jpg") no-repeat fixed center;
    background-size: cover;
    color: white;
}

#question-6 .questionColumn {
    background-color: rgba(42, 179, 233, 0.7);
}

.questionColumn {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-family: 'Heebo', sans-serif;
}

.questionColumn:nth-child(1) {
    width: 40%;
}

.questionColumn:nth-child(2) {
    width: 60%;
}

.questionColumn img {
    width: 65%;
    animation: spaceFloat 1s infinite alternate;
    border-radius: 50%;
}

.questionColumn h2 {
    width: 90%;
    text-align: center;
    text-shadow: 0px 0px 2px black;
}

.questionColumn h3 {
    width: 90%;
    text-align: center;
    font-size: 26px;
    text-shadow: 0px 0px 2px black;
    font-weight: normal;
    line-height: 1.4;
    margin: 20px 0;
}

.questionColumn label {
    width: 85%;
}

.nextQuestionBtn {
    margin-top: 20px;
    background-color: #503a78;
    color: white;
    padding: 10px;
    border-radius: 20px;
    text-decoration: none;
    line-height: 2;
    text-align: center;
    display: block;
    letter-spacing: 1px;
    transition: 0.3s;
    transition-property: background-color; 
}

.nextQuestionBtn:hover {
    background-color: #654a98;
}

input {
    display: none;
}

input[type="radio"] + label {
    cursor: pointer;
    padding: 15px 20px;
    font-size: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition-property: all;
    transition-duration: 0.2s;
}

input[type="radio"] + label:hover {
    background-color: rgba(256,256,256,0.2);
}

input[type="radio"]:checked + label {
    background-color: rgba(0,0,0,0.15);
    font-weight: bold;
    transition-property: all;
    transition-duration: 1s;
}

label div {
    display: none;
    cursor: default;
}

input[type="radio"]:checked + label div {
    font-weight: bold;
    display: block;
    font-size: 18px;
    line-height: 1.4;
}

input[type="radio"]:checked + label div p {
    font-weight: normal;
    margin: 15px 0;
}

input[type="radio"]:checked + label div p a {
    color: rgb(190, 255, 255);
}

input[type="radio"]:checked + label div p a:hover {
    text-shadow: 0 0 5px cyan;
}

#complete {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-image: url("images/big-star.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 107vh;
    background-color: orange;
    justify-content: center;
    align-content: center;
    align-items: center;
    font-family: 'Heebo', sans-serif;
    animation: completeGlow 1s infinite alternate;
}

#complete div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#complete h2 {
    text-align: center;
    font-size: 58px;
    margin: 150px 0 0px 0;
    line-height: 1;
    letter-spacing: 2px;
}

#complete h3 {
    text-align: center;
    font-size: 40px;
    margin: 0 0 10px 0;
    line-height: 1;
    padding-bottom: 10px;
}

#complete p {
    text-align: center;
    max-width: 22%;
    margin: 0px 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
}

#complete div.stars {
    height: 100vh;
    width: 100%;
    float: left;
    position: absolute;
    overflow: hidden;
}

#complete .column1 {
    justify-content: flex-end;
    padding-bottom: 5%;
    box-sizing: border-box;
}

#complete .column2 {
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 1%;
    box-sizing: border-box;
}

#complete .column3 {
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 1%;
    box-sizing: border-box;
}

#complete .column4 {
    justify-content: flex-end;
    padding-bottom: 5%;
    box-sizing: border-box;
}

#complete div.star {
    height: 100%;
    width: 25%;
    display: flex;
}


.rotate {
    width: 45%;
    animation: rotation 20s infinite linear;
}


.rotate2 {
    width: 45%;
    animation: rotation2 20s infinite linear;
}

.confetti {
    width: 15px;
    height: 15px;
    background-color: #f2d74e;
    position: absolute;
    left: 50%;
    animation: confetti 5s linear -4s infinite;
    transform-origin: left top;
  }
  .confetti:nth-child(1) {
    background-color: #f2d74e; left: 10%; animation-delay: 0;
  }
  .confetti:nth-child(2) {
    background-color: limegreen; left: 20%; animation-delay: -5s;
  }
  .confetti:nth-child(3) {
    background-color: #ff9a91; left: 30%; animation-delay: -3s;
  }
  .confetti:nth-child(4) {
    background-color: #f2d74e; left: 40%; animation-delay: -2.5s;
  }
  .confetti:nth-child(5) {
    background-color: #95c3de; left: 50%; animation-delay: -4s;
  }
  .confetti:nth-child(6) {
    background-color: #ff9a91; left: 60%; animation-delay: -0.5s;
  }
  .confetti:nth-child(7) {
    background-color: #f2d74e; left: 70%; animation-delay: -1.5s;
  }
  .confetti:nth-child(8) {
    background-color: #95c3de; left: 80%; animation-delay: -2s;
  }
  .confetti:nth-child(9) {
    background-color: #ff9a91; left: 90%; animation-delay: -3.5s;
  }
  .confetti:nth-child(10) {
    background-color: #f2d74e; left: 100%; animation-delay: -4.5s;
  }
  .confetti:nth-child(11) {
    background-color: #f2d74e; left: 10%; animation-delay: -1s;
  }
  .confetti:nth-child(12) {
    background-color: #95c3de; left: 20%; animation-delay: -0.25s;
  }
  .confetti:nth-child(13) {
    background-color: #ff9a91; left: 30%; animation-delay: -1.25s;
  }
  .confetti:nth-child(14) {
    background-color: cyan; left: 40%; animation-delay: -4.25s;
  }
  .confetti:nth-child(15) {
    background-color: #95c3de; left: 50%; animation-delay: -1.25s;
  }
  .confetti:nth-child(16) {
    background-color: #ff9a91; left: 60%; animation-delay: -3.25s;
  }
  .confetti:nth-child(17) {
    background-color: #f2d74e; left: 70%; animation-delay: -2.25s;
  }
  .confetti:nth-child(18) {
    background-color: #95c3de; left: 80%; animation-delay: -2.75s;
  }
  .confetti:nth-child(19) {
    background-color: limegreen; left: 90%; animation-delay: -3.75s;
  }
  .confetti:nth-child(20) {
    background-color: #f2d74e; left: 100%; animation-delay: -2.75s;
  }

  @keyframes confetti {
    0% { transform: rotateZ(15deg) rotateY(0deg) translate(0,0); }
    25% { transform: rotateZ(5deg) rotateY(360deg) translate(-5vw,20vh); }
    50% { transform: rotateZ(15deg) rotateY(720deg) translate(5vw,60vh); }
    75% { transform: rotateZ(5deg) rotateY(1080deg) translate(-10vw,80vh); }
    100% { transform: rotateZ(15deg) rotateY(1440deg) translate(10vw,110vh); }
  }

@keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
  }

  @keyframes rotation2 {
    from {
      transform: rotate(359deg);
    }
    to {
      transform: rotate(0deg);
    }
  }

@keyframes arrowScroll {
    from {
      background-position-y: 0px;
    }
    to {
        background-position-y: -1200px;
    }
  }

@keyframes arrowScroll2 {
    from {
      background-position-x: 0px;
    }
    to {
        background-position-x: -1200px;
    }
  }

@keyframes bubbleScroll {
    from {
      background-position-x: 0px;
      background-position-y: 0px;
    }
    to {
        background-position-x: -500px;
        background-position-y: -1000px;
    }
  }
@keyframes spaceFloat {
    from {
      margin-top: 0px;
      background-color: rgba(0,0,0,0.15);
      box-shadow: 0px 0px 15px rgba(0,0,0,0.15);
    }
    to {
        margin-top: -20px;    
        background-color: rgba(0,0,0,0.1);
        box-shadow: 5px 10px 10px rgba(0,0,0,0.1);
    }
  }

  @keyframes completeGlow {
      from {
          background-color: orange;
      }

      to {
          background-color: rgb(250, 179, 48);
      }
  }

  /* Small Tablets */
@media (min-width: 321px)and (max-width: 767px) {
    #title h1 {
        background-size: 90vw;
    }

    #title div a {
        position: absolute;
        margin-bottom: 20%;
    }

    #title div .greenButton {
        padding: 18px 30px;
        font-size: 24px;
        margin-bottom: 25%;
    }

    #intro {
        padding: 5%;
    }

    .greenButton {
        padding: 18px 30px;
        font-size: 24px;
    }

    #intro div:nth-child(1) img {
        height: 15vh;
    }

    #intro div:nth-child(1) p {
        font-size: 14px;
        line-height: 1.4;
    }

    #intro div p {
        font-size: 14px;
    }

    #start {
        background-size:70%;
    }

    #startCircle {
        width: 40vh;
        border: 2px solid white;
        outline: 20px solid #503a78;
        border-radius: 10px;
    }

    #startCircle p {
        font-size: 20px;
        margin: 5% 10% 10% 10%;
        line-height: 1.5;
    }

    #question-1 {
        flex-direction: column;
	overflow-y: scroll;
    }

    #question-2 {
        flex-direction: column;
	overflow-y: scroll;
    }

    #question-3 {
        flex-direction: column;
	overflow-y: scroll;
    }

    #question-4 {
        flex-direction: column;
	overflow-y: scroll;
    }

    #question-5 {
        flex-direction: column;
	overflow-y: scroll;
    }

    #question-6 {
        flex-direction: column;
	overflow-y: scroll;
    }

    .questionColumn h2 {
        font-size: 16px;
        margin: 0px 0;
        line-height: 1.2;
    }

    .questionColumn h3 {
        font-size: 17px;
        margin: 10px 0;
        line-height: 1.3;
    }

    .questionColumn:nth-child(1) {
        width: 100%;
        height: 20vh;
    }

    .questionColumn:nth-child(2) {
        width: 100%;
        height: 80vh;
        justify-content: flex-start;
    }

    .questionArrows {
        background-image: none;
    }

    .questionColumn img {
        height: 80%;
        width: auto;
    }

    input[type="radio"] + label {
        font-size: 20px;
        padding: 8px 20px;
        width: 90%;
    }
    
    input[type="radio"] + label p {
        font-size: 14px;
        line-height: 1.3;
        margin: 10px 0;
    }

    .nextQuestionBtn {
        margin-top: 5px;
        padding: 5px;
        font-size: 14px;
    }
    
    #complete h2 {
        font-size: 30px;
        margin: 125px 0 10px 0;
        font-weight: 800;
    }

    #complete {
        background-image: none;
    }

    #complete h3 {
        font-size: 23px;
        margin: 0px 0 10px 0;
    }

    #complete p {
        font-size: 16px;
        max-width: 80%;
    }

  }

  /* Small Desktops */
@media (min-width: 768px) and (max-width: 1096px) {

    #title h1 {
        background-size: 90vw;
    }

    #intro {
        padding: 30% 10% 30% 10%;
        min-height: 100vh;
        flex-direction: column;
        justify-content: space-evenly;
        background-color: #654a98;
        color: white;
        font-family: 'Heebo', sans-serif;
    }

    #intro div:nth-child(1) p {
        font-size: 18px;
    }

    #intro div p {
        font-size: 18px;
    }

    #title div a {
        position: absolute;
        margin-bottom: 10%;
    }

    #start {
        background-size:50%;
    }

    #startCircle {
        height: 65vh;
        width: 65vh;
        border: 10px solid white;
        outline: 20px solid #503a78;
    }

    #startCircle p {
        font-size: 22px;
        margin: 2% 10% 3% 10%;
    }

    .greenButton {
        font-size: 24px;
	padding: 15px 25px;
    }

    .questionColumn img {
        width: 85%;
    }

    .questionColumn h2 {
        margin: 0;
        padding: 0;
        font-size: 20px;
    }

    .questionColumn h3 {
        font-size: 22px;
    }

    input[type="radio"] + label {
        font-size: 22px;
        padding: 10px 20px;
        width: 80%;
    }
    
    input[type="radio"] + label p {
        font-size: 16px;
        line-height: 1.6;
    }

.nextQuestionBtn {
    margin-top: 10px;
    padding: 5px;
}

    #complete h2 {
        font-size: 50px;
        margin: 150px 0 5px 0;
    }

    #complete h3 {
        font-size: 26px;
        margin: 0px 0 5px 0;
    }
    
    #complete p {
        max-width: 53%;
        margin-bottom: 20px;
        line-height: 1.4;
        font-size: 18px;

    }
}

  /* Large Desktops */
@media (min-width: 1097px) and (max-width: 1800px) {
    #title h1 {
        background-size: 70vw;
    }

    #start {
        background-size:40%;
    }

    .greenButton {
        font-size: 26px;
	padding: 15px 25px;
    }

    .questionColumn h2 {
        margin: 0;
        padding: 0;
        line-height: 1.2;
    }

    .questionColumn h3 {
        font-size: 24px;
    }

    input[type="radio"] + label {
        font-size: 26px;
    }

    input[type="radio"]:checked + label div p {
	font-size: 16px;
        line-height: 1.4;
    }

    #complete h2 {
        font-size: 55px;
        margin: 150px 0 5px 0;
    }

    #complete h3 {
        font-size: 35px;
        margin: 0px 0 5px 0;
    }
    
    #complete p {
        font-size: 18px;
        max-width: 35%;
        margin-bottom: 20px;
        line-height: 1.4;
    }
  
  }