﻿/*GENERAL*/

.btn-grey {
    background-color: #666666;
    color: #ffffff;
}

.input__rating__selected {
    color: black;
    -webkit-text-stroke: medium;
    -webkit-text-stroke-color: black;
}

.input__rating__unselected {
    color: white;
    -webkit-text-stroke: medium;
    -webkit-text-stroke-color: black;
}

.table__link-div__right {
    float: right;
}

.navbar {
    padding: 4px;
    margin-bottom: 10px;
}

.navbar-icon {
    height: 1.5em;
    padding-top: 4px;
    padding-bottom: 4px
}

.span__search__facet {
    background-color: lightgrey;
    border-radius: 5px;
    padding-left: 2px;
    padding-right: 2px;
}

/*FIXES: forms*/
.form-btn-group {
    margin-top: 2px;
}
@media (max-width: 767px) {
    .right-btn {
        float: left !important;
        margin-right: 2px;
    }
}

.form-horizontal .form-col {
    margin-left: 0px;
    margin-right: 0px;
}

.form-control {
    font-size: 16px;
}

.card-list {
    display: table;
    margin: 0 auto;
}

/*removes the blue outline from nav-links on some mobile devices*/
.nav-link:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(0, 0, 0, 0)
}

/*PAGE: _Layout.cshtml*/
#gt-logo {
    width: 140px;
}

#gt-navbar-brand {
    padding: 8px 8px;
}

@media (max-width: 767px) {
    #gt-navbar-brand {
        padding-left: 0px;
        padding-right: 0px;
        margin-right: 4px;
    }
}

#user-status {
    padding-top: 9px;
    padding-bottom: 9px;
    float: right;
    cursor: auto;
}

/*override navbar border colours*/
.navbar-default {
    border-color: #f8f8f8
}

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: #f8f8f8
}

/*FOLDER: ingredients*/
.col-lg-2 > img {
    display: block;
    margin:auto;
    margin-top: 20px
}

#col-con-1, #col-con-3 {
    background-color: #f8f8f8;
    padding: 15px;
    border: 1px solid;
    border-color: #ffffff;
    border-radius: 4px;
}

#col-con-2, #col-con-4 {
    background-color: #f2f2f2;
    padding: 15px;
    border: 1px solid;
    border-color: #ffffff;
    border-radius: 4px;
}

@media (max-width: 767px) {
    #ing-col-2 {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }
}

#ing-form-block {
    padding-bottom: 60px;
}

#ing-form-nav {
    position: absolute !important;
    z-index: 999;
}

.ing-form-leaf-group {
    border-color: #ccc;
    border-radius: 4px;
    background-color: #ffffff;
    position:relative;
    max-width: 95%;
    margin-top: 15px;
    box-shadow: -3px 4px 5px rgba(0, 0, 0, 0.2);
 }

#col-con-1 > div > .ing-form-leaf-group::before, #col-con-3 > div > .ing-form-leaf-group::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 16px 16px 0;
  border-style: solid;
  border-color: #f8f8f8 #f8f8f8 #d9d9d9 #d9d9d9;
  background: #f8f8f8;
  -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
  box-shadow: 0 1px 0px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
}

#col-con-2 > div > .ing-form-leaf-group::before, #col-con-4 > div > .ing-form-leaf-group::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 16px 16px 0;
  border-style: solid;
  border-color: #f2f2f2 #f2f2f2 #d9d9d9 #d9d9d9;
  background: #f2f2f2;
  -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
  box-shadow: 0 1px 0px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
}

.ing-form-label {
    display: inline-block;
    max-width: 75%;
    white-space: normal
}

.ing-form-label-icon {
    padding: 4px;
}

.ing-form-leaf-group + .ing-form-leaf-group, .btn-block + .ing-form-leaf-group, .ing-form-leaf-group ~ .btn-block {
    margin-top: 15px;
}

.ing-form-leaf-label {
     text-align:right;
     display: block;
     max-width: 85%;
     white-space:normal
 }

#man-stock-form-group {
    margin: 8px;
}

.parent-ex {
    background-color: #666666;
    color: #ffffff;
    border-color: #ffffff;
}

.parent, .parent-ex, .parent + .parent, .parent + .parent-ex, .parent-ex + .parent {
    margin-top: 15px;
    position: relative;
    border-radius: 0 6px 6px 6px;
    box-shadow: -4px 4px 7px rgba(0, 0, 0, 0.59);
}

.parent::before, .parent-ex::before {
    content: '';
    width: 20%;
    height: 9px;
    border-radius: 20px 20px 0 0;
    border: inherit;
    border-bottom-style: none;
    background-color: inherit;
    position: absolute;
    top: -8px;
    left: -1px;
}

.parent:hover::before {
    color: #333;
    text-decoration: none;
}

.btn-ingredient-add {
    border-color: #ccc;
    border-radius: 4px;
    background-color: #ffffff;
    position: relative;
    max-width: 95%;
    margin-top: 15px;
    box-shadow: -3px 4px 5px rgba(0, 0, 0, 0.2);
    border: 0px;
    font-weight: bold;
}

.parent ~ .btn-ingredient-add {
    margin-top: 15px
}

#ing-display-block > div > div > .btn:focus,
#ing-display-block > div > div > .btn:active:focus,
#ing-display-block > div > div > .btn.active:focus,
#ing-display-block > div > div > .btn.focus,
#ing-display-block > div > div > .btn:active.focus,
#ing-display-block > div > div > .btn.active.focus {
    outline: none; }

 /*http://codepen.io/aorcsik/pen/OPMyQp */
input[type="checkbox"].ios8-switch {
    position: absolute;
    margin: 8px 0 0 16px;
}
input[type="checkbox"].ios8-switch + label {
    position: relative;
    padding: 5px 0 5px 50px;
    line-height: 2.0em;
}
input[type="checkbox"].ios8-switch + label:before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 40px; /* x*5 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    margin-top:7px;
    margin-left: 5px
}
input[type="checkbox"].ios8-switch + label:after {
    content: "";
    position: absolute;
    display: block;
    left: 0px;
    top: 0px;
    width: 24px; /* x*3 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    margin-top:7px;
    margin-left: 5px
}
input[type="checkbox"].ios8-switch + label:hover:after {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
input[type="checkbox"].ios8-switch:checked + label:after {
    margin-left: 21px;
}
input[type="checkbox"].ios8-switch:checked + label:before {
    background: #006600;
}
input[type="checkbox"].ios8-switch-clicked:checked + label:before {
    background: #55D069 !important;
}

@media (max-width: 767px) {
    .stock-btn {
        float: left !important;
        margin: 2px;
    }
}

@keyframes ingredient-rating__submitted {
    from {background-color: white;}
    to {background-color: grey;}
}

.panel__ingredient-rating__submitted {
    background-color: white;
    animation-name: ingredient-rating__submitted;
    animation-duration: 1s;
    animation-direction: alternate;
}

/*SCRIPT: gandt.ingredients.js*/
.unformated-leaf {
    padding: 6px;
}

.unformated-leaf:hover,
.unformated-leaf:focus {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
    text-decoration: none;
}

@media (max-width: 767px) {
    .row-margin-bottom {
        margin-bottom: 15px
    }
}

#ing-display-block {
    padding-bottom: 15px;
}

/*FOLDER: about*/

.topics {
    margin-bottom: 20px;
    text-align: center;
}

.topics li {
    text-align:left;
}

#carousel-features li, #panels-features li {
    text-align: left;
}

#panels-features img {
    width: 100%;
}

#carousel-features {
    width: 612px;
}

@media (max-width: 767px) {
    #div-features {
        padding-left: 0;
        padding-right: 0;
        margin-top: -20px;
    }

    #carousel-features {
        width: 100%;
    }

        #carousel-features .carousel-caption {
            position: relative;
            left: auto;
            right: auto;
            color: #5d423c;
        }

    #carousel-features .item {
        background-color: #E8DEDC;
        height: 700px;
    }

    .btn-features {
        background-color: #E8DEDC;
        border-color: #5d423c;
        text-decoration-color: #5d423c;
    }
}

.carousel-img-m {
    display: none !important;
}

/*FOLDER: lists*/

.table-div-thumbnail {
    width: 170px;
}

.pre-lists {
    white-space: pre-line;
    word-break: break-word;
}
