body{
    background-color: #111419;
    font-family: Calibri, 'Trebuchet MS', sans-serif;
}
em{
    font-style: normal;
    font-weight: bold;
}

#start{
    width: 100vw;
    height: 100vh;
    position: relative;
    /* position: fixed; */
    background-color: #111419;
    color: #fbfaf3;
    z-index: 1;
}
#start>h1{
    font-family: 'Kalam', cursive;
    position: fixed;
    top: 50vh;
    left: 50vw;
    width: 500px;
    transform: translate(-50%,-50%);
    line-height: 10px;
}
#start>h1>span{
    font-size: 80pt;
    line-height: 1em;
    letter-spacing: normal;
    display: inline-block;
    /* animation: jump .4s ease-in-out var(--delay) infinite; */
    
}
@keyframes jump {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }

#start>h1 svg {
    position: absolute;
    bottom: -10px;
    left: 30px;
    stroke-dasharray: 210px;
    stroke-dashoffset: 0px;
}
#checkAnimateStart{
    display: none;
}
@keyframes tick {
    0%, 50% {
      stroke-dashoffset: 210px;
    }
    50%, 100% {
      stroke-dashoffset: 0px;
    }
}
#checkAnimateStart:checked ~ span{
    animation: jump .4s ease-in-out var(--delay); 
}





#clickRoll{
    display: none;
    position: fixed;
    top: -100;
    left: -100;
    z-index: 1;
}
#clickRoll:checked ~ .containerHome{
    overflow-y: scroll;
}
.containerHome{
    height: 100vh;
    width: 100vw;
    /* z-index: 0; */
    scroll-snap-type: y mandatory;
    position: absolute;
    overflow: hidden;
}




.page{
    scroll-snap-align: start;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background-color: #111419;
    color: #fbfaf3;
    box-sizing: content-box;
}
.text{
    z-index: 40;
    font-family: inherit;
    font-size: 20pt;
    line-height: 30pt;
}
div.rainNormal,div.rainAbnormal{
    /* width: inherit; */
    width: 100vw;
    height: 100vh;
    position: absolute;
    /* position: relative; */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 25;
    background-color: transparent;
    /* background-color: #222a5b; */
}
div#rain0{
    opacity: 0;
    /* opacity: 1; */
    /* background-color: #111419; */
    transition: opacity 3s linear;
}
div#test{
    position: relative;
    top: 50%;
    left: 50%;
}
div.drop{
    box-sizing: border-box;
    position: absolute;
    top: -200px;
    height: 150px;
    width: 3px;
    background: linear-gradient(#111419, transparent);
    background-color: #fbfaf360;
    z-index: 30;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    
    animation: rain 15s linear infinite;
}
@keyframes rain {
    0% {
        transform: translateY(0) scale(1);
    }

    70% {
        transform: translateY(100vh) scale(1);
    }

    100% {
        transform: translateY(120vh) scale(0);
    }
}



#page0{
    /* background-color: #111419; */
    color: #fbfaf3;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: transparent;
}
#hintScroll{
    position: absolute;
    top: 0;
    z-index: 25;
    width: 100vw;
    height: 5px;
    background-color: #accaff;
}
#page0 div#clickStart{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 200px;
    height: 200px;
    display: flex;
	justify-content: center;
	align-items: center;
    border-radius: 50%;
    text-align: center;
    z-index: 30;
    cursor: pointer;
}
#clickStart span{
    color: #111419;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 36px;
    z-index: 50;
    position: absolute;
    transition: opacity 1s linear;
}
#clickStart span#clickRollSpan{
    opacity: 0;
    transition: opacity 1s linear;
    transition-delay: 1s;
}
.buttonWaves{
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 30;
    background-color: #fbfaf3;
    opacity: .5;
    animation: rotate 6.5s linear infinite alternate;
}
.buttonWaves:nth-of-type(1){
    opacity: .6;
    border-radius: 47%;
    z-index: 40;
}
.buttonWaves:nth-of-type(2){
    border-radius: 45%;
    animation-delay: .35s;
    animation-direction: reverse;
}
.buttonWaves:nth-of-type(3){
    border-radius: 43%;
    animation-delay: 1s;
}

@keyframes rotate {
    0%{
        transform: rotateZ(0deg);
    }
    20%{
        transform: rotateZ(72deg) scaleY(0.9);
    }
    80%{
        transform: rotateZ(288deg) scaleX(1.05);
    }
    100%{
        transform: rotateZ(360deg);
    }
}
.coverTitle{
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 100vh;
    width: 100vw;
    background-color: #111419;
    /* opacity: 0; */
}





#page1{
    /* color: #f9f5da; */
    position: relative;
    background-color: transparent;
    color: #fbfaf3;
    display: flex;
    justify-content: center;
    align-items: center;
}
div.dropless{
    box-sizing: border-box;
    position: absolute;
    top: -200px;
    height: 150px;
    width: 3px;
    background: linear-gradient(#111419, transparent);
    background-color: #fbfaf380;
    z-index: 30;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    
    animation: rain 17s linear infinite;
}
#descriptionText{
    justify-self: center;
    align-self: center;
    font-size: 16pt;
    line-height: 150%;
    height: 27.4pt;
    /* background-color: #eee; */
    overflow: hidden;
    display: flex;
    justify-content: center;
    --descriptionTrans: 0;
}
.descriptionSpan{
    display: inline-block;
    opacity: var(--descriptionTrans);
    transition: opacity .5s linear;
    transition-delay: calc(var(--descriptionDelay) * 2.5);
}
#checkAnimate1{
    position: absolute;
    top: 500px;
    left: 30px;
    z-index: 10000;
    display: none;
}
#checkAnimate1:checked ~ #descriptionText{
    --descriptionTrans: 1;
}


.pieChart{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    width: 30vw;
    height: 90vh;
    opacity: 0;
    position: absolute;
    z-index: 40;
    top: 20vh;
    transform: translate(-10% -33%);
    transition: all .2s ease-in-out;
}
#pieChart1{
    left: 6vw;
}
#pieChart2{
    left: 35vw;
}
#pieChart3{
    left: 65vw;
}

.piecontainer{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30vh;
    width: 30vw;
}

.pieCover{
    color: #fbfaf3;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 40;
    font-size: 40pt;
    font-family: 'Montserrat-Bold', sans-serif;
    font-weight: bolder;
}
.pieDescription{
    /* align-self: flex-start; */
    display: flex;
    justify-content: center;
    color: #fbfaf3;
    flex-direction: column;
    /* padding: 1.5vw; */
    opacity: inherit;
    transition: all 1s ease-in-out;
    animation-delay: .2s;
    width: 20vw;
}
.pieDescription>h2{
    font-weight: bold;
    /* padding-top: 7vh; */
    text-align: center;
    margin-block: 0;
    display: block;
    width: 20vw;
    color: #accaff;
    align-self: baseline;
    line-height: 1;
    font-size: 30pt;
}
.pieDescription>span{
    padding-top: 12pt;
    text-align: center;
    font-size: 15pt;
    line-height: 1.5;
}
.pieIcon{
    height: 10vw;
    width: 10vw;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 40;
}
#pieIcon1{
    background-image: url(https://static.igem.wiki/teams/4307/wiki/wikihomepagefiles/piepicture1.png);
}
#pieIcon2{
    background-image: url(https://static.igem.wiki/teams/4307/wiki/wikihomepagefiles/piepicture2.png);
}
#pieIcon3{
    background-image: url(https://static.igem.wiki/teams/4307/wiki/wikihomepagefiles/piepicture3.png);
}
#checkAnimate2{
    position: absolute;
    top: 90vh;
    z-index: 1000;
    display: none;
}
#checkAnimate2:checked ~.pieChart{
    opacity: 1;
}


#page3{
    position: relative;
    background-color: #111419;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}
#three-one{
    text-align: center;
    width: 80vw;
    font-size: 20pt;
    line-height: 30pt;
}
.clickToSpeak{
    opacity: 0;
    transition: all .3s ease-in-out;
    position: absolute;
    top: 30vh;
    color: #fbfaf3;
    left: 10vw;
    text-align: center;
    font-size: 25pt;
    width: 20vw;
    animation: bounce .2s linear infinite alternate;
    animation-play-state: paused;
}
.clickToSpeakArrow{
    position: absolute;
    top: 110%;
    left: 50%;
    border: solid #fafbf3;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg) translate(-50%, -50%);
}
@keyframes bounce {
    0%{
        transform: translateY(0%);
    }
    100%{
        transform: translateY(10px);
    }
}
@keyframes arrowBounce {
    0%{
        transform: rotate(45deg) translate(-50%, -50%);
    }
    100%{
        transform: rotate(45deg) translate(0%, 0%);
    }
}
.dialogContainer1,.dialogContainer2{
    position: absolute;
    top: 55%;
    left: 60vw;
    transform: translate(-50%,-50%);
    /* background-color: #fafbf3; */
    background-size: 95%;
    background-position: 0 50%;
    background-repeat: no-repeat;
    height: 40vw;
    width: 60vw;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 0;
    transition: all .3s linear;
}
.dialogContainer1{
    opacity: 0;
    background-image: url("https://static.igem.wiki/teams/4307/wiki/wikihomepagefiles/white-dialogue.png");
}
.dialogContainer1>.dot{
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #11141980;
    position: absolute;
    top: 48%;
    animation: dotJump 1.8s infinite linear;
}
.dialogContainer1>.dot:nth-child(1){
    left: 30%;
}
.dialogContainer1>.dot:nth-child(2){
    left: 40%;
    animation-delay: .3s;
}
.dialogContainer1>.dot:nth-child(3){
    left: 50%;
    animation-delay: .6s;
}
.dialogContainer1>.dot:nth-child(4){
    left: 60%;
    animation-delay: .9s;
}
.dialogContainer1>.dot:nth-child(5){
    left: 70%;
    animation-delay: 1.2s;
}

@keyframes dotJump {
    0%{
        transform: translate(-50%,50%);
    }
    8%{
        transform: translate(-50%,-50%);
    }
    16%{
        transform: translate(-50%,50%);
    }
    100%{
        transform: translate(-50%,50%);
    }
}
.dialogContainer2{
    color: #fafbf3;
    opacity: 1;
    min-height: 25vw;
    background-image: url(https://static.igem.wiki/teams/4307/wiki/wikihomepagefiles/dashed-dialogue.png);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialogText{
    width: 45vw;
    text-align: left;
    transform: translateX(3%);
}
#checkAnimate3{
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 10%;
    display: none;
}
#checkAnimate3:checked ~ .dialogContainer1{
    opacity: 1;
    z-index: 1;
}
#checkAnimate3:checked ~ .dialogContainer2{
    z-index: 1;
    opacity: 0;
}
#checkAnimate3:checked ~ .clickToSpeak{
    opacity: 1;
    animation-play-state: running;
}
.spermie{
    position: absolute;
    top: 40vh;
    height: 50vh;
    width: 20vw;
    left: 10vw;
    overflow: visible;
    transform-origin: center;
    animation: spermFloat 2s infinite alternate linear;
}
.spermie img{
    width: 20vw;
    height: auto;
}
@keyframes spermFloat {
    0%{
        transform: translateY(-2%) scale(125%);
    }
    100%{
        transform: translateY(0) scale(128%);
    }
}



#page4{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111419;
}
#four-one{
    filter: blur(1px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-140%, -25%) scaleX(150%) scaleY(130%);
    z-index: 40;
    background: #fafbf3;
    transform-origin: center;
    border-radius: 50%;
    box-shadow: #fafbf3 320px -80px 0 -20px,  
                #fafbf3 100px -100px 0,          
                #fafbf3 150px 50px,          
                #fafbf3 300px 75px 0 -50px,
                #fafbf3 400px 25px 0 -25px;
    height: 250px;
    width: 275px;
    animation: cloudFloat 3s infinite alternate linear;
}
.cloudDialogue{
    position: absolute;
    top: 48%;
    left: 52%;
    color: #111419;
    text-align: center;
    font-size: 20pt;
    line-height: 30pt;
    transform: translate(-50%, -20%);
    width: 40vw;
    z-index: 45;
}
.cloudDialogue em{
    color:#6c98e7;
}
@keyframes cloudFloat {
    0%{
        transform: translate(-140%, -25%) scaleX(150%) scaleY(130%);
    }
    100%{
        transform: translate(-140%, -30%) scaleX(155%) scaleY(133%);
    }
}




#page5{
    color: #fbfaf3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111419;
    flex-wrap: wrap;
    /* justify-content: space-evenly; */
}
#five-one{
    margin-top: 15vh;
    width: 70vw;
    font-size: 15pt;
    line-height: 24pt;
}
#five-two{    
    --light-color: rgb(243, 237, 225);

    width: 70vw;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
#page5>#buttonsDescription{
    /* position: absolute; */
    font-size: 12pt;
    height: fit-content;
    transform: translate(5px,3vh);
    width: 70vw;
}

#roller{
    list-style: none;
    border-radius: 12px;
    background-color: #fafbf3;
    margin: 0;
    padding: 0;
    position: relative;
    width: 58vw;
    height: 60vh;
    overflow: hidden;
} 
#roller li {
    width: 60%;
    height: 100%;
    padding-top: 25%;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-weight: bold;
    font-size: 14.4pt;
    color: #303030;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    z-index: 20;
    transition: opacity .1s ease-in-out;
}
#roller li span{
    width: 80%;
}
#first{
    opacity: 1;
    display: flex;
    height: inherit;
    z-index: 10;
    position: absolute;
    width: 100%;
    right: 0;
}
.spermieAtHome{
    width: 25vw;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.spermieAtHome img{
    width: 25vw;
    height: 25vw;
}


ul#buttons{
    list-style: none;
    display: flex;
    font-family: Helvetica;
    flex-direction: column;
    height: 60vh;
}

li.button{
    position: relative;
	display: flex;
    margin-bottom: 15px;
    margin-right: 20px;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	overflow: hidden;
    font-size: 14.4pt;
    border-radius: 5px;
    background-color: #fbfaf3;
    color: #303030;
    height: 10vh;
    width: 10vw;
}
.button a{
    z-index: 10;
    text-decoration: none;
    color: #303030;
    text-transform: uppercase;
    letter-spacing: 2px;
} 
.button a:hover,.button a:focus,.button a:visited{
    color: #303030;
}


li.button:nth-of-type(1) .back{
    left: -50%;
	bottom: -50%;
	background: #accaff;
}
li.button:nth-of-type(2) .back{
    right: -50%;
	bottom: -50%;
	background: #accaff;
}
li.button:nth-of-type(3) .back{
    left: -50%;
	top: -50%;
	background: #accaff;
}
.back{
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    z-index: 5;
    transition: all 1s cubic-bezier(0.1, 0.22, .3, 1);
}
.button:hover .back{
    width: 300%;
    height: 300%;
}
.rollItem:nth-of-type(1){
    opacity:1;
}

.bulb{
    width: 50%;
    height: inherit;
    position: relative;
}
.bulb-container{
    width: 50%;
    height: 50%;
    transform: scale(.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    overflow: visible;
    top: 25px;
    left: 0;
}
.light{
    position: relative;
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 50%;
}
.light::before{
    position: absolute;
    content: '';
    width: 35px;
    height: 60px;
    /* background: var(--light-color); */
    border-radius: 10px;
    left: 27.5%;
    top: -25px;
    border-top: 30px solid black;
}

.wire{
    position: absolute;
    width: 4px;
    height: 160px;
    background: #000;
    top: -40%;
    background: #8f8e8e;
    z-index: inherit;
}
.light::after{
    position: absolute;
    content: '';
    width: 50px;
    height: 50px;
    background: var(--light-color);
    /* background-color: red; */
    border-radius: 50%;
    border-style: dotted;
    border-width: 2px;
    border-color: #000;
    top: 50%;
    left: 30%;
    filter: blur(40px);
    transform: translate(-18%, -40%);
    box-shadow: 0 0 100px var(--light-color),
                0 0 200px var(--light-color),
                0 0 400px var(--light-color),
                0 0 500px var(--light-color),
                0 0 1000px var(--light-color),
                0 0 300px var(--light-color),
                0 0 600px var(--light-color),
                0 0 100px var(--light-color),
                0 0 200px var(--light-color),
                0 0 300px var(--light-color),
                0 0 600px var(--light-color);

}
#checkAnimate5{
    position: absolute;
    top: 90vh;
    z-index: 1000;
    display: none;
}
#checkAnimate5:checked ~ #five-two{
    --light-color:#f4d95f;
}





#page6>#six-one{
    position: absolute;
    top: 20vh;
    left: 10vw;
    width: 55vw;
    text-align: justify;
    height: 15vh;
}
#flowerGrowing,#flowerDone,#grassPage6{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 140vw;
    transition: opacity .2s ease;
    z-index: 42;
}
#flowerGrowing{
    /* background-size: cover; */
    transition: opacity .5s ease;
    transition-delay: 3s;
}
#flowerDoneGIF{
    width: inherit;
    height: inherit;
    opacity: 0;
    transition: opacity .2s ease;
    transition-delay: 3s;
}
#flowerGrowGIF,#grassLandPage6{
    width: inherit;
    height: inherit;
}



@media screen and (max-width: 900px) {
    #grassPage0{
        width: 200vw;
        height: auto;
    }
    .flowers{
        width: 100vw;
        height: auto;
        background-color: #fff;
        transform: translate(0px, 100px) rotate(0deg) !important;
    }
    #descriptionText{
        font-size: 16pt;
    }
    #page2{
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding-top: 5vh;
    }
    .pieChart{
        width: 90vw;
        height: 20vh;
        margin-top: 10vh;
        margin-left: 5vw;
        position: static;
    }
    .piecontainer{
        width: 30vw;
        flex-direction: column;
    }
    .pieIcon{
        width: 20vw;
        height: 20vw;
    }
    .pieDescription{
        height: 30vh;
        width: 60vw;
    }
    .pieDescription h2{
        width: 100%;
    }
    #descriptionText{
        width: 80vw;
        height: fit-content;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .clickToSpeak{
        width: 50vw;
        left: 0;
        top: 19vh;
        font-size: 16pt;
    }
    .spermie{
        top: 28vh;
        left: 0;
        width: 50vw;
    }
    .spermie img{
        width: 50vw;
    }
    .dialogContainer1,.dialogContainer2{
        background-image: none;
        font-size: 16pt;
        line-height: 180%;
    }
    #four-one{
        display: none;
    }
    .cloudDialogue{
        top: 30%;
        left: auto;
        transform: none;
        height: fit-content;
        width: 80vw;
        padding: 3vw;
        color: #fafbf3;
    }
    div.rainNormal,div.rainAbnormal{
        display: none;
    }
    #start #bigTitle{
        width: 80vw;
        position: absolute;
        left: 55%;
        top: 40%;
    }
    #start .titleSpan{
        font-size: 60pt;
    }
    #page5{
        align-items: start;
    }
    #five-one{
        margin-top: 18vh;
        width: 75vw !important;
        margin-bottom: -6vh;
    }
    #buttonsDescription{
        height: auto;
        margin-bottom: -3vh;
        transform: none;
        width: 75vw !important;
    }
    #five-two{
        flex-direction: column;
        width: 100vw;
        justify-content: center;
        align-items: center;
    }
    #buttons{
        flex-direction: row !important;
        width: 75vw;
        justify-content: space-around;
        align-items: center;
        height: 7vh !important;
    }
    .button{
        font-size: 12pt !important;
        width: 23vw !important;
        height: 4vh !important;
        margin: 0 !important;
    }
    #roller{
        width: 75vw;
        height: 40vh;
    }
    #roller li{
        width: 100%;
    }
    .spermieAtHome{
        width: 70%;
    }
    .spermieAtHome img{
        width: 50vw;
        height: 50vw;
    }
    .bulb{
        width: 50%;
    }
    .bulb-container{
        transform: translateY(-100%);
    }
    .light{
        background-color: transparent;
    }
    .wire{
        background-color: transparent;
    }
    .light::before{
        border: none;
    }
    #six-one{
        text-align: left !important;
        font-size: 16pt;
        width: 70vw !important;
    }
    #flowerGrowing, #flowerDone, #grassPage6{
        width: 300vw;
        left: -90vw;
        bottom: 7vh;
    }
    .cloudDialogue{
        font-size: 16pt;
    }
    .cloudDialogue em{
        color: #accaff !important;
    }
    #five-one{
        font-size: 16pt;
    }
}

@media screen and (min-width: 1825px) {
    div#clickStart{
        transform: translate(-50%,-50%) scale(1.5) !important;
    }
    #flowers-left {
        transform: translateX(-650px) rotate(15deg) translateY(100px) scale(.9) !important;
    }
    #flowers-right{
        transform: translateX(1000px) rotate(-30deg) scaleX(-1) !important;
    }
    #start>h1{
        line-height: 12.5px;
    }
    #start>h1>span{
        font-size: 100pt;
        line-height: 1em;
    }
    .text{
        font-size: 25pt;
        line-height: 37.5pt;
    }
    #clickstart span{
        font-size: 45px;
    }
    #descriptionText{
        font-size: 22.5pt;
    }
    .pieCover{
        font-size: 50pt;
    }
    .pieDescription>h2{
        font-size: 37.5pt;
    }
    .pieDescription>span{
        font-size: 19pt;
    }
    #three-one{
        font-size: 25pt;
    }
    .clickToSpeak{
        font-size: 31.5pt;
    }
    .cloudDialogue{
        font-size: 25pt;
    }
    #five-one{
        font-size: 22.5pt;
    }
    #page5>#buttonsDescription{
        font-size: 15pt;
    }
    #roller li{
        font-size: 18pt;
    }
    li.button{
        font-size: 18pt;
    }
    #descriptionText{
        height: 33pt;
    }
}
