/* (c) 2016 Wruczek */

body {
    background: url('/assets/background.webp') no-repeat fixed center;
    background-size: cover;
    color: #555555;
}

.vertical-center {
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* TODO: This method won't work with IE... */
}

.header {
    display: flex;
    margin-bottom: 1em;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.header h2 {
    margin: 0;
}

@media (max-width: 767px) {
    .header h2 {
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hide-on-mobile {
        display: none;
    }

    .vertical-center {
        display: block;
    }

    .p-sm-0 {
        padding: 0px;
    }
}

@media (max-width: 374px) {
    .hide-on-smallest-mobile {
        display: none;
    }
}

a:not(.btn) {
    text-decoration: underline;
    color: #555555;
}

.nav-tabs a {
    text-decoration: none !important
}

a:hover {
    color: #44A3CC;
}

.img-responsive {
    margin: 0 auto;
}

.well {
    text-align: center;
}

.alert {
    text-align: center;
}

.nojs a {
    text-decoration: underline;
}

.container {
    margin-top: 50px;
    margin-bottom: 50px;
}

.container-fluid {
    margin-top: 10px;
}

.form-group {
    max-width: 300px;
    margin: 0 auto;
}

.form-group input {
    margin-bottom: 3px !important;
}

form button {
    margin-top: 5px !important;
}

.fa {
    margin-right: 5px;
}

.form-control-feedback {
    right: 0px !important;
    top: 11px !important;
}

.fcficon {
    font-size: 1.5em;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.7);
}

.footer a {
    color: inherit;
}

td img {
    max-width: 60px !important;
}

.nav-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.modal-dialog {
    text-align: center;
}


/*
    Ecommerce product display by jrh10 and guidouil
    Edited by Wruczek
    http://bootsnipp.com/snippets/3x4PV
*/

.productbox {
    position: relative;
    background-color: #ffffff;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #cfcfcf;
    -moz-box-shadow: 2px 2px 4px 0px #cfcfcf;
    -webkit-box-shadow: 2px 2px 4px 0px #cfcfcf;
    -o-box-shadow: 2px 2px 4px 0px #cfcfcf;
    box-shadow: 2px 2px 4px 0px #cfcfcf;
    filter: progid: DXImageTransform.Microsoft.Shadow(color=#cfcfcf, Direction=134, Strength=4);
    text-align: left;
}

.productbox:not(.productbox-external) > img {
    width: 160px;
}

.productbox > img[src^="assets/items/"] {
    border-radius: 25%;
}

.productbox > .productdescription {
    max-height: calc(1.42857143em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* show only 2 lines */
}

.productbox.superpromo {
    box-shadow: 0px 0px 10px 5px red;
    margin-bottom: 15px;
}

.productbox .icon-hover {
    display: none;
}

.productbox:hover .icon-hover {
    display: block;
}

.productbox:hover .icon-hover + img {
    display: none;
}

.producttitle {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 0 5px 0;
}

.productprice {
    border-top: 1px solid #dadada;
    padding-top: 5px;
}

.pricetext {
    font-size: 1.4em;
}


/*
    Modal position and animation by bwitkowicz
    http://stackoverflow.com/q/18422223
*/

@media only screen and (min-width: 768px) {
    .modal {
        text-align: center;
    }
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
    .modal-dialog {
        display: inline-block;
        /* text-align: left; */
        vertical-align: middle;
    }
    .modal.fade .modal-dialog {
        -webkit-transform: scale(0.9);
        -moz-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
        opacity: 0;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    .modal.fade.in .modal-dialog {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
        /*
        -webkit-transform: translate3d(0, -300px, 0);
        transform: translate3d(0, -300px, 0);
        */
        opacity: 1;
    }
}

.has-feedback .form-control {
    padding-right: 20px;
}
