/* Font */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.poppins {
    font-family: 'Poppins', sans-serif;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.bg-main {
    background-color: #009688;
}

.bg-amber {
    background-color: #C0CA33;
}

.bg-indigo {
    background-color: #7986CB;
}

.bg-orange {
    background-color: #FF7043;
}

.bg-pink {
    background-color: #F06292;
}

.bg-cyan {
    background-color: #26C6DA;
}

.bg-teal {
    background-color: #26A69A;
}

.text-main {
    color: #009688;
}

.text-gray {
    color: #DCDCDC;
}

.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(
        to right,
        #f6f7f8 0%,
        #edeef1 20%,
        #f6f7f8 40%,
        #f6f7f8 100%
    );
    background-repeat: no-repeat;
    background-size: 800px 800px;
    display: inline-block;
    position: relative;

    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-name: placeholderShimmer;
    animation-name: placeholderShimmer;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
}

@keyframes placeholderShimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

@-webkit-keyframes placeholderShimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/* Nav */
.navbar-toggler {
    border: none;
    outline: none;
}

.navbar a {
    font-size: 1rem;
    /* font-weight: 400; */
}

.nav-brands {
    display: none;
}

.nav-brands-collapse {
    display: block;
}

.navbar-second {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.navbar-logo {
    margin-top: 0.5rem;
}

.navbar-logo a {
    display: flex;
    justify-content: center;
}

.navbar-logo a img {
    width: 40%;
    height: auto;
}

.navbar-contact {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.nav-contact-title {
    font-size: 1rem;
}

.nav-contact-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
}

/* .navbar-nav > li > .dropdown-menu { background-color: #1e88e5; }

.navbar-nav > li > .dropdown-menu a{ color: #ffffff;  } */

.input-search:focus {
    color: #495057;
    background-color: #fff;
    border-color: #009688;
    outline: 0;
    box-shadow: 0 0 0 0.2rem RGBA(0,150,136,0.5);
}

/* Jumbotron */
.jumbotron {
    background: url(/assets/frontend/img/vape.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: white !important;
    height: 450px;
}

/* Carousel */
.carousel .carousel-item {
    height: 500px;
}
  
.carousel-item img {
    position: absolute;
    object-fit: cover;
    min-height: 500px;
}

.carousel-item:after {
    content:"";
    display:block;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background:rgba(0,0,0,0.5);
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
}

.item {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.unggulan .circle-icon {
    background-color:rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: 50%;
}

.unggulan .card-landing {
    height: 350px;
}

.unggulan .svg {
    width: 64px;
    height: 64px;
}

.modal-dialog {
    max-width: 90vh;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Breadcrumb */
ol.breadcrumb {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    background-color: transparent;
}

ol.breadcrumb > li > a {
    color: rgba(0, 0, 0, 0.5);
}

ol.breadcrumb > li > a:hover {
    color: rgba(0, 0, 0, 0.7);
}

ol.breadcrumb > li > a:hover,
ol.breadcrumb > li > a:focus {
    text-decoration: none;
}

ol.breadcrumb > li.active {
    color: rgba(0, 0, 0, 0.9);
}

/* Berita */
.berita .card {
    width: 100%;
}

.berita .card .card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.berita-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
   -webkit-box-orient: vertical;
}

.berita-date {
    font-size: 0.75rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}

.berita-subtitle {
    font-size: 0.8rem;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* number of lines to show */
            line-clamp: 5; 
    -webkit-box-orient: vertical;
}

/* Dokumentasi */
.dokumentasi .card {
    width: 100%;
    height: 200px;
}

.dokumentasi .card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-item .page-link {
    color: #009688;
}

.page-item.active .page-link {
    background-color: #009688;
    border-color: #009688;
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.img-empty {
    width: 50%;
}

.text-empty {
    font-weight: 400;
    font-size: 1rem;
}

.shimmer-product-image {
    width: 100%;
    height: 30vh;
}

.shimmer-product-title {
    width: 80%;
    height: 15px;
    margin-top: 0.5rem;
}

.shimmer-product-price {
    width: 50%;
    height: 13px;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Store */
.dropdown-item:focus {
    color: #fff;
    background-color: #343a40;
}

.dropdown-item.active {
    background-color: #343a40;
}

/* Guru */
.guru .card {
    width: 100%;
}

.guru .card .card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.guru-title {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.guru-subtitle {
    font-size: 1rem;
    font-weight: 300;
}

/* Detail */
.detail .img-detail {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
}

.detail-title {
    font-weight: 500;
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.detail-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    text-align: justify;
    margin-bottom: 0.5rem;
}

.shimmer-detail-figure {
    width: 100%;
    height: 90vh;
    margin-bottom: 1rem;
}

.shimmer-detail-title {
    width: 50%;
    height: 30px;
    margin-bottom: 1.25rem;
}

.shimmer-detail-category {
    width: 15%;
    height: 17px;
    margin-bottom: 1.25rem;
}

.shimmer-detail-price {
    width: 30%;
    height: 20px;
    margin-bottom: 1.25rem;
}

.shimmer-detail-stok {
    width: 20%;
    height: 18px;
    margin-bottom: 1.25rem;
}

.shimmer-detail-pesan {
    width: 25%;
    height: 30px;
}

/* About */
.img-about {
    width: 80vw;
    max-width: 100%;
}

/* Footer */
footer {
    font-size: 0.9rem;
    font-weight: 300;
}

footer h5 {
    font-size: 0.95rem;
}

footer ul > li > a:hover {
    color: white;
    text-decoration: none;
}

/* footer ul li a {
    color: rgba(255, 255, 255, 0.5);
}

footer ul li a:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
} */

/* Tablet */
@media (min-width: 768px) {
    .navbar-brand {
        display: block;
    }

    /* .navbar-logo {
        margin-top: 0;
    }
    
    .navbar-logo a {
        display: flex;
        justify-content: flex-start;
    } */
    
    .navbar-logo a img {
        width: 30%;
        height: auto;
    }
    
    .navbar-contact {
        display: flex;
        gap: 1rem;
        flex-direction: row;
        margin-top: 0;
        margin-bottom: 0;
    }

    .nav-contact-title {
        font-size: 0.9rem;
    }

    .nav-contact-subtitle {
        font-size: 0.75rem;
    }

    /* Jumbotron */
    .jumbotron .display-4 {
        font-size: 5.5rem;
        font-weight: 300;
        line-height: 1.2;
    }

    /* Berita */
    /* .berita .card .card-img-top {
        height: auto;
    } */

    .guru-title {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    
    .guru-subtitle {
        font-size: 0.95rem;
        font-weight: 300;
    }

    .img-empty {
        width: 40%;
    }

    /* About */
    .img-about {
        width: 50vw;
    }
}

/* Desktop */
@media (min-width: 992px) {
    
    /* .navbar a {
        font-size: 0.85rem;
    } */

    .navbar-brand {
        display: none;
    }

    .nav-brands {
        display: flex;
    }

    .nav-brands-collapse {
        display: none;
    }

    .navbar-second {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }

    .navbar-logo {
        flex: 0 0 20%;
        margin-top: 0;
    }
    
    .navbar-logo a {
        display: flex;
        justify-content: flex-start;
    }
    
    .navbar-logo a img {
        width: 60%;
        height: auto;
    }

    /* .navbar-contact {
        flex: 1;
    } */

    .navbar-contact > div {
        flex: 1;
    }

    .carousel-item img {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        min-height: 500px;
    }
    
    .selengkapnya {
        opacity: 0.8;
    }

    .selengkapnya:hover {
        opacity: 1;
        text-decoration: none;
    }

    /* dokumentasi */
    .img-overlay {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0.5;
        transition: 0.5s ease;
        background: rgba(0, 0, 0, 0.5);
    }

    .card:hover .img-overlay {
        opacity: 0;
    }

    .card-img-overlay a {
        display: none;
        transition: opacity 1s ease-out;
        opacity: 0.5;
    }

    .card:hover .card-img-overlay a {
        display: block;
        opacity: 0;
    }

    /* berita */
    .berita .card {
        box-shadow: 0px 0px 0px grey;
        transition: box 0.3s, transform 0.2s;
    }

    .berita .card:hover {
        box-shadow: 0.8px 0.9px 3px grey;
        transform: scale(1.05);
    }

    .guru-title {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }
    
    .guru-subtitle {
        font-size: 0.9rem;
        font-weight: 300;
    }

    .img-empty {
        width: 25%;
    }

    /* About */
    .img-about {
        width: 50vw;
    }

    /* Contact */
    .contact .card i,
    .contact .card h5 {
        color: rgba(0, 0, 0, 0.5);
    }

    .contact .card:hover i,
    .contact .card:hover h5 {
        color: rgba(0, 0, 0, 0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .collapsing {
        transition-property: height, visibility;
        transition-duration: 0.35s;
    }
}

@media all and (transform-3d), (-webkit-transform-3d) {
    .carousel-inner > .item.next,
    .carousel-inner > .item.active.right {
      -webkit-transform: translate3d( 0, 0, 0);
      transform: translate3d( 0, 0, 0);
    }
    .carousel-inner > .item.prev,
    .carousel-inner > .item.active.left {
      -webkit-transform: translate3d( 0, 0, 0);
      transform: translate3d( 0, 0, 0);
    }
    .carousel-inner > .item.next.left,
    .carousel-inner > .item.prev.right,
    .carousel-inner > .item.active {
       -webkit-transform: translate3d(0, 0, 0);
       transform: translate3d(0, 0, 0);
    }
}
