:root {
    --aside-width: 300px;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    background: transparent;
    visibility: visible;
    width: 20px;
}
::-webkit-scrollbar-thumb {
    background: #909090;
    background-clip: content-box;
    border: 6px solid transparent;
    border-radius: 12px;
}
::-webkit-scrollbar-track {
    background: #999 transparent;
}
::-webkit-scrollbar-button:vertical:decrement {
    height: 10px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='%23909090' d='M224 192L96 320h256z'/></svg>") center /16px no-repeat;
}
::-webkit-scrollbar-button:vertical:increment {
    height: 10px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='%23909090' d='M224 320l128-128H96z'/></svg>") center /16px no-repeat;
}

#alert {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    min-width: 20rem;
    z-index: 9999;
}

main {
    background: url('../../image/bg.png') center / cover no-repeat;
    background-position: 0px -100px;
    height: 100%;
    margin-right: var(--aside-width);
    padding: 12px;
}

aside {
    padding: 12px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: var(--aside-width);
    width: 100%;
}

.badge {
    color: #fff !important;
}

.fx__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto Condensed', sans-serif;
}

.fx__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    width: 100%;
}

.fx__pool {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 90px;
    font-weight: bold;
    margin: 5rem auto 2rem auto;
    text-transform: uppercase;
    width: fit-content;
}

.fx__code {
    pointer-events: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 340px;
    font-weight: bolder;
    line-height: 500px;
    transform-origin: center;
    transform: scaleY(1.2);
}
.digit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px; /* Cố định chiều rộng của mỗi chữ số */
}
.rotate {
    animation: rotate 1s linear infinite; /* Quay tròn nhanh */
}
@keyframes rotate {
    0% {
      transform: rotateX(0deg);
    }
    50% {
      transform: rotateX(1800deg); /* Quay đủ 5 vòng */
    }
    100% {
      transform: rotateX(3600deg); /* Quay đủ 10 vòng */
    }
}

.fx__name {
    font-size: 150px;
    font-weight: bolder;
    text-transform: uppercase;
}

.fx__dept {
    font-size: 120px;
    font-weight: bold;
}

.fx__banner {
    display: none;
}


#fx__results {
    overflow-y: auto;
    overscroll-behavior: contain;
}
#fx__results .list-group-item:last-child {
    margin-bottom: 30px;
}


@media (max-width: 767px) {
    main, .fx__control {
        display: none !important;
    }

    .fx__banner {
        display: flex !important;
        justify-content: center;
        margin-bottom: 12px;
    }

    .fx__party {
        font-size: 30px !important;
    }
}





/* Phần tử sẽ có viền sáng chạy quanh */
.fx__card {
    position: relative;
    overflow: hidden;
    animation: borderAnimation 2s linear infinite;
}

/* Tạo hiệu ứng viền sáng chạy quanh */
@keyframes borderAnimation {
    0% {
        box-shadow: 0 0 0 8px rgba(255, 0, 200, 0.5); /* Bắt đầu với viền sáng */
    }
    25% {
        box-shadow: 0 0 0 16px rgba(0, 255, 255, 0.7); /* Viền sáng rộng hơn */
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 0, 200, 0.5); /* Trở về viền sáng ban đầu */
    }
    75% {
        box-shadow: 0 0 0 16px rgba(0, 255, 255, 0.7); /* Viền sáng rộng hơn */
    }
    100% {
        box-shadow: 0 0 0 8px rgba(255, 0, 200, 0.5); /* Quay lại viền sáng ban đầu */
    }
}


.fx__fullxin {
    opacity: 0.8;
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translate(-50%, 0);
}

.fx__party {
    font-size: 60px;
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translate(-50%, 0);
    text-align: center;
    opacity: 0.8;
}

.rainbow-text {
    font-size: 48px;
    font-weight: bold;
    background-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 300% 300%;
    background-clip: text;
    color: transparent;
    animation: rainbow 5s ease infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.fx__exit {
    opacity: 0.5;
    position: absolute;
    top: 50px;
    right: 15px;
}