/* TYPOGRAPHY */

body {
    font-family: "Montserrat";
}

h1 {
    text-indent: -0.45em;
}

h1, h1 b, #sitePageForm header .firstQuote, h2, h3, h3 b, #sitePageResults article .firstQuote, button, input, label, .hint {
    line-height: 100%;
}

h1, h1 b {
    font-size: 48px;
}

h1, h1 b, button, label, input[type="submit"] {
    font-weight: 700;
}

h2 {
    font-weight: 900;
    letter-spacing: 0.05em;
}

h2, h3, h3 b {
    font-size: 40px;
}

h3, h3 b {
    font-weight: 800;
    text-transform: capitalize;
}

h3 {
    text-indent: -0.45em;
}

p, p b, label {
    font-size: 16px;
}

p, input, .hint {
    font-weight: 400;
}

p, p b {
    line-height: 200%;
}

p b {
    font-weight: 600;
}

button, input, .hint {
    font-size: 14px;
}

button, input {
    letter-spacing: 0.1em;
}


/* COLORS */

body {
    background-color: #202020;
}

h1 {
    color: #fff;
}

h1 b {
    color: #DA1333;
}

header p {
    color: #fff;
}

h2 {
    border-bottom: 2px solid #DA1333;
    color: #fff;
    background-color: #213775;
}

form {
    color: #213775;
    background-color: #fff;
}

input[type="text"] {
    color: #213775;
    border: 1px solid #213775;
    border-radius: 0;
}

input[type="text"]:focus {
    outline: #DA1333;
    border: 1px solid #DA1333;
}

.continue, input[type="submit"] {
    border: none;
    color: #fff;
    background-color: #DA1333;
}

.continue:focus, input[type="submit"]:focus {
    background-color: #A70001;
}

.goBack {
    border: 1px solid #213775;
    color: #213775;
    background-color: #fff;
}

.goBack:focus {
    background-color: #e6e6e6;
}

#sitePageResults article {
    background-color: #fff;
}

h3 {
    color: #213775;
}

h3 b {
    color: #DA1333;
}

p {
    color: #202020;
}

p b {
    color: #DA1333;
}

.hidden {
    color: #fff;
}


/* MOBILE LAYOUT */

* {
    box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

header {
    margin: 0 2em 0 2em;
}

header p {
    margin-bottom: 2em;
}

img {
    margin: auto;
}

h2 {
    margin-top: 1.2em;
    margin-bottom: 0;
    padding: 1em;
}

form {
    margin-top: 0;
}

form div {
    padding: 3em;
}

input[type="text"] {
    margin: 1em 0 0.5em 0;
    padding: 1em;
}

button, input {
    display: block;
}

.hint {
    margin: 0.5em 0 2em 0;
}

.continue, .goBack, input[type="submit"] {
    padding: 1em 2em;
}

div[class="buttons"] {
    display: flex;
    gap: 1em;
    padding: 0;
}

#sitePageForm, #sitePageResults {
    margin: 5em 0 5em 0;
}

#sitePageResults article {
    display: flex;
    flex-direction: column;
    margin-top: 2.5em;
    padding: 3em 2em;
}

h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
}

#sitePageResults article button {
    align-self: flex-end;
    margin-top: 2.3em;
}

article p {
    margin: 0.5em 0 0.5em 0;
}

.displayNone {
    display: none;
}



/* DESKTOP STYLES */

@media screen and (min-width: 800px) {

    /* DESKTOP LAYOUT */

    body > div {
        display: flex;
        gap: 5vw;
        max-width: 1200px;
        margin: 0 auto 0 auto;
    }

    #sitePageForm {
        margin: 0 auto 0 auto;
    }

    header {
        flex: 1;
        margin-top: 5em;
    }

    main {
        flex: 1;
    }

    h1 {
        margin-top: 0;
    }

    h2 {
        margin-top: 0;
    }

    body > div:last-child {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        margin: 0 auto 0 auto;
        flex-direction: row-reverse;
        background-color: #202020;
    }

    #sitePageResults {
        height: 100vh;
        margin: 0 auto 0 auto;
        transition: all 1s;
    }

    #sitePageResults article {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        margin-top: 0;
        padding: 3em;
    }

    #sitePageResults div[class="buttons"] {
        display: flex;
        justify-content: end;
    }

    img {
        flex: 1;
    }

    .displayNone {
        display: none;
    }

    /* HOVER BEHAVIOUR */

    .continue:hover, input[type="submit"]:hover {
        background-color: #A70001;
    }

    .goBack:hover {
        background-color: #e6e6e6;
    }
}