/*
 * Globals
 */
html {
    touch-action: manipulation; /* remouve touch 300ms delay. https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away */
}

body.login {
    background-image: url('/img/loginbg1080p.jpg');
}

body.shop.home {
    background-image: url('/img/intro-bg.jpg');
}

@media (min-width: 1921px) {
    body.login {
        background-image: url('/img/loginbg.jpg');
    }
}

/* Links */
a,
a:focus,
a:hover {
    color: #fff;
    text-decoration: none;
}


/* Custom default button */
.btn-default,
.btn-default:hover,
.btn-default:focus {
    color: #333;
    text-shadow: none; /* Prevent inheritence from `body` */
    background-color: #fff;
    border: 1px solid #fff;
}

/*
 * Base structure
 */
html,
body {
    height: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body {
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

#bgVideo {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -100;
}

.button:hover {
    transition: all 0.3s;
    background: white;
    color: black;
}

/* Extra markup and styles for table-esque vertical and horizontal centering */
.site-wrapper {
    display: table;
    width: 100%;
    height: 100%; /* For at least Firefox */
    min-height: 100%;
    -webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
    z-index: 2;
}

.site-wrapper-inner {
    display: table-cell;
    vertical-align: top;
    z-index: 2;
}

.cover-container {
    margin-right: auto;
    margin-left: auto;
    z-index: 2;
}

/* Padding for spacing */
.inner {
    padding: 30px;
}

/*
 * Header
 */

.masthead-brand {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-shadow: 0 3px 9px rgba(0, 0, 0, .9);
    font-weight: bold;
}

.retailer-logo {
    height: 100px;
}

.masthead-nav > li {
    display: inline-block;
}

.masthead-nav > li + li {
    margin-left: 20px;
}

.masthead-nav > li > a {
    padding-right: 0;
    padding-left: 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff; /* IE8 proofing */
    color: rgba(255, 255, 255, .75);
    border-bottom: 2px solid transparent;
}

.masthead-nav > li > a:hover,
.masthead-nav > li > a:focus {
    background-color: transparent;
    border-bottom-color: #a9a9a9;
    border-bottom-color: rgba(255, 255, 255, .25);
}

.masthead-nav > .active > a,
.masthead-nav > .active > a:hover,
.masthead-nav > .active > a:focus {
    color: #fff;
    border-bottom-color: #fff;
}

@media (min-width: 768px) {
    .masthead-brand {
        margin: 0 auto;
    }

    .masthead-nav {
        float: right;
    }
}

/*
 * Cover
 */

.cover {
    padding: 0 20px;
}

.cover .btn-lg {
    padding: 10px 20px;
    font-weight: bold;
}

/*
 * Footer
 */

.mastfoot {
    color: white; /* IE8 proofing */

    color: rgba(255, 255, 255, .9);
}

.mastfoot a {
    font-size: 1.1em;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 8px;
    width: 19%;
    margin: 0 auto;
    display: block;
    background-color: white;
    color: black;
    text-shadow: none;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.mastfoot a:hover {
    cursor: pointer;
    text-decoration: none;
    text-shadow: none;
}

.form-login {
    background-color: rgba(255, 255, 255, .9);
    padding-top: 50px;
    padding-bottom: 50px;
    color: black !important;
    text-shadow: none !important;
    font-size: 16px;
}

body.shop.home {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.circle-container {
    display: flex;
    justify-content: space-around;
    margin: auto 10px;
}

.circle-container.fabrics {
    margin: auto 40px;
}

.circle {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.8);
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.circle:focus {
    transition: background 0.3s;
    outline: none;
    background-color: white;
}

.circle.shop h1, .circle.fabrics h1 {
    text-shadow: none;
    color: black;
    font-size: 20px;
    font-weight: bold;
    padding-top: 2px;
    margin-top: 2px;
    padding-bottom: 8px;
    margin-bottom: 2px;
    font-family: 'Lato', sans-serif;
}

.circle.shop img {
    height: 80px;
    margin-bottom: 0px;
}

.circle.fabrics {
    height: 230px;
    width: 230px;
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;

}

.circle.shop .ruler, .circle.fabrics .ruler {
    width: 40px;
    height: 3px;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: black;
    margin: 0 auto;
}

.circle.shop p, .circle.fabrics p {
    text-shadow: none;
    color: black;
    font-size: 1em;
    padding: 7px;
    font-family: 'Lato', sans-serif;
    line-height: 12px;
    margin-top: 5px;
}

.video {
    background: #000;
}

/*
 * Affix and center
 */

@media (min-width: 768px) {
    /* Pull out the header and footer */
    .masthead {
        position: fixed;
        top: 0;
    }

    .mastfoot {
        position: fixed;
        bottom: 50px;
    }

    /* Start the vertical centering */
    .site-wrapper-inner {
        vertical-align: middle;
    }

    /* Handle the widths */
    .masthead,
    .mastfoot,
    .cover-container {
        width: 100%; /* Must be percentage or pixels for horizontal alignment */
    }
}

@media (min-width: 992px) {
    .masthead,
    .mastfoot,
    .cover-container {
        width: 700px;
    }

    .home-masthead {
        width: 1000px;
    }
}