/* ==========================================================================
   LIST
   ========================================================================== */

.ingredient-title {
    display: block;
    text-align: center;
    font-family: "Fira Sans", sans-serif;
    font-size: 1.125rem;
    color: #333;
    margin: 1rem 0;
}
.ingredient a:hover {
    /* color: #333; */
    text-decoration: none;
}
.ingredient a:hover .ingredient-title {
    color: #c00d1e;
}
.ingredient-image {
    position: relative;
    padding-bottom: 100%;
    transition: 0.3s ease border;
    border: 2px solid transparent;
}
.ingredient a:hover .ingredient-image {
    border-color: #c00d1e;
}
.ingredient img {
    max-width: 100%;
    height: auto;
    transition: 0.3s ease all;
    transform: scale(0.95);
}
.ingredient a:hover img {
    transform: scale(1);
}
.ingredient-image-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}
.ingredient-image-placeholder {
    background-color: #f7f7f7;
    width: 100%;
    height: 100%;
}

/* BUTTON */
/* normal */
.btn-border-check {
    background: none;
    border: none;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 0.25rem;
    position: relative;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    font-weight: bold;
    padding: 0.5rem 1.25rem;
    padding-left: 2rem;
    border-radius: 2px;
    border: 1px solid #f4ede5;
}
.btn-border-check:before {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: 0.5rem;
    top: 50%;
    margin-top: -0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid #f4ede5;
    font-size: 0.875rem;
}
.btn-border-check:after {
    content: "\e918";
    font-family: "iconfont";
    opacity: 0;
    position: absolute;
    z-index: 2;
    left: 1.13em;
    top: 50%;
    margin-top: -0.7em;
    font-size: 0.6rem;
}
.btn-border-check:focus {
    outline: none;
}
/* hover */
.btn-border-check:hover {
    color: #c00d1e;
    text-decoration: none;
}
.btn-border-check:hover:before {
    border-color: #c00d1e;
}
.btn-border-check:hover:after {
    opacity: 1;
}
/* active */
.btn-border-check.active {
    color: #c00d1e;
    border-color: #c00d1e;
}
.btn-border-check.active {
    color: #333;
    text-decoration: none;
}
.btn-border-check.active:before {
    background-color: #c00d1e;
    border-color: #c00d1e;
}
.btn-border-check.active:after {
    color: #fff;
    opacity: 1;
}

/* ==========================================================================
   Detail
   ========================================================================== */

.ingredient-detail-header {
    margin-bottom: 75px;
}
@media (min-width: 992px) {
    .ingredient-detail-header {
        margin-bottom: 150px;
    }
}

.ingredient-detail-title {
    display: block;
    max-width: 815px;
    margin: 10rem auto 4rem;
    color: #c00d1e;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #c00d1e;
    padding-bottom: 2rem;
}
@media (min-width: 768px) {
    .ingredient-detail-title {
        font-size: 3rem;
    }
}
@media (min-width: 992px) {
    .ingredient-detail-title {
        font-size: 4rem;
    }
}

.ingredient-detail-image {
    text-align: center;
    max-width: 480px;
    margin-left: auto;
}
.ingredient-detail-image img {
    max-width: 100%;
    height: auto;
}

.ingredient-detail-image-tags {
    display: flex;
    justify-content: space-around;
}

.ingredient-detail-image-tag {
    width: 80px;
    height: 80px;
    text-align: center;
    font-weight: bold;
    font-size: 0.875rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #c00d1e;
    overflow: hidden;
    color: #c00d1e;

}
.ingredient-detail-image-tag:nth-child(1) {
    margin-top: 2rem;
    animation: move1 3s linear alternate infinite;
}
.ingredient-detail-image-tag:nth-child(2) {
    margin-top: 0;
    animation: move2 3.5s linear alternate infinite;
}
.ingredient-detail-image-tag:nth-child(3) {
    margin-top: 3rem;
    animation: move3 4s linear alternate infinite;
}
.ingredient-detail-image-tag:nth-child(4) {
    margin-top: 1.5rem;
    animation: move4 2.5s linear alternate infinite;
}

@keyframes move1 {
    100% {
        transform: translate(-6px, 7px);
    }
}
@keyframes move2 {
    100% {
        transform: translate(3px, -5px);
    }
}
@keyframes move3 {
    100% {
        transform: translate(-4px, 5px);
    }
}
@keyframes move4 {
    100% {
        transform: translate(2px, -4px);
    }
}

.ingredient-detail-desc {
    max-width: 330px;
    margin: 0 auto;
}

.ingredient-detail-country-image img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}


/* Social */
.ingredient-detail-social .list-inline-item {
    margin: 0.25rem 1rem;
}

.ingredient-detail-social a {
    display: block;
    line-height: 1;
    text-decoration: none;
    font-size: 2.375rem;
}

.ingredient-detail-social a:hover {
    text-decoration: none;
}

/* list */
.ingredient-detail-ingredientlist {
    margin: 100px auto;
}
@media (min-width: 992px) {
    .ingredient-detail-ingredientlist {
        margin: 200px auto;
    }
}
