@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: "Kanit", serif;
    font-weight: 500;
}

p {
    margin: 0;
}

/* Border */
.light-gray-border {
    border: 1.4px solid #dadada80;
}

/* Background */

.bg-mode {
    background: var(--tone);
}

.bg-main {
    background: var(--theme-main);
}

.bg-main-40 {
    background: var(--theme-main-20);
}

/* Font */

.font-light {
    font-weight: 200;
}

.font-semi {
    font-weight: 300;
}

/* Text color */

.color-main {
    color: var(--theme-main) !important;
}

.color-main-20 {
    color: var(--theme-main-20);
}

.color-mode {
    color: var(--tone-text);
}

/* Another */
.nav-link.active {
    background: var(--theme-main);
    color: white !important;
    border-radius: 0.5vh;
    font-size: 0.9rem;
    padding-left: 10px;
    padding-right: 10px;
}

.nav-link {
    font-size: 0.9rem;
    color: #646464 !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, ">");
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.two-tone-dark {
    background: #cccccc50;
    color: #000;
    border: none;
}

.two-tone-blue {
    background: #b1b3ff50;
    color: #1c3eff;
    border: none;
}

.two-tone-green {
    background: #beffb150;
    color: #12971d;
    border: none;
}

.two-tone-pink {
    background: #efb1ff50;
    color: #cb29e0;
    border: none;
}

.stars {
    font-size: 30px;
    cursor: pointer;
    color: gray;
}

.stars .star {
    display: inline-block;
}

.stars .star.selected {
    color: gold;
}

.accordion-button:not(.collapsed) {
    background-color: var(--theme-main-20);
    color: var(--theme-main);

}

.upload-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #777;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-container:hover {
    border-color: #888;
}

.upload-container svg {
    width: 50px;
    height: 50px;
    fill: #bbb;
    margin-bottom: 10px;
}

.upload-container input[type="file"] {
    display: none;
}

img.prize {
    transform: rotate(-260deg) translate(-16px, -20%) translateY(-10px) !important;
    max-height: 100px;
    width: auto;
}

@media only screen and (max-width: 770px) {
    img.prize {
        max-height: 130px;
    }
}

@media only screen and (max-width: 420px) {
    img.prize {
        max-height: 40px;
    }
}

@media (min-width: 992px) {
    .post_bar {
        flex: 0 0 auto;
        width: 45%;
    }
}

@media only screen and (max-width: 770px) {
    img.prize {
        max-height: 130px;
    }
}

@media only screen and (max-width: 420px) {
    img.prize {
        max-height: 40px;
    }
}
@media only screen and (max-width: 1180px) {
    .collapse:not(.show){
        display: none!important;
    }
    .navbar-expand-lg .navbar-toggler{
        display: block;
    }
}

/* Card */
.chest {
    border-radius: 10px;
}

.chest-inner {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.chest-front,
.chest-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}


.chest-back {
    transform: rotateY(180deg);
}

.btn.bg-main.text-white:hover {
    background: var(--theme-main);
}

.df-center {
    display: flex;
    align-items: center;
}

@media only screen and (max-width: 720px) {
    .df-center.only-lg {
        display: block !important;
    }
}

.item-active {
    border: 1px solid var(--theme-main);
}

.btn.bg-main[disabled] {
    background: #8d8d8d;
}

.chest_opened {
    transform: rotateY(180deg) !important;
    ;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    display: inline-block;
    animation: shake 0.5s ease-in-out infinite;
}
.like_btn.active{
    color: #f15151!important;
    & .text-muted{
        color: #f15151!important;
    }
}
.dropdown-menu{
    padding: 20px 15px;
}
.dropdown-item{
    margin-bottom: 3px;
    border: #ffffff00 solid 1px;
    transition: 0.1s ease-in-out;
}
.dropdown-item:hover{
    background: var(--theme-main-20);
    color: var(--theme-main)!important;
    border-radius: 0.5vh;
    border: var(--theme-main) solid 1px;    
    
    & i{
        color: var(--theme-main)!important;
    }
}
@media (min-width: 992px) {
    .col-lg-3-5 {
        flex: 0 0 auto;
        width: 23.5%;
    }
}
.offcanvas-body .nav-link{
    display: block;
    padding: 10px 20px;
    width: 100%;
    margin-bottom: 13px;
}