body {
width:100%;
height:100%;
min-height: 100vh;
flex-direction: column;
background-image:url('../images/lightbulb2.jpg');
background-attachment:fixed;
background-size:cover;
}

main {
flex: 1 0 auto;
}

/* start welcome animation */

body.welcome  {
background-repeat:no-repeat;
overflow: hidden;
}

.welcome .splash {
height: 0;
padding: 0;
border: 130em solid #039be5;
position: fixed;
left: 50%;
top: 100%;
display: block;
box-sizing: initial;
overflow: hidden;
border-radius: 50%;
transform: translate(-50%, -50%);
animation: puff 0.5s 1.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, borderRadius 0.2s 2.3s linear forwards;
}

.welcome #welcome {
background: #311b92 ;
width: 56px;
height: 56px;
position: absolute;
left: 50%;
top: 50%;
overflow: hidden;
opacity: 0;
transform: translate(-50%, -50%);
border-radius: 50%;
animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards, hide 2s 2.9s ease forwards;
}

/* moveIn */
.welcome header,
.welcome a.btn {
opacity: 0;
animation: moveIn 2s 3.1s ease forwards;
}

@keyframes init {
0% {
  width: 0;
  height: 0;
}
100% {
  width: 56px;
  height: 56px;
  margin-top: 0;
  opacity: 1;
}
}

@keyframes puff {
0% {
  top: 100%;
  height: 0;
  padding: 0;
}
100% {
  top: 50%;
  height: 100%;
  padding: 0 100%;
}
}

@keyframes borderRadius {
0% {
  border-radius: 50%;
}
100% {
  border-radius: 0;
}
}

@keyframes moveDown {
0% {
  top: 50%;
}
50% {
  top: 40%;
}
100% {
  top: 100%;
}
}

@keyframes moveUp {
0% {
  background: #311b92;
  top: 100%;
}
50% {
  top: 40%;
}
100% {
  top: 50%;
  background: #039be5;
}
}

@keyframes materia {
0% {
  background: #039be5;
}
50% {
  background: #039be5;
  top: 26px;
}
100% {
  background: #311b92;
  width: 100%;
  height: 64px;
  border-radius: 0;
  top: 26px;
}
}

@keyframes moveIn {
0% {
  opacity: 0;
}
100% {
  opacity: 1;
}
}

@keyframes hide {
0% {
  opacity: 1;
}
100% {
  opacity: 0;
}
}


h1.flow-text{
font-size: 55px;
margin-top:-1%;
}

h1{
  text-align: center;
  font-size: 44px;
}


h3{
text-align:center;
font-size: 44px;
}

.container {
width: 100%;
}

#go {
opacity: 1;
display:none;
width: 20%;
height: auto;
transition: .5s ease;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
backface-visibility: hidden;
margin-top:7%;
}

#go:hover{
  opacity: 0.5;
  transition: .5s ease;
}

.containerFlex{
  display: flex;
  justify-content: center;
}

.centerButton{
  width:100px;
  font-size: 15px;
  margin-left: 100px;
  margin-right: 100px;
  padding-top: 10px;
}

figure >image{
  width:50%;
}

.text {
background-color: #04AA6D;
width:100%;
color: white;
font-size: 24px;
padding: 17px 34px;
}

p#tip{
text-align:center;
font-size:18px;
display:none;
}

.right{
position: relative;
width:100px;
font-size: 15px;
}

.left{
width:105px;
font-size: 15px;
}

.leftButton{
  width:130px;
  height:5%;
  padding-top: 15px;
  font-size: 15px;
}

.rightButton{
  position: relative;
  width:120px;
  font-size: 15px;
}

#green:hover,#red:hover,#home:hover,#yellow:hover{
cursor: pointer;
}

h2:not(.title){
font-size: 24px;
}

.dot{
background-color:  white;
border-radius: 50%;
display: block;
margin-left: auto;
margin-right: auto;
}


.pointer{
cursor: pointer;
color:green;
font-size: 28px;
}

.answer1{
text-align:center;
display:flex;
}

#thinker{
display:inline-block;
position:relative;
left:45%;
width:10%;
}

.cloud{
display:inline-block;
margin-top:70px;
margin-left:auto;
margin-right: auto;
float:left;
width:900px;
height:100%;
background:#ECEFF1;
box-shadow: 10px 10px rgba(0,0,0,0.2);
border-radius:100px;
font-size: 20px;
}
.cloud::after, .cloud::before{
position:relative;
display:inline-block;
background:inherit;
border-radius:inherit;
}
.cloud::after{
width:100px;
height:100px;
top:-220px;
left:50px;
}
.cloud::before{
width:180px;
height:180px;
top: -70px;
left:130px;
}

#cloud2{
display: inline-block;
position: relative;
float:right;
width:20%;
margin-right: 20px;
margin-top: -10px;
}

#cloud3{
  display:none;
  position: relative;
  float:right;
  width:20%;
  margin-right: 20px;
  margin-top: -10px;
}

.valign{
font-size: 50%;
}

.question{
position: relative;
margin-left: auto;
margin-right: auto
}

#cloudThinker{
display:none;
}

.top{
  display:none;
  position:absolute;
  z-index:2;
}

#home{
  float:right;
  right:15px;
  width:4%;
  position: fixed;
}

.interreg{
  float: left;
  position: fixed;
  width:17%;
}

table{
  margin-top:3%;
  width:40%;
  margin-left: auto;
  margin-right: auto;
}

img{
  width:50%;
  height:auto;
}

.title{
  font-size:34px;
}

*{
  box-sizing: border-box;
}

h3 {
  font-weight: normal;
  font-size: 30px;
}

.question{
  text-align: center;
  position: absolute;
  top:30%;
  left:0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width:1200px;
  font-size:24px;
}

.question#first
{
  top:40%;
}

.question>h2{
  text-align: center;
}

/* iphone X/XS */
@media  only screen and (max-width:751px){

  *{
    touch-action:pan-y;
  }

  body.welcome{
    overflow-y:auto;
  }

  .interreg{
    width: 50%;
  }

  #home{
    width:15%;
  }

  h1.flow-text{
    text-align: center;
    font-size:38px;
    z-index: 2;
    margin-top: 10%;
  }

  h1{
    text-align: center;
    font-size:24px;
    margin-left: -4%;
  }

  .title{
    font-size: 22px;
    line-height: 35px;
    margin-top: 20%;
  }

  .image{
    margin-top: 20%;
    width:130%;
    margin-left:-15%;
  }

  h3{
    margin-top:20%;
  }

  .img:hover{
    opacity:1;
    cursor: pointer;
  }

  .question h2{
    max-width: 60%;
      font-size:20px;
      width:40vh;
      margin-top:8%;
      margin-left:2.5%;
  }

  table{
    position: absolute;
    width:30%;
    top:80%;
  }

  .cloud{
    width:40vh;
    font-size: 15px;
    touch-action:manipulation;
  }

  #cloud2{
    font-size:20px;
    width:30%;
  }


  #cloud3{
    font-size:20px;
    width:30%;
    }

  #thinker{
    width:35%;
    left:30%;
  }

  figure>img{
    width:100%;
  }


  .middle{
    top:80%;
  }

    h2.title{
      width:90%;
    }


}

/* iphone 6 7 8 Plus*/
@media only screen and (max-height:800px){

.middle{
  top:87%;
}

  h2:not(.title){
    margin-left:4%;
  }

}

/* iphone 6 7 8*/
@media only screen and (max-height:700px){

.middle{
  top:75%;
}

.image{
  margin-top: 5%;
}

h2.title{
  width:100%;
}

  h2:not(.title){
    margin-left:4%;
  }
}
/* added to test it */
@media only screen
    and (min-device-width: 375px)
    and (max-device-height: 667px)
    and (-webkit-device-pixel-ratio: 2) {
      h2.title{
        margin-top: 2%;
      }

      h3{
        margin-top: 5%;
      }

      #noTip{
        margin-top: -5%;
      }

      .question >h2{
        margin-top:-3%;
      }
    }

/* desktop */
@media only screen and (min-width: 992px) {
  .middle{
    top:73%;
  }
  body.welcome{
    overflow: hidden;
  }
}
