html{
    font-size: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}
body{
    font-size: 1.6rem;
    font-family: "Afacad", sans-serif;
}
/* ------------------------ */
nav{
    position: fixed;
    right: 5px;
    background-color: white;
    border-radius: 10px;
}
a{
    color: black;
    text-decoration: none;
    transition: all 0.2s;
    padding: 5px;
    height: fit-content;
}
a:hover{
    color: dimgrey;
    text-decoration: underline;
}

header{
    text-align: center;
    display: grid;
    width: fit-content;
    margin: auto;
    padding: 0;
    line-height: 5em;
}

h1{
    text-transform: uppercase;
}

#intro{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: deeppink;
    border-radius: 0 33.33vw 0 33.33vw;
    width: 66.67vw;
    height: fit-content;
    margin: auto;
    gap: 10px;
}

#grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    margin: 10px;
}

.question{
    grid-column: span 4;
    padding: 5px;
    height: fit-content;
}
#q1{
    grid-column-start: 2;
    grid-column-end: 6;
    outline: dotted 5px deeppink;
}
#q2{
    grid-column-start: 8;
    grid-column-end: 12;
    background-color: deepskyblue;
    border-radius: 0 0 33.33vw 33.33vw;
    margin-top: 150px;
}
#q3{
    grid-column-start: 5;
    grid-column-end: 9;
    outline: solid 5px deepskyblue;
    border-radius: 0 0 5vw 0;
}
#q4{
    background-color: deeppink;
    border-radius: 16.67vw 0 16.67vw 0;
}
#q5{
    border-top: solid gold 5px;
    border-left: solid gold 5px;
}

#shape{
    position: absolute;
    z-index: -1;
    background-color: gold;
    width: 80vh;
    height: 80vh;
    border-radius: 50%;
    left: -40vh;
    top: 150vh;
    outline: solid 5px gold;
    outline-offset: 5px;
}

h2{
    letter-spacing: -0.08rem;
    font-weight: 500;
    margin-top: 0;
    line-height: 1.15em;
}

p{
    letter-spacing: -0.05rem;
    word-spacing: 0.15rem;
    text-indent: 2em;
    margin: 0;
}
.first{
    text-indent: 0;
}

img{
    width: 50%;
    grid-column: span 8;
    padding: 16.67vw;
    padding-top: 0;
    padding-bottom: 0;
}

#takeOff{
    position: relative;
    grid-column: span 8;
    background-color: gold;
    border-radius: 40vh;
    padding-top: 5px;
    outline: solid 5px gold;
    outline-offset: 5px;
    
}

.colour{
    position: absolute;
    background-image: url("../img/toc.png");
    background-size: contain;
    background-repeat: no-repeat;
    left: 16.67vw;
    right: 15.2vw;
    top: 5px;
    bottom: 0;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.colour:hover{
    opacity: 1;
}

#footer{
    position: relative; 
    grid-column: span 12; 
    text-align: right; 
    border-radius: 50px 50px 0 0; 
    background-color: deepskyblue; 
    margin-bottom: -10px;
    margin-top: 5px;
    padding-right: 10px;
}

#footer:hover{
    color: white;
}

/* --------Animations-------- */
header :hover{
    animation: float 2s ease-in-out infinite;
}
@keyframes float{
    0%{transform: translateY(0px);}
    25%{transform: translateY(-20px); color: deeppink;}
    50%{transform: translateY(5px); color: gold;}
    75%{transform: translateY(-10px); color: deepskyblue;}
    100%{transform: translateY(0px); color: black;}
}