@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@100;200;300;400;500;600;700&display=swap');
html {
    scroll-behavior: smooth;
}
:root {
    --color-main: #754099;
    --color-theme: #cea763;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body {
    /* background-color: #f8f8f8; */
    background-image: url(img/bkopacity.svg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
}
header {
    /* background: linear-gradient(23deg, rgb(229 217 236) 0%, rgb(235 235 235) 100%); */
    /* border-radius: 0px 0px 0px 100%; */
    width: 100%;
    background-color: white;
    background-image: linear-gradient(rgb(255 255 255 / 0%), rgb(255 255 255)), url(img/bk-head.jpg);
    padding-bottom: 35px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-size: cover;
    overflow: hidden;
}
.bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}
.logo {
    width: 100%;
    max-width: 200px;
    padding: 5px;
}
ul.menu {
    display: flex;
    gap: 10px;
    list-style: none;
}
.menu a {
    transition: all 0.3s ease-out;
    text-decoration: none;
    padding: 4px 20px;
    background-color: white;
    border-radius: 40px;
    font-size: 16px;
    color: #763f97;
}
.menu a:hover {
    background-color: #763f97;
    color: white;
}
p {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Sarabun', sans-serif;
    color: #7f7f7f;
    line-height: 1.4;
}
span {
    font-size: 10px;
    color: #7f7f7f;
}
input {
    font-size: 16px;
    padding: 9px;
    background-color: white;
    outline: none;
    border: solid 1px var(--color-theme);
    border-radius: 8px;
    min-width: 30px;
}
h1, h2, h3 {
    font-family: 'Mitr', sans-serif;
}
h2 {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
}
h1 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
}
h1#countDown {
    font-weight: bold;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-family: 'IBM Plex Sans Thai Looped', sans-serif;
    padding: 12px;
    height: 100%;
}
#countDown span {
    display: flex;
    font-size: 36px;
    background-color: var(--color-theme);
    color: white;
    align-items: center;
    justify-content: center;
}
#countDown b {
    background-color: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    line-height: 0;
    height: 100%;
    padding: 12px 0px;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}
.preview {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 10px 10px;
}
.slide {
    position: relative;
    display: flex;
    transition: all 0.3s ease-out;
    left: 0;
    width: 100%;
    /* height: 100%; */
}
.preview-img {
    position: relative;
    box-shadow: 0px 2px 5px 0px rgb(0 0 0 / 10%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    background-color: white;
    align-items: center;
}
.preview img {
    transition: all 0.3s ease-out;
    width: 100%;
    /* height: 100%; */
    /* border-radius: 10px; */
    object-fit: cover;
    /* object-position: top; */
    /* aspect-ratio: 1/1; */
}
.auction2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auction2 img {
    width: 65px;
    border-radius: 5px;
    padding: 2px;
    aspect-ratio: 4/5;
}
.auction {
    box-shadow: 6px 5px 9px rgb(0 0 0 / 10%);
    padding: 10px;
    border-radius: 10px;
    background-color: white;
    display: grid;
}
.best-list {
    transition: all 0.3s ease-out;
    padding: 2px 5px;
    /* box-shadow: 0px 2px 5px 0px rgb(0 0 0 / 10%); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    border-bottom: solid 1px #efefefef;
    position: relative;
}
/* .auction2 h1 {
    color: rgb(117,64,153);
    font-weight: bold;b
} */
.price {
    text-align: right;
}
.price h1 {
    /* font-family: sans-serif; */
    font-weight: 600;
    font-family: 'IBM Plex Sans Thai Looped', sans-serif;
}
.celebrity {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 20px;
    margin: auto;
}
.box {
    background-color: white;
    box-shadow: 6px 5px 9px rgb(0 0 0 / 10%);
    display: flex;
    padding: 6px;
    gap: 5px;
    border-radius: 6px;
}

.celebrity img {
    width: 80px;
    height: 80px;
    border-radius: 6px 6px 0px 0px;
    margin-bottom: -2px;
}
.description {
    padding: 6px;
}
.description h1 {
    font-size: 21px;
    color: #1aad93;
}
.description p {
    font-size: 14px;
}
.celebrity button {
    display: block;
    border: 0;
    background-color: rgb(26 173 147);
    font-size: 14px;
    color: white;
    transition: all 0.5s ease-out;
    padding: 2px 17px;
    border-radius: 0px 0px 6px 6px;
    margin-top: -5px;
    width: 100%;
    cursor: pointer;
    font-family: 'Mitr', sans-serif;
    font-weight: 300;
}
.celebrity button:hover {
    opacity: 0.8;
}
.popup {
    transition: all 0.3s ease-out;
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    background-color: rgb(42 42 42 / 30%);
    height: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.popup h1 {
    display: flex;
    grid-column: span 2;
    font-size: 27px;
    color: white;
    text-align: center;
    margin: auto;
    overflow: hidden;
    align-items: center;
    gap: 25px;
    padding-right: 31px;
    width: 100%;
    border-radius: 5px;
}
.popup-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background-color: white;
    width: 100%;
    max-width: 500px;
    display: none;
    overflow: scroll;
    max-height: 100%;
    border-radius: 10px;
}
.popup-input {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.popup2 {
    height: 100%;
}
.bt-form {
    grid-column: span 2;
    display: inline-flex;
    width: fit-content;
    margin: 20px auto;
    border: solid 2px var(--color-theme);
    border-radius: 35px;
}
.bt-form button, #cansel {
    transition: all 0.3s ease-out;
    border: 0;
    padding: 15px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: 400;
    padding: 10px 30px;
}
.bt-form button:hover {
    opacity: 0.8;
}
input[name='price'] {
    grid-column: span 2;
}
::placeholder {
    color: var(--color-theme);
}
#status {
    grid-column: span 2;
    color: red;
    font-size: 13px;
    text-align: center;
    font-weight: 200;
    margin-bottom: 10px;
    min-height: 18px;
}
.bk-load {
    position: fixed;
    background-color: rgb(0 0 0 / 52%);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.load {
    width: 4rem;
    height: 4rem;
    border: solid 3px red;
    border-radius: 50%;

    border-color: #f8f9fa;
    border-top-color: rgb(248, 249, 250);
    border-right-color: rgb(248, 249, 250);
    border-bottom-color: rgb(248, 249, 250);
    border-left-color: rgba(248,249,250,0.15);
    border-left-color: rgba(248,249,250,0.15);

    -webkit-animation:spin .8s linear infinite;
    -moz-animation:spin .8s linear infinite;
    animation:spin .8s linear infinite;

    top: calc(50% - 2rem);
    left: calc(50% - 2rem);
    position: absolute;
}
.bk-load img {
    width: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.best-list:hover {
    background-color: aliceblue;
    box-shadow: 0px 2px 5px 0px rgb(0 0 0 / 10%);
}
.best-list button {
    position: absolute;
    right: 2px;
    bottom: 2px;
    background-color: var(--color-theme);
    color: #ffffff;
    border: 0;
    padding: 1px 38px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    display: none;
}
.preview button {
    cursor: pointer;
    transition: all 0.3s ease-out;
}
button#prev {
    position: absolute;
    left: 0px;
    padding: 10px 15px;
    background: transparent;
    border: 0px;
}
button#prev:hover, button#next:hover {
    opacity: 1;
}
button#next {
    position: absolute;
    right: 0px;
    padding: 10px 15px;
    background: transparent;
    border: 0px;
}
/* video::-webkit-media-controls {
    visibility: hidden;
}

video::-webkit-media-controls-enclosure {
    visibility: visible;
} */
footer i {
    color: #763f97 !important;
}
.preview-img i {
    font-size: 35px;
    color: white;
}

#next, #prev {
    display: none;
}
.count-head {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    max-width: 450px;
}
.slidee {
    min-width: 1000px;
}
footer {
    background: transparent !important;
}
.timesss {
    display: grid;
    border-radius: 10px;
    box-shadow: 6px 5px 9px rgb(0 0 0 / 10%);
    font-size: 36px;
    color: white;
    height: 100%;
    overflow: hidden;
}
.count-head span {
    padding: 16px 0px;
}
.count-head b {
    padding: 19px 0px;
    display: flex;
    align-items: center;
}
@media (max-width: 1170px) {
    .preview {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .preview {
        grid-template-columns: 1fr;
    }
    .celebrity {
        grid-template-columns: 1fr 1fr;
        gap: 10px; 
    }
    h1 {
        font-size: 20px;
    }
    .auction {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* gap: 10px; */
    }
}
@media (max-width: 700px) {
    .bar {
        gap: 10px;
        flex-direction: column;
    }
    .auction {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .breck {
        display: none;
    }
    #slidee {
        margin-left: -100px;
        width: 800px;
    }
}
@media (max-width: 500px) {
    .popup-box {
        width: 95%;
    }
    .popup-input {
        padding: 10px;
    }
    .celebrity {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .count-head span {
        padding: 10px 0px;
    }
    .count-head h1 {
        font-size: 22px;
    }
    .count-head b {
        padding: 14px 0px;
    }
    header center p {
        text-align: left;
        text-indent: 2em;
        font-size: 16px !important;
    }
}
@media (max-width: 380px) {
    h1 {
        font-size: 18px;
    }
    .best-list {
        padding: 2px;
    }
}

@-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 
}