@font-face {
    font-family: 'Roobert TRIAL';
    src: url('../vendor/fonts/roobert/Roobert.woff2') format('woff2'),
         url('../vendor/fonts/roobert/Roobert.woff') format('woff'),
         url('../vendor/fonts/roobert/Roobert.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'recoleta';
    src: url('../vendor/fonts/recoleta/Recoleta-RegularDEMO.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'pais';
    src: url('../vendor/fonts/pais/Pais-Regular.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'pais';
    src: url('../vendor/fonts/pais/Pais-Medium.otf') format('opentype');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: 'pais';
    src: url('../vendor/fonts/pais/Pais-SemiBold.otf') format('opentype');
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: 'pais';
    src: url('../vendor/fonts/pais/Pais-Bold.otf') format('opentype');
    font-style: normal;
    font-weight: 700;
}
:root {
    --primary: #85513C;
    --light-primary: #F2E0C9;
    --soft-primary-1: #F9F7F3;
    --soft-primary-2: #8F604C;
    --soft-primary-3: #A1E3F9;
    --soft-primary-4: #D1F8EF;
    --soft-primary-5: #F2F8D1;
    --soft-primary-6: #E3D1F8;
    --secondary: #4B352A;
    --tertiary: #FBF10D;
    --light: #FFFFFF;
    --dark: #000000;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'pais', sans-serif;
    font-size: 16px;
    background-color: var(--primary);
    min-height: 100vh;
    overflow: auto;
}

body.vector-bottom-body {
    background-image: 
        url(../../../template-photobox/assets/img/vector_assets/vector_bottom.png), 
        url(../../assets/img/vector_assets/rectangle_background.png);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom left, center;
    background-size: 200px, cover;
}

.bg--primary {
    background-color: var(--primary);
}

.bg--light-primary {
    background-color: var(--light-primary);
}

.bg--soft-primary-1 {
    background-color: var(--soft-primary-1);
}

.bg--soft-primary-2 {
    background-color: var(--soft-primary-2);
}

.bg--soft-primary-3 {
    background-color: var(--soft-primary-3);
}

.bg--soft-primary-4 {
    background-color: var(--soft-primary-4);
}

.bg--secondary {
    background-color: var(--secondary);
}

.bg--tertiary {
    background-color: var(--tertiary);
}

.font-saint-regus {
    font-family: "Roobert TRIAL";
}

.font-rb-multima {
    font-family: "Roobert TRIAL";
}

.font-pais {
    font-family: "pais"!important;
}

.logo-light {
    filter: brightness(0) saturate(100%) invert(1);
}

.navbar {
    border-bottom: 1px solid #EBE3D6;
}

.navbar-custom {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0px 0px var(--dark);
}

.navbar-brand span {
    color: var(--primary);
}

.nav-item {
    padding: 0 1rem;
}

.nav-link {
    font-weight: 600;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: var(--primary) !important;
}

.border-none {
    border: none!important;
}

.border--soft-primary-1 {
    border: 3px solid var(--soft-primary-1);
}

.border--soft-primary-2 {
    border: 3px solid var(--soft-primary-2);
}

.btn {
    padding: 7px 20px;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.btn-primary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--dark);
}

.btn-primary:hover {
    background-color: var(--primary);
    border: 2px solid var(--dark);
}

.btn-outline-primary {
    background-color: white;
    border: 2px solid var(--dark);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border: 2px solid var(--dark);
}

.btn:first-child:active:focus-visible,
.btn-outline-primary:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

:not(.btn-check)+.btn-primary:active:focus-visible,
:not(.btn-check)+.btn-outline-primary:active:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

.btn:first-child:active,
:not(.btn-check)+.btn:active,
:not(.btn-check)+.btn-outline-primary:active {
    background-color: var(--primary);
    border: 2px solid var(--dark);
}

.btn-light {
    background-color: var(--light);
    border: 2px solid var(--dark);
}

.btn-light:hover {
    background-color: var(--light);
    border: 2px solid var(--dark);
}

.btn-outline-light {
    background-color: white;
    border: 2px solid var(--dark);
    color: var(--light);
}

.btn-outline-light:hover {
    background-color: var(--light);
    border: 2px solid var(--dark);
}

.btn:first-child:active:focus-visible,
.btn-outline-light:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

:not(.btn-check)+.btn-light:active:focus-visible,
:not(.btn-check)+.btn-outline-light:active:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

.btn:first-child:active,
:not(.btn-check)+.btn:active,
:not(.btn-check)+.btn-outline-light:active {
    background-color: var(--light);
    border: 2px solid var(--dark);
}

.btn-soft-primary-3 {
    background-color: var(--soft-primary-3);
    border: 2px solid var(--dark);
}

.btn-soft-primary-3:hover {
    background-color: var(--soft-primary-3);
    border: 2px solid var(--dark);
}

.btn-outline-soft-primary-3 {
    background-color: white;
    border: 2px solid var(--dark);
    color: var(--soft-primary-3);
}

.btn-outline-soft-primary-3:hover {
    background-color: var(--soft-primary-3);
    border: 2px solid var(--dark);
}

.btn:first-child:active:focus-visible,
.btn-outline-soft-primary-3:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

:not(.btn-check)+.btn-soft-primary-3:active:focus-visible,
:not(.btn-check)+.btn-outline-soft-primary-3:active:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

.btn:first-child:active,
:not(.btn-check)+.btn:active,
:not(.btn-check)+.btn-outline-soft-primary-3:active {
    background-color: var(--soft-primary-3);
    border: 2px solid var(--dark);
}

.btn-soft-primary-5 {
    background-color: var(--soft-primary-5);
    border: 2px solid var(--dark);
}

.btn-soft-primary-5:hover {
    background-color: var(--soft-primary-5);
    border: 2px solid var(--dark);
}

.btn-outline-soft-primary-5 {
    background-color: white;
    border: 2px solid var(--dark);
    color: var(--soft-primary-5);
}

.btn-outline-soft-primary-5:hover {
    background-color: var(--soft-primary-5);
    border: 2px solid var(--dark);
}

.btn:first-child:active:focus-visible,
.btn-outline-soft-primary-5:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

:not(.btn-check)+.btn-soft-primary-5:active:focus-visible,
:not(.btn-check)+.btn-outline-soft-primary-5:active:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

.btn:first-child:active,
:not(.btn-check)+.btn:active,
:not(.btn-check)+.btn-outline-soft-primary-5:active {
    background-color: var(--soft-primary-5);
    border: 2px solid var(--dark);
}

.btn-soft-primary-6 {
    background-color: var(--soft-primary-6);
    border: 2px solid var(--dark);
}

.btn-soft-primary-6:hover {
    background-color: var(--soft-primary-6);
    border: 2px solid var(--dark);
}

.btn-outline-soft-primary-6 {
    background-color: white;
    border: 2px solid var(--dark);
    color: var(--soft-primary-6);
}

.btn-outline-soft-primary-6:hover {
    background-color: var(--soft-primary-6);
    border: 2px solid var(--dark);
}

.btn:first-child:active:focus-visible,
.btn-outline-soft-primary-6:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

:not(.btn-check)+.btn-soft-primary-6:active:focus-visible,
:not(.btn-check)+.btn-outline-soft-primary-6:active:focus-visible {
    box-shadow: 2px 2px 0px 0px var(--dark);
}

.btn:first-child:active,
:not(.btn-check)+.btn:active,
:not(.btn-check)+.btn-outline-soft-primary-6:active {
    background-color: var(--soft-primary-6);
    border: 2px solid var(--dark);
}

.btn {
    border-radius: 1rem;
    font-family: 'recoleta', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.btn:hover {
    box-shadow: inset 0 0 0 2px var(--dark);
}

.btn i {
    width: 30px;
    height: 30px;
    padding: 0.3rem;
    border-radius: 0.5rem;
    border: 2px solid var(--dark);
    background-color: white;
}

.btn i.fa-arrow-up::before {
    transform: rotate(45deg);
    display: inline-block;
}

.btn-rounded {
    border-radius: 2rem;
    font-weight: 400;
}

.rounded {
    border-radius: 2rem !important;
}

.vector-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.vector-top img {
    width: 100vw;
}

.box-content {
    width: 100%;
    padding: 1.5rem 1.5rem;
    border-radius: 15px;
    background-color: var(--light-primary);
    background-image:
        linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)), /* putih 30% transparan */
        url('../../assets/img/vector_assets/bg_kayu.png');
    background-size: cover;
    background-position: center;
}

.box-content-full {
    width: 100%;
    padding: 1.5rem;
    border-radius: 25px;
    border: 3px solid var(--dark);
    background-color: var(--soft-primary-1);
    background-image: url('../../assets/img/background/bg-grid.png');
    background-size: cover;
    background-position: left center;
    position: relative;
}

.box {
    padding: 1rem;
    border-radius: 25px;
    /* border: 2px solid var(--dark); */
    margin: 30px 0 30px 0;
}

.layout.active .box {
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--secondary);
    box-shadow: 2px 2px 0px 0px var(--dark);
}

.box-list-frame {
    width: 100%;
    height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.img-pin-atas {
    display: block;
    position: absolute;
    top: 0;
    width: 700px;
    margin-top: -3rem;
}

.bottom_rectangle_vector {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 15px 15px;
}

#scrollable-container {
    height: 94vh;
    overflow-y: auto;
    padding-bottom: 3rem!important;
}

/* Untuk Chrome, Edge, Safari */
#scrollable-container::-webkit-scrollbar {
    width: 8px; /* Lebar scrollbar */
}

#scrollable-container::-webkit-scrollbar-track {
    background: var(--primary); /* Warna background track */
    border-radius: 20px;
}

#scrollable-container::-webkit-scrollbar-thumb {
    background: var(--light); /* Warna thumb */
    border-radius: 20px;
}

#scrollable-container::-webkit-scrollbar-thumb:hover {
    background: var(--light-primary); /* Warna saat hover */
}

/* Untuk Firefox */
#scrollable-container {
    scrollbar-width: thin; /* tipis */
    scrollbar-color: var(--light) var(--primary); /* thumb & track */
}

/* custom scroll bar .box-list-frame */

/* Bagian track (jalur scrollbar) */
.box-list-frame::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Bagian "isi" scroll (yang digeser) */
.box-list-frame::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

/* Bagian latar belakang track */
.box-list-frame::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbnail-filter {
    width: 50px;
    height: 50px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 50%;
}
.thumbnail-filter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.title-section {
    font-size: 3rem;
    /* font-weight: 600!important; */
    color: var(--secondary);
}

.scanner {
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.shadow {
    box-shadow: 9px 9px 0 #c9c9c9!important;
}

.modal-content {
    background-color: var(--soft-primary-1);
    color: var(--seondary);
    border-radius: 12px;
}

.modal-title {
    font-weight: 700;
    color: var(--secondary);
}

.modal .box .time {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
}

.box .time {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.box-hasil-foto {
    width: 50vw;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--soft-primary-4);
    position: relative;
    margin: 10px 0 10px 0 !important;
}

.box-hasil-foto .retake-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    border: 1px solid var(--light);
    color: var(--light);
    padding: 0.5rem 1rem;

}

.box-hasil-foto img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.capture-foto {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.capture-foto.loading {
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

#live-camera {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.capture-foto .timer-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid var(--light);
    font-size: 1.5rem;
    color: var(--light);
}

.list-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid var(--light);
    font-size: 1.5rem;
    color: var(--light);
}

.capture-foto img {
    width: 100%;
    aspect-ratio: 4/3;
}

/* Layout 4 Foto */

.frame-edit-layout-4 {
    width: 100%;
    background-color: #fff;
    position: relative;
}

.frame-edit-layout-4 .frame-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    /* column-gap: 1rem; */
    row-gap: 0rem;
    width: 100%;
    height: 90%;
    padding: 1.5rem 0.5rem;
    /* background-color: #8ec0f4; */
    position: absolute;
    z-index: 1;
}

.frame-edit-layout-4 .foto-grid {
    width: 100%;
    overflow: hidden;
}

.frame-edit-layout-4 .foto-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* transform: scaleX(-1); */
}

.frame-edit-layout-4 .hasil-edit {
    width: 50%;
    aspect-ratio: 1/3;
}

.frame-edit-layout-4 .hasil-edit {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    z-index: 2;
}

.frame-edit-layout-4 .sticker-edit {
    width: 100%;
    aspect-ratio: 2/3;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

 /* Layout 6 Foto  */
.frame-edit-layout-6 {
    width: 100%;
    background-color: #fff;
    position: relative;
}

.frame-edit-layout-6 .frame-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    /* column-gap: 1.1rem; */
    row-gap: 0rem;
    width: 100%;
    height: 93%;
    padding: 0.5rem;
    /* background-color: #8ec0f4; */
    position: absolute;
    z-index: 1;
}

.frame-edit-layout-6 .foto-grid {
    width: 100%;
    overflow: hidden;
}

.frame-edit-layout-6 .foto-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* transform: scaleX(-1); */
}

.frame-edit-layout-6 .hasil-edit {
    width: 50%;
    aspect-ratio: 1/3;
}

.frame-edit-layout-6 .hasil-edit {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    z-index: 2;
}

.frame-edit-layout-6 .sticker-edit {
    width: 100%;
    aspect-ratio: 2/3;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

.carousel-control-prev,
.carousel-control-next {
    width: fit-content;
    height: fit-content;
    align-items: normal;
    justify-content: center;
}

.carousel-control-prev {
    margin-left: 25%;
}

.carousel-control-next {
    margin-right: 25%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e")!important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e")!important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    border: 1px solid var(--primary);
    border-radius: 50%;
    padding: 1rem;
    background-size: 60%;
    background-color: var(--light);
    color: black;
}

.label-custom {
    font-family: "pais";
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control-custom {
    border: 2px solid var(--dark);
    border-radius: 1rem;
    background-color: var(--light);
    font-family: "Roobert TRIAL";
    font-size: 1.2rem;
    padding: 1rem;
}

input[name="rating"] {
    display: none;
}

.rating label img {
    filter: contrast(30%);
    cursor: pointer;
}

.rating label.active img {
    filter: contrast(100%);
}

.hasil-foto-frame {
    width: 50%;
    aspect-ratio: 93/140;
}

.hasil-foto-frame img {
    width: 100%;
    aspect-ratio: 93/140;
}

.hasil-foto-single {
    width: 90%!important;
    height: auto;
}

.hasil-foto-single img {
    width: 90%!important;
    height: auto;
    /* transform: scaleX(-1); */
}

@media (max-width: 1065px) {
    .timer-wrapper {
        margin-top: 2rem!important;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .img-pin-atas {
        width: 400px;
        height: 70px;
        margin-top: -2.2rem;
    }

    .title-section {
        font-size: 2rem;
    }

    /* .vector-bottom img,
    .vector-top img {
        width: 50vw;
    } */

    .box-hasil-foto {
        width: 70vw;
    }

    .carousel-control-prev {
        margin-left: 5%;
    }

    .carousel-control-next {
        margin-right: 5%;
    }

    .timer-wrapper {
        margin-top: 1rem!important;
    }

    #scrollable-container {
        height: 90vh;
        overflow-y: auto;
        padding-bottom: 3rem!important;
    }
}

@media (max-width: 490px) {
    .img-pin-atas {
        width: 310px;
    }

    .carousel-control-next,
    .carousel-control-prev {
        margin-top: 2rem;
    }
}

/* Filter */

/* Clarendon */
.filter-clarendon {
    filter: brightness(1.1) contrast(1.3) saturate(1.4);
}

/* Gingham */
.filter-gingham {
    filter: brightness(1.05) contrast(1) sepia(0.2);
}

/* Juno */
.filter-juno {
    filter: contrast(1.2) saturate(1.5) hue-rotate(-10deg);
}

/* Lark */
.filter-lark {
    filter: brightness(1.15) saturate(1.4);
}

/* Ludwig */
.filter-ludwig {
    filter: brightness(1.1) contrast(1.15) saturate(0.85);
}

/* Mono */
.filter-mono {
    filter: grayscale(100%);
}