﻿/* // TODO: RH - Break this up. Use bundling and minification. */

/* Reset */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Layout */

html {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
}

input, select {
    font-size: 1rem;
}

header {
    background-color: #333B3B;
    padding: 1rem;
    background: url('/shared-web/images/banner-bg.png') #333B3B;
    background-position: top center;
    background-repeat: no-repeat;
    color: #FFFFFF;
}

    header h1 {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    header .login-details {
        float: right;
    }

main > .container > section {
    padding: 1rem;
    background-color: #FFFFFF;
}

section > h1 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

    p:last-child {
        margin-bottom: 0;
    }

footer {
    text-align: center;
    padding: 0 0 1rem 0;
    color: #FFFFFF;
    font-size: 0.75rem;
    background-color: #333B3B;
}

    footer > ul {
        list-style: none;
    }

        footer > ul > li {
            display: inline-block;
        }

            footer > ul > li:not(:last-of-type):after {
                content: "";
                margin-right: 0.5rem;
                border-right: 1px solid #FFFFFF;
                padding-right: 0.5rem;
            }

    footer p {
        margin: 1rem 0;
    }

    footer a {
        color: #FFFFFF;
    }

    footer:before {
        content: "";
        height: 95px;
        display: block;
        background: url('/shared-web/images/footerlinks-bg.png') #333B3B;
        background-size: auto;
        background-repeat: repeat-x;
        background-position: top center;
    }

.container {
    max-width: 768px;
    margin: auto;
    background-size: cover; /* This does the magic */
}

/* Sticky footer */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding-bottom: 5rem;
}

footer {
    flex-shrink: 0;
}

/* Links */
a {
    color: #13578B;
}

    a:hover {
        color: #0066CC;
    }

    a:visited {
        color: #8800BB;
    }

    a:focus {
        color: #CC0000;
    }

    /* Buttons */

    button, a.button {
        border-radius: 2px;
        border: 1px solid #78BA00;
        background-color: transparent;
        font-weight: bold;
        padding: 0.75rem 1rem;
        cursor: pointer;
        transition: background-color 0.25s linear, opacity 0.5s linear;
        color: #333333;
        text-decoration: none;
        vertical-align: middle;
        line-height: 1.25rem;
        display: inline-block;
    }

        button:not(:disabled):hover,
        .button:not(:disabled):hover {
            background-color: #78BA00;
            color: #FFFFFF;
        }

        button:disabled,
        .button:disabled {
            color: #AAAAAA;
            cursor: not-allowed;
        }

/* Checkboxes / Radios */
input[type=radio] + label,
input[type=checkbox] + label,
label + input,
label + select {
    display: block;
}

input[type=radio], input[type=checkbox] {
    width: 0;
    height: 0;
    position: absolute;
    left: -10000px;
}

    input[type=radio] + label,
    input[type=checkbox] + label {
        cursor: pointer;
        margin: 0.5rem 0;
        margin-left: 2rem;
    }

        input[type=radio] + label:before,
        input[type=checkbox] + label:before {
            line-height: 1rem;
            margin-left: -2rem;
            content: "";
            width: 1rem;
            height: 1rem;
            display: inline-block;
            border: 1px solid #333333;
            vertical-align: middle;
            margin-right: calc(1rem - 2px);
            box-shadow: 0 0 0 0.5rem #FFFFFF inset;
            transition: box-shadow 0.05s linear;
        }

        input[type=radio] + label:before {
            border-radius: 50%;
        }

    input[type=radio]:focus + label:before,
    input[type=checkbox]:focus + label:before {
        outline: 2px solid -webkit-focus-ring-color;
    }

    input[type=radio]:checked + label:before,
    input[type=checkbox]:checked + label:before {
        background-color: #78BA00;
        box-shadow: 0 0 0 2px #FFFFFF inset;
    }

label {
    display: inline-block;
}

article label {
    padding-top: 1rem;
}

label + input, label + select, article input {
    margin: 0.5rem 0 1rem;
}

.row label {
    padding-top: 1rem;
}

.row input {
    margin: 0.5rem 0 1rem;
}


.field-validation-error {
    color: #d74747;
    margin-bottom: 1rem;
}

.field-validation-error {
    display: block;
}

input, select {
    padding: 0.5rem 0.75rem;
    border: 1px solid black;
    border-radius: 2px;
    width: 100%;
    max-width: 320px;
}

select {
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, black 50%), linear-gradient(135deg, black 50%, transparent 50%);
    background-position: calc(100% - 1.25rem) calc(1rem - 0.125rem), calc(100% - 1rem + 0.25rem) calc(1rem - 0.125rem);
    background-size: 0.5rem 0.5rem, 0.5rem 0.5rem;
    background-repeat: no-repeat;
}

input[type=date] {
    letter-spacing: 1px;
}

.hidden {
    display: none;
}

/* Header / Footer special colours */

footer a,
header a {
    color: #50a6e7;
}

    footer a:visited,
    header a:visited {
        color: #d155ff;
    }


/*-------------------------
    Easy columns and rows
--------------------------*/
.row {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
}

@media only screen and (min-width: 701px) {
    .column {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        flex: 1;
    }
}
/* Move the passport photo to the top of the display when in mobile view */
@media only screen and (max-width: 700px) {
    .column {
        width: 100%;
    }

        .column:nth-child(1) {
            order: 3;
        }

        .column:nth-child(2) {
            order: 2;
        }
}


/*-------------------------
    Responsive images
    Courtesy of: https://www.w3schools.com/css/css3_images.asp
--------------------------*/

@media only screen and (min-width: 701px) {
    div.gallery {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

div.gallery img {
    width: 100%;
    height: auto;
    border-radius: 2.5%;
}

* {
    box-sizing: border-box;
}

.responsive {
    padding: 0 6px;
    width: 100%;
}

@media only screen and (min-width: 701px) {
    .responsive {
        float: right;
    }
}

@media only screen and (max-width: 700px) {
    .responsive {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    div.gallery {
        width: 75%;
        margin: 6px 0;
    }
}








/*-------------------------
    Inline help tip
    Courtesy of: https://tutorialzine.com/2014/07/css-inline-help-tips
--------------------------*/
.help-tip {
    position: absolute;
    top: 0.5rem;
    left: 18.5rem; /* Keeping it related to the left is more consistent as the screen size adjusts */
    text-align: center;
    background-color: #BCDBEA;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 26px;
    cursor: default;
}

.link-container {
    position: relative;
    display: inline-block;
    padding-top: 0.5rem;
}

.help-tip:before {
    content: '?';
    font-weight: bold;
    color: #fff;
}

.help-tip:hover p {
    display: block;
    transform-origin: 100% 0%;
    -webkit-animation: fadeIn 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 8;
}

.help-tip p { /* The tooltip */
    display: none;
    text-align: left;
    background-color: #1E2021;
    padding: 20px;
    width: 300px;
    position: absolute;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    left: 1.75rem;
    top: -0.25rem;
    color: #FFF;
    font-size: 13px;
    line-height: 1.4;
}

    .help-tip p:before { /* The pointer of the tooltip */
        position: absolute;
        content: '';
        width: 0;
        height: 0;
        border: 6px solid transparent;
        border-bottom-color: #1E2021;
    }

    .help-tip p:after { /* Prevents the tooltip from being hidden */
        width: 100%;
        height: 40px;
        content: '';
        position: absolute;
        top: -40px;
        left: 0;
    }

@media only screen and (min-width: 701px) {
    .help-tip p:before {
        left: -11px;
        top: 3px;
        border-right: solid 5px #1E2021;
        border-bottom: solid 5px transparent;
        border-top: solid 5px transparent;
    }
}

@media only screen and (max-width: 700px) {
    .help-tip p {
        left: -7.75rem;
        top: 1.75rem;
    }

        .help-tip p:before {
            left: 130px;
            top: -11px;
            border-left: solid 5px transparent;
            border-right: solid 5px transparent;
            border-bottom: solid 5px #1E2021;
        }

    .submission {
        padding-left: 10px;
    }
}

/* CSS animation */

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    100% {
        opacity: 100%;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 100%;
    }
}

img.tag {
    position: relative;
    left: 0rem;
    top: 0.5rem;
}

.info {
    padding-bottom: 1rem;
}

.pl-1 {
    padding-left: 1rem;
}

.pl-2 {
    padding-left: 2rem;
}

.bold-help {
    font-size: 16px;
    font-weight: bold;
}