html {
    background-color: #3c3b91;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background: #4847af;
    color: #fff;
    text-align: center;
}

main {
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 28px;
    text-transform: uppercase;
    display: none;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

h4 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

p {
    font-size: 12px;
    line-height: 1.7;
}

img {
    margin: 0 auto;
    width: 100%;
}

header {
    position: relative;
    width: 100%;
    background-color: #3c3b91;
    padding: 20px 0;
}

header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding-left: 0;
}

header nav ul li {
    flex: 1;
}

header nav ul li:nth-child(1) {
    font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
    font-size: 20px;
}

header nav ul li:nth-child(2),
header nav ul li:nth-child(3),
header nav ul li:nth-child(4),
header nav ul li:nth-child(5) {
    display: none;
}

header nav ul li a {
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

#enneagram-icon {
    width: 40px;
}

#enneagram-logo {
    max-width: 400px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.enneagram-type-icon {
    max-width: 350px;
}

section.intro {
    margin: 20px auto 0 auto;
    padding: 15px;
    max-width: 800px;
}

section#enneagram-intro {
    margin: 0 auto;
    padding: 15px;
    max-width: 800px;
}

section.enneagram-types,
section#instincts {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 10px;
    margin: 0 auto;
    padding: 10px;
    max-width: 450px;
}

.triad-icon {
    max-width: 300px;
}

section > article {  
    background-color: #575abe;
    padding: 20px 20px 30px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
}

p.adjectives {
    margin-bottom: 24px;
    font-style: italic;
}

.instinct-icon {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    display: block;
    font-size: 80px;
    font-weight: bold;
    margin: 30px auto 50px auto;
}

footer {
    background-color: #3c3b91;
    padding: 80px 0;
    width: 100%;
}

.type-question {
    margin: 0;
    margin-bottom: 30px;
    font-style: italic;
    font-size: 14px;
}

.button {
    display: block;
    margin: 0 auto;
    color: #fff;
    background-color: #575abe;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    padding: 15px;
    width: 200px;
    border-radius: 3px;
    transition: all ease-in 0.2s;
    -webkit-transition: all ease-in 0.2s;
    -moz-transition: all ease-in 0.2s;
    -o-transition: all ease-in 0.2s;
}

a.button:hover {
    background-color: #5a5ec7;
}

@media screen and (min-width: 480px) {
    h1 {
        display: block;
    }
    .button {
        width: 360px;
    }
    .type-question {
        font-size: 20px;
    }
}

@media screen and (min-width: 768px) {
    header {
        position: fixed;
        top: 0;
    }
    p {
        font-size: 14px;
    }
    section#enneagram-intro {
        max-width: 950px;
        padding-top: 75px;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 28px;
    }
    section.enneagram-types,
    section#instincts {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    section.intro {
        margin: 50px auto 20px auto;
        max-width: 950px;
    }
    .instinct-icon  {
        font-size: 100px;
        margin: 40px auto 60px auto;
    }
}

@media screen and (min-width: 1024px) {
    h1 {
        font-size: 36px;
    }
    h2  {
        font-size: 32px;
    }
    section.intro p {
        font-size: 18px;
    }
    section.enneagram-types,
    section#instincts {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1440px;
    }
    header nav ul li:nth-child(2),
    header nav ul li:nth-child(3),
    header nav ul li:nth-child(4),
    header nav ul li:nth-child(5) {
        display: block;
    }
}