
/* W3Schools as a source */

html {
    padding: 0;
    margin: 0;

    height: 100%;
}
body {
    padding: 0;
    margin: 0;

    position: relative;
    padding-bottom: 150px;
    min-height: calc(100% - 68px);
    background-color: #f1f1f1;
    color: #111;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

/* Typography helpers */
.body-container h1 {
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.25;
}
.body-container h2 {
    margin-bottom: 1.25rem;
    font-weight: 300;
    line-height: 1.25;
}
.body-container h3 {
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}
.body-container p {
    margin-top: 0;
    margin-bottom: 25px;
}
.body-container p:last-child{
    margin-bottom: 0;
}

.body-container a, .footer a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    
    transition: background-color cubic-bezier(.165, .84, .44, 1) .2s,
                border-bottom cubic-bezier(.165, .84, .44, 1) .2s;
}
    .body-container a:hover, .body-container a:focus,
    .footer a:hover, .footer a:focus {
        border-bottom: 1px solid black;
        outline: none;
        transition: none;
    }

.error-text {
    color: #d9534f;
}

.a-target::before
{
    display: block;
    visibility: hidden;

    height: 74px;
    margin-top: -74px;
    
    content: ' ';

    pointer-events: none;
}


.nav {
    background-color: #47b8ff;
    position: fixed;
    will-change: transform;
    top: 0;
    z-index: 100;
    height: 68px;
    width: 100%;
    box-shadow: 0 2px 2px rgba(0,0,0,.23);
}
    .nav__container {
        display: flex;
        height: inherit;
        max-width: 960px;
        margin: 0 auto;
    }

    .nav__logo {
        padding: 5px 12px;
        height: inherit;
        display: block;
        transition: background-color cubic-bezier(.165, .84, .44, 1) .2s;
    }
    .nav__logo-img {
        height: 100%;
        border: none;
    }

    .nav__overflow {
        margin-left: auto;
    }

    .nav__options {
        display: flex;
        height: 100%;

        padding: 0;
        margin: 0;

        list-style: none;

        white-space: nowrap;
    }
    .nav__option {
        display: inline-flex;
    }
    .nav__link {
        display: inline-flex;
        align-items: center;

        padding: 0 17px;

        font-size: 1.00rem;
        text-shadow: 1px 1px rgba(20,20,20,0.4);

        text-decoration: none;
        color: black;
        transition: background-color cubic-bezier(.165, .84, .44, 1) .2s;
    }
    .nav__logo:hover, .nav__logo:focus,
    .nav__link:hover, .nav__link:focus {
        background-color: #fff;
        transition: none;
    }


.page-head {
    margin-top: 68px;
    margin-bottom: 10px;
    min-height: 140px;
    background: #fff url("../images/space.png");
    background-position: center center;
    background-size: cover;
    
    text-shadow: 1px 1px #000;

    box-shadow: 0 1px 0 rgba(12,13,14,0.1), 0 1px 3px rgba(12,13,14,0.1), 0 4px 20px rgba(12,13,14,0.035), 0 1px 1px rgba(12,13,14,0.025);
}
.page-head--large {
    min-height: 320px;
    
}
    .page-head__container {
        max-width: 960px;
        margin-right: 50%;
        padding: 40px 20px 30px 20px;
        text-align: center;

    }

    .page-head__heading {
        margin-top: 0;
        margin-bottom: 45px;
        font-weight: bold;
        font-style: italic;
        line-height: 54px;
        font-size: 4rem;
    }
    .page-head--large .page-head__heading  {
        font-size: 3.5rem;
        line-height: 66px;
    }

    .page-head__paragraph {
        margin: 0 0 8px 0;
        font-size: 1.2rem;
        line-height: 28px;
    }
    .page-head--large .page-head__paragraph  {
        font-size: 1.4rem;
        line-height: 32px;
    }


.body-container {
    max-width: 960px;
    margin: 0 auto 25px auto;

    line-height: 28px;
    font-size: 1.1em;
    padding: 10px 20px;
}
    .body-container--wider {
        max-width: 1250px;
    }

.cols-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 16px;
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background-color: #82ceff;
    color: #555;
}

.back-to-top {
    position: fixed;
    outline: none;
    bottom: 30px;
    right: 20px;
    width: 53px;
    height: 53px;
    color: #298cff;
    text-align: center;
    border-radius: 50%;
    will-change: transform;
    border: 3px solid #298cff;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(60,60,60,.34);
    z-index: 100;
    opacity: 0;
    pointer-events: none;

    transition: visiblity cubic-bezier(.165, .84, .44, 1) .2s,
                box-shadow cubic-bezier(.165, .84, .44, 1) .2s,
                opacity cubic-bezier(.165, .84, .44, 1) .2s;
}
.back-to-top::before {
    content: "\f062";
    font-family: FontAwesome;
    font-size: 32px;
    line-height: 24px;
}
.back-to-top.visible {
    opacity: 0.45;
    cursor: pointer;
    pointer-events: initial;
}
.back-to-top.visible:hover {
    transition: box-shadow cubic-bezier(.165, .84, .44, 1) .2s,
                opacity 0s;
    opacity: 1;
    box-shadow: 0 4px 8px rgba(60,60,60,.34);
}

@media (max-width: 769px) {

    body {
        min-height: 100%;
    }

    .nav {
        position: relative;
        height: auto;
    }
        .nav__container {
            flex-direction: column;
            align-items: center;
        }
        .nav__logo {
            margin-top: 4px;
            margin-bottom: 4px;
            height: 78px;
        }
        .nav__options {
            height: auto;
            padding-bottom: 30px;
            overflow-x: auto;
        }

        .nav__overflow {
            position: relative;
            height: 42px;
            max-width: 100%;
            margin-bottom: 5px;
            margin-left: 0;
            overflow: hidden;
            padding: 0 4px;
        }
        /* Fade options to blue on mobile */
        .nav__overflow::before {
            content: "";
            position: absolute;
            top: 0; left: 4px;

            height: 100%;
            width: 13px;

            border-left: 4px solid #298cff;
            pointer-events: none;

            background: rgba(41,141,255,1);
            background: -moz-linear-gradient(left, rgba(41,141,255,1) 0%, rgba(41,140,255,0) 100%);
            background: -webkit-gradient(left top, right top, color-stop(0%, rgba(41,141,255,1)), color-stop(100%, rgba(41,140,255,0)));
            background: -webkit-linear-gradient(left, rgba(41,141,255,1) 0%, rgba(41,140,255,0) 100%);
            background: -o-linear-gradient(left, rgba(41,141,255,1) 0%, rgba(41,140,255,0) 100%);
            background: -ms-linear-gradient(left, rgba(41,141,255,1) 0%, rgba(41,140,255,0) 100%);
            background: linear-gradient(to right, rgba(41,141,255,1) 0%, rgba(41,140,255,0) 100%);
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#298dff', endColorstr='#298cff', GradientType=1 );
        }
        .nav__overflow::after {
            content: "";
            position: absolute;
            top: 0; right: 4px;

            height: 100%;
            width: 13px;

            border-right: 4px solid #298cff;
            pointer-events: none;

            background: rgba(41,141,255,0);
            background: -moz-linear-gradient(left, rgba(41,141,255,0) 0%, rgba(41,140,255,1) 100%);
            background: -webkit-gradient(left top, right top, color-stop(0%, rgba(41,141,255,0)), color-stop(100%, rgba(41,140,255,1)));
            background: -webkit-linear-gradient(left, rgba(41,141,255,0) 0%, rgba(41,140,255,1) 100%);
            background: -o-linear-gradient(left, rgba(41,141,255,0) 0%, rgba(41,140,255,1) 100%);
            background: -ms-linear-gradient(left, rgba(41,141,255,0) 0%, rgba(41,140,255,1) 100%);
            background: linear-gradient(to right, rgba(41,141,255,0) 0%, rgba(41,140,255,1) 100%);
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#298dff', endColorstr='#298cff', GradientType=1 );
        }

        .nav__link {
            font-size: 1.25rem;
            padding: 5px 15px;
        }
        .nav__logo:hover, .nav__logo:focus,
        .nav__link:hover, .nav__link:focus {
            background-color: initial;
        }

        .nav__space {
            height: 0;
        }

    .page-head {
        margin-top: 0;
    }
    .page-head--large {
        min-height: auto;
    }
        .page-head__container {
            padding-top: 20px;
            padding-bottom: 20px;
        }
        .page-head__heading, .page-head--large .page-head__heading {
            font-size: 2.3rem;
            line-height: 54px;
            margin-bottom: 8px;
        }

        .page-head__paragraph, .page-head--large .page-head__paragraph {
            font-size: 1.1rem;
            line-height: 28px;
        }

    .back-to-top {
        display: none;
    }

    .a-target::before
    {
        height: 10px;
        margin-top: -10px;
    }

}

@media (max-width: 577px) {

    .cols-2 {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
}
/* Three columns side by side */
.column {
    float: left;
    width: 33.3%;
    margin-bottom: 16px;
    padding: 0 8px;
}
.column2 {
    float: left;
    width: 50%;
    margin-bottom: 16px;
    padding: 0 8px;
}

/* Display the columns below each other instead of side by side on small screens */
@media screen and (max-width: 650px) {
    .column {
        width: 100%;
        display: block;
    }
}

/* Add some shadows to create a card effect */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* Some left and right padding inside the container */
.container {
    padding: 0 16px;
}

/* Clear floats */
.container::after, .row::after {
    content: "";
    clear: both;
    display: table;
}

.title {
    color: grey;
}

.button {
    border: none;
    outline: 0;
    display: inline-block;
    padding: 8px;
    color: white;
    background-color: #47b8ff;
    text-align: center;
    cursor: pointer;
    width: 100%;
}
img{
    margin-left: auto;
    margin-right: auto;
    display: block;


}