* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*
 * -- BASE STYLES --
 * Most of these are inherited from Base, but I want to change a few.
 */

body {
    line-height: 1.7em;
    color: #4a4a4a;
    font-size: 13px;
}

h1, h2, h3, h4, h5, h6, label {
    color: #363636;
}

.pure-img-responsive {
    max-width: 100%;
    height: auto;
}

/*
 * -- LAYOUT STYLES --
 * These are some useful classes which I will need.
 */

.l-box {
    padding: 1em;
}

.l-box-lrg {
    padding: 2em;
    /* border-bottom: 1px solid rgba(0,0,0,0.1); */
}

.is-center {
    text-align: center;
}

.text-red {
    color: #cc3300;
}

.text-normal-size {
    font-size: 100%;
}

.is-hidden {
    display: none;
}

/* Anchor for fixed menu: places anchor slightly higher that the actual element. */

a.offset-anchor {
    display: block;
    position: relative;
    top: -5em;
    visibility: hidden;
}

/*
 * -- PURE FORM STYLES --
 */

.pure-form input[type] {
    border: 1px solid #999999;
    border-radius: 2px;
    box-shadow: none;
}

/*
 * -- BUTTON STYLES --
 */

.pure-button {
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid #999999;
    padding: 0.5em 2em;
    transition: all 0.3s ease;
}

.pure-button:hover {
    background: #f2f2f2;
}

.button-red {
    background: #cc3300;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 0.5em 2em;
    transition: all 0.3s ease;
}

.button-red:hover {
    background: #e63900;
}

.button-quickies {
    margin: 10px;
}

/*
 * -- MENU STYLES --
 * I want to customize how my .pure-menu looks.
 */

.home-menu {
    padding: 0.5em;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
}

.home-menu {
    background: #ffffff;
}

.pure-menu.pure-menu-fixed {
    border-bottom: none;
    /* I need a higher z-index here because of the scroll-over effect. */
    z-index: 4;
}

.home-menu .pure-menu-heading {
    color: #000;
    font-weight: 600;
    font-size: 120%;
}

/* Currently disabled, maybe needed in the future.
.home-menu .pure-menu-selected a {
    color: white;
}
*/

.home-menu a {
    color: #4a4a4a;
}

.home-menu li a:hover, .home-menu li a:focus {
    background: none;
    border: none;
    color: #000;
}

.footer-menu .pure-menu-list {
    padding: 1em 0;
}

.footer-menu a {
    color: #fff;
    font-size: 80%;
}

.footer-menu a:hover, .footer-menu a:focus {
    background: none;
}

.footer-menu .pure-menu-link {
    padding-top: 0;
    padding-bottom: 0;
}

.social ul {
    font-size: 80%;
    display: inline-block;
    text-align: left;
}

/*
 * -- SPLASH STYLES --
 * This is the top section that appears on the page.
 */

.splash-container {
    background: transparent url('../img/resolv.jpg') 0 0 no-repeat fixed;
    background-size: cover;
    /* Fix for IE mouse wheel flickering. */
    background-attachment: local;
    z-index: 1;
    overflow: hidden;
    /* The following styles are required for the "scroll-over" effect. */
    width: 100%;
    height: 99%;
    top: 0;
    left: 0;
    position: fixed !important;
}

.splash {
    /* Absolute center .splash within .splash-container. */
    width: 80%;
    height: 50%;
    margin: auto;
    position: absolute;
    top: 100px;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    text-transform: uppercase;
}

.splash-head {
    font-size: 20px;
    font-weight: bold;
    color: white;
    /* border: 3px solid white; */
    padding: 1em 1.6em;
    font-weight: 600;
    border-radius: 5px;
    line-height: 1em;
}

.splash-framed {
    padding: 0.5em;
    background-color: #000;
    opacity: 0.75;
}

/*
 * -- CONTENT STYLES --
 * This represents the content area.
 */

.content-wrapper {
    /* These styles are required for the "scroll-over" effect. */
    position: absolute;
    top: 99%;
    width: 100%;
    min-height: 12%;
    z-index: 2;
    background: white;
}

/* We want to give the content area some more padding. */

.content {
    padding: 3em 1em;
    max-width: 1344px;
    margin: 0 auto;
}

/* We do not want to give content are padding with grids inside. */

.content-grid {
    padding: 3em 0;
    max-width: 1344px;
    margin: 0 auto;
}

.content-head {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 2em 0 1em;
}

.content-head-ribbon {
    color: white;
}

/* This is the class used for the dark-background areas. */

.ribbon {
    color: #e6e6e6;
    background: #253241;
}

.footer {
    background: #000;
    color: #fff;
    width: 100%;
}

/*
 * -- CARDS --
 */

/* Set flex to the unit containing the card if used as a child element. */

.card-container-flex {
    display: flex;
    flex-direction: column;
}

.card {
    border: 1px solid #ddd;
    margin: 0 1em 2em;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    background: #253241;
    color: #fff;
    text-align: center;
}

.card-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1em;
    padding: 1em;
    font-weight: normal;
}

.card-body {
    padding: 0 1em;
    flex-grow: 1;
}

.card-footer {
    padding: 0 1em;
}

/*
 * -- MODAL --
 */

.modal {
    display: none;
    padding-top: 100px;
    position: fixed;
    z-index: 40;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    animation: opac 0.8s;
}

@keyframes opac {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal:target {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    margin: auto;
    background-color: #fff;
    position: relative;
    padding: 2em;
    outline: 0;
    width: 70%;
}

.modal-close {
    float: right;
    background: #999999;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 140%;
}

.modal-close:hover, model-close:focus {
    text-decoration: none;
    cursor: pointer;
    background: #e63900;
}

/*
 * -- PAGE LOADER (FADING) --
 */

#loading {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    opacity: 1;
    background-color: #fff;
    z-index: 99;
}

/*
 * -- ICONS --
 * Made mostly with the logic of Font Awesome.
 */

.icon-large-size {
    font-size: 133%;
    line-height: 0.75em;
    vertical-align: -.0667em;
}

.icon-2x-size {
    font-size: 200%;
}

.icon-8x-size {
    font-size: 800%;
}

.icon-fw {
    display: inline-block;
    text-align: center;
    width: 1.25em;
}

/*
 * -- TABLET (AND UP) MEDIA QUERIES --
 * On tablets and other medium-sized devices, we want to customize some
 * of the mobile styles.
 */

@media (min-width: 48em) {
    /* We increase the body font size. */
    body {
        font-size: 16px;
    }
    /* We can align the menu header to the left, but float the
    menu items to the right. */
    .home-menu {
        text-align: left;
    }
    .home-menu ul {
        float: right;
    }
    /* We decrease the width of the .splash, since we have more width to work with. */
    .splash {
        width: 50%;
        height: 50%;
    }
    .splash-head {
        font-size: 200%;
    }
}

/*
 * -- DESKTOP (AND UP) MEDIA QUERIES --
 * On desktops and other large devices, we want to override some
 * of the mobile and tablet styles.
 */

@media (min-width: 78em) {
    /* We increase the header font size even more. */
    /* No, we don't. :)
    .splash-head {
        font-size: 300%;
    }
    */
}

/*
 * -- BROWSER COMPATIBILITY --
 * Fallback garbage for old shitty browsers.
 */

/* Fix for old Firefox no inline-block element support. */

.home-menu ul li {
    display: -moz-inline-stack;
}

/* Supposed to work, but has issues with images.
.pure-u-1 {
    display: -moz-inline-stack;
}
*/

/* Fix for old Firefox fck up new line in menu, both menu elements require a float. */

.pure-menu-heading {
    float: left;
}

/* The clearer is still needed for floats. */

.clear {
    clear: both;
}

/*
 * -- DEBUG --
 */

/*
a, div, span, p{
    border: 1px solid red;
}
*/
