::-webkit-scrollbar {
    display: none;
    width: 5px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(77, 77, 77);
    background: rgb(49, 49, 49);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: orange;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: orange;
}

* {
    font-family: verdana;
    margin: 0;
    padding: 0;
}

body::before {
    content: "";
    background: url('https://cuanbio.com/backgrounds21') no-repeat fixed 100%;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: -1;
}

body {
    background: rgb(15, 15, 15);
}

.container {
    margin: 0 auto;
    max-width: 1028px;
}

.hide {
    display: none;
}

.ribbon {
    font-size: 20px!important;
    text-transform: uppercase;
    width: 80%;
    position: relative;
    background: #ffc400d3;
    color: #fff;
    text-align: center;
    padding: 0.5em 0.5em;
    margin: 0 auto 1em
}

.ribbon:after,
.ribbon:before {
    content: "";
    position: absolute;
    display: block;
    bottom: -1em;
    border: 1.5em solid #ffc400d3;
    z-index: -1
}

.ribbon:before {
    left: -2em;
    border-right-width: 1.5em;
    border-left-color: transparent
}

.ribbon:after {
    right: -2em;
    border-left-width: 1.5em;
    border-right-color: transparent
}

.ribbon .ribbon-inner:after,
.ribbon .ribbon-inner:before {
    content: "";
    position: absolute;
    display: block;
    border-style: solid;
    border-color: #68570e transparent transparent;
    bottom: -1em
}

.ribbon .ribbon-inner:before {
    left: 0;
    border-width: 1em 0 0 1em
}

.ribbon .ribbon-inner:after {
    right: 0;
    border-width: 1em 1em 0 0
}

/* HEADER */
#header {
    position: sticky;
    top: 0;
    margin: -20px;
    margin-bottom: 1px;
    display: flex;
    justify-content: space-between;
    height: 70px;
    line-height: 70px;
    background: #292929;
    padding: 0 35px;
    z-index: 9;
}

#header .logo {
    background: linear-gradient(30deg, #000, #5f4e00, #000);
    box-shadow: 0 0 10px;
    border-radius: 10px;
    transform: skewY(-3deg) skewX(-17deg);
    padding: 25px 25px 20px 60px;
    margin: -25px 0 -15px -65px;
    display: flex;
    align-items: center;
    z-index: 8;
}

#header .inlogo {
    transform: skewY(3deg) skewX(17deg);
    display: flex;
    align-items: center;
}

#header .btn {
    display: inline-flex;
    justify-content: space-around;
    width: 150px;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border-radius: 10px;
    padding: 0 5px;
    text-transform: uppercase;
    font-weight: bold;
}

#header a {
    color: #ddd;
    text-decoration: none;
}

#header a.daftar {
    background: linear-gradient(to top left, #8b8b8b, rgb(255, 255, 255));
    color: #000000;
}

#header a.daftar:hover {
    background: linear-gradient(to top left, rgb(255, 255, 255), #8b8b8b);
    color: rgb(31, 30, 30);
}

#header a.login {
    background: linear-gradient(to top left, #9d5100, #f4ce00);
    color: #111;
}

#header a.login:hover {
    background: linear-gradient(to top left, #f4ce00, #9d5100);
    color: #111;
}

#marquee {
    margin: 0 auto;
    width: 100%;
    background: #111;
}

.runtext {
    height: 50px;
    display: block;
    line-height: 50px;
    overflow: hidden;
    position: relative;
    background: #111;
}
.runtext:before,
.runtext:after {
    content: '';
    position: absolute;
    width: 5px;
    height: 100%;
    top: 0;
    z-index: 2;
}
.runtext:before {
    left: 0;
}
.runtext:after {
    right: 0;
}
.runtext div {
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    white-space: nowrap;
    font-weight: bold;
    color: #ddd;
    z-index: 1;
    animation: marquee 25s linear infinite;
}
.runtext:hover div {
    animation-play-state: paused
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: linear-gradient(0deg, rgb(128, 115, 0), rgb(255, 196, 0), rgb(128, 115, 0));
    background: url(https://cuanbio.com/dwssd) no-repeat;
    background-size: 100% 100%;
    border-bottom: 2px solid gold;
    border-top: 2px solid gold;
}

#menu .container {
    border-radius: 50px; /* Rounded corners */
    padding: 10px 20px; /* Padding around the menu */
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Horizontal menu */
    align-items: center;
    flex-wrap: wrap; /* Wrap items on small screens */
}

#menu ul li {
    margin: 0 10px; /* Spacing between items */
    width: 100px;
}

#menu ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0); /* Text color */
    font-size: 16px;
    display: flex; /* Flex container for icon and text */
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center align items */
}

#menu .material-icons {
    font-size: 44px; /* Icon size */
    display: block; /* Block display for icons */
    margin-bottom: 4px; /* Spacing between icon and text */
}

/* HEADER */



/* MAIN */
#banner {
    padding: 10px 0;
}

#banner img {
    width: 100%;
    max-width: 1028px;
    border-radius: 40px 0 30px 0;
    box-shadow: 0 0 10px black;
}

#carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

#banner-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

#pemenang {
    margin: 0 0 15px;
}

.listpemenang {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    padding: 10px 0 0;
}

.card-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin: 0 10px;
    scroll-behavior: smooth; /* Tambahkan ini untuk scroll smooth */
}

.card-wrapper::-webkit-scrollbar {
    height: 10px;
    display: inherit;
}

.card {
    min-width: 150px;
    background: linear-gradient(75deg, #3f2e00, #bd8b00, #3f2e00);
    color: white;
    font-size: 1em;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
#artikel {
    margin-bottom: 20px;
}

#artikel .container {
    border: 2px solid rgb(153, 118, 3);
    border-radius: 30px;
    color: white;
}

#artikel .container .wraps {
    padding: 15px;
    margin: 10px;
    border: 4px dashed rgb(121, 103, 0);
    border-radius: 18px;
}

#artikel h1, #artikel h2, #artikel h3 {
    text-align: center;
    margin: 10px 0 15px;
}

#artikel a {
    text-decoration: none;
    color: rgb(255, 0, 0);
    font-weight: bold;
}

#artikel p {
    margin: 15px 0;
    text-align: justify;
    text-indent: 50px;
}

#artikel .wraps a.tombol {
    display: block;
    background: linear-gradient(0deg, gold, darkorange);
    padding: 10px;
    margin: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
}

#gambarpromo {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1028px;
}

#gambarpromo img {
    width: 100%;
    max-width: 468px;
    border-radius: 25px 0 35px 0;
    margin: 5px;
}

#klasemen {
    margin: 0 auto 20px;
}

#klasemen .container {
    border: 2px solid gold;
    background-color: rgb(116, 79, 0);
    border-radius: 30px;
    color: white;
}

#klasemen .container .wraps {
    padding: 15px;
    margin: 10px;
    border: 4px dashed gold;
    border-radius: 18px;
}

#klasemen h1 {
    text-align: center;
    margin: 10px 0 15px;
}

table {
    width: 100%;
    font-weight: bold;
    border-collapse: collapse;
}

th, td {
    border-radius: 0px;
    border:2px solid white;
    padding: 5px;
    text-align: center;
    color: #ffffff;
}

.note {
    padding: 15px 0;
}

.note p {
    font-weight: bold;
}

.note ul {
    padding: 0 20px;
}

/* MAIN */



/* FOOTER */
footer {
    background: transparent;
    text-align: center;
    font-size: 80%;
    padding: 20px;
}
footer p {
    color: white;
    text-align: center;
}
footer a {
    color: #ddd;
    font-weight: bold;
    text-decoration: none;
}
footer a:hover {
    color: green;
}
/* FOOTER */

/* MEDIA */
@media (max-width: 1028px) {
    #artikel .container {
        margin: 0 10px;
    }
    body::before {
        opacity: .5;
    }
}

@media (max-width:767px) {
    #header {
        height: 50px;
        line-height: 45px;
        padding: 0 10px;
    }

    #header .logo {
        padding: 35px 14px 20px 64px;
    }

    #header .inlogo img {
        max-width: 140px;
        max-height: 28px;
    }

    #header .btn {
        max-width: 55px;
        height: 30px;
        line-height: 30px;
        padding: 0 10px;
        font-size: 70%;
        border-radius: 8px;
    }

    .tombol a {
        padding: 10px;
        letter-spacing: 0px;
    }

    #menu .container {
        padding: 0px; /* Less padding on smaller screens */
    }

    #menu ul li {
        margin: 5px 0; /* Vertical spacing between items */
        width: 90px;
        text-align: center;
    }

    #menu .material-icons {
        font-size: 40px; /* Slightly smaller icons on smaller screens */
    }

    .ribbon {
        width: 70%;
    }

    .card-wrapper {
        margin: 0 10px;
        padding: 0;
    }

    .card {
        padding: 10px;
    }

    .chat-widget-container {
        display: none;
    }
    .card-wrapper::-webkit-scrollbar {
        display: none;
    }
    #gambarpromo img {
        margin: 0;
        width: 100%;
    }
    .material-icons {
        font-size: 30px !important;
        display: block !important;
    }
}

@media (max-width:528px) {
    #menu ul li a {
        font-size: 14px; /* Smaller font size on very small screens */
    }

    .hide {
        display: block;
    }

    #bottom-navbar {
        position: fixed;
        bottom: 0;
        width: 100%;
        display: block;
        z-index: 999;
        background: #171717;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 0 15px black;
    }

    #bottom-navbar a {
        color: #ddd;
        font-size: 80%;
        white-space: nowrap;
        overflow: hidden;
        text-decoration: none;
    }

    #bottom-navbar ul {
        display: flex;
        justify-content: space-around;
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 11px;
        letter-spacing: 1px;
    }

    #bottom-navbar ul li {
        display: block;
        text-align: center;
        height: 40px;
        width: 100%;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding: 5px;
    }

    tbody {
        font-size: 70%;
    }
}

@media (max-width: 320px) {
    #header .btn {
        max-width: 45px;
        height: 30px;
        font-size: 55%;
    }
    tbody {
        font-size: 55%;
    }
}