body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

#adContainer {
    width: 100%;
    height: 100vh;
    max-width: 600px;
    position: absolute;
    overflow: hidden;
    display: block;
    background: url('loading.png') center center no-repeat black;
}

#contents {
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;
    background-color: gray;
    overflow: hidden;
    visibility: hidden;
}

img {max-width: 100%; display: block; overflow: hidden;}

#close {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    z-index: 1000;
    background-image: url('close.png');
}

#exit {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
}

/* LANDSCAPE CONTROL */
#rotate {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background: url('rotation.png') center center no-repeat black;
    display: none;
}


@media only screen and (orientation: landscape) {
    #adContainer {max-width: 100%;}
    #rotate {display: block;}
  }

/* START STYLING HERE */
/* @import url('video.css');
@import url('carousel.css'); */

#intro {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: url('intro-bg.jpg') center bottom;
    background-size: cover;
}

#q1, #q2, #q3, #q4 {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    background: #004458;
    flex-direction: column;
    visibility: hidden;
    text-align: center;
    top: 0;
    left: 0;
    justify-content: flex-end;
    align-items: center;
}

#final {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    background: #004458;
    flex-direction: column;
    visibility: hidden;
    text-align: center;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

#q1, #q2, #q3, #q4 {
    background: url('quiz-bg.jpg') center bottom;
    background-size: cover;
}

.answers {
    margin-bottom: 8vh;
}

#logo {
    width: 50%;
    left: 25%;
    position: absolute;
    top: 3%;
    transform: translateY(-300%);
}
#startbtn {
    position:absolute;
    width: 60%;
    left: 20%;
    bottom: 5%;
    transform: translateY(300%);
}

.ans {
    width: 80%;
    font-size: 1em;
    display: inline-block;
    background: #ffffff;
    border-radius: 20px;
    height: 40px;
    line-height: 40px;
    margin-top: 3%;
    margin-bottom: 3%;
}

#introText {
    width: 100%;
    margin-bottom: 10%;
    transform: scale(0);
}

#gameLogo {
    width: 90%;
    transform: scale(0);
}

.fig {
    width: 50%;
    margin-bottom: 5%;
}

#finalImg {
    width: 100%;
    margin-bottom: 5%;
}

#score {
    font-size: 3em;
    color: #ffffff;
    font-weight: 900;
}

#rating {
    font-size: 1.3em;
    color: #ffffff;
}

#cta {
    width: 50%;
    left: 25%;
    position: absolute;
    bottom: 5%;
}