/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    margin:5%;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

   html {
    font-family: 'Work Sans', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.6em;
    line-height: 1.5;
    margin-left: 7%;
    margin-right:7%;
    letter-spacing: -0.02em;
    font-weight: 300;
    background-color:#3A4DF9;
    background-attachment:fixed;
    animation:colourcycle 20s;
    -moz-animation:colourcycle 20s; /* Firefox */
    -webkit-animation:colourcycle 20s; /* Safari and Chrome */
    -o-animation:colourcycle 20s; /* Opera */
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    -webkit-animation-fill-mode: forwards;
}

body {
    animation:fadein 2s;
    -moz-animation:fadein 2s; /* Firefox */
    -webkit-animation:fadein 2s; /* Safari and Chrome */
    -o-animation:fadein 2s; /* Opera */

}

@-moz-keyframes colourcycle {
    0% {
        background-color:#3A4DF9;
    }
    100% {
        background-color:#863af9;
    }
}
@-webkit-keyframes colourcycle {
    0% {
        background-color:#3A4DF9;
    }
    100% {
        background-color:#863af9;
    }
}

@-moz-keyframes fadein {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
@-webkit-keyframes fadein {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}

a {

    /*color:#1cc49b;*/
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    border-bottom:1px solid;
    font-weight:600;
    opacity: 1;
}

a:hover {

    border-bottom:0px solid;
}

p {
    margin:0;
    max-width:950px;
}

.small {
    font-size:0.6em;
    letter-spacing: 0em;
}

h1 {
    margin-top:80px;
    font-weight: 300;
}
.crest {
    background-image:url('../img/crest.png');
    background-size: contain;
    background-repeat: no-repeat;
    width:100px;
    height: 100px;
    opacity:0.8;
    margin-bottom:100px;
    margin-top:40px;
}






/* ==========================================================================
   Media Queries
   ========================================================================== */

   @media only screen and (max-width: 700px) {
    html {
        font-size: 1.5em;
    }
    .crest {
        width:80px;
        height:80px;
        margin-bottom:20px;
    }
}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

   .hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}