body,
html {
    font-family: sans-serif;
    color: #fff;
    width: 100%;
    height: auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #4a3f81;
    background-attachment: fixed;

    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#1e1335+3,4a3f81+68,4765bd+100 */
    background: #1e1335; /* Old browsers */
    background: -moz-linear-gradient(
        45deg,
        #1e1335 3%,
        #4a3f81 68%,
        #4765bd 100%
    );
    background: -webkit-linear-gradient(
        45deg,
        #1e1335 3%,
        #4a3f81 68%,
        #4765bd 100%
    );
    background: linear-gradient(
        45deg,
        #1e1335 3%,
        #4a3f81 68%,
        #4765bd 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e1335', endColorstr='#4765bd',GradientType=1 );
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background: none;
}

#hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    overflow: visible !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#hero .logo {
    margin: 40px auto;
    width: 20%;
    max-width: 300px;
    min-width: 200px;
    font-size: 3em;
    transition: 1s;
    text-align: center;
}
#hero .logo a {
    text-decoration: none;
    color: rgb(74, 63, 129, 0);
}

#hero .logo:hover a {
    color: rgb(74, 63, 129, 1);
}
#hero .logo .link {
    position: absolute;
}

.cls-1 {
    fill: #4a3f81;
    stroke: #4a3f81;
    stroke-miterlimit: 10;
    stroke-width: 10px;

    transition: 1s;
}
#hero .logo {
    opacity: 0.3;
    position: relative;
}
.live #hero .logo {
    opacity: 1;
    animation-name: pulse;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

#hero .logo .offline {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6em;
    cursor: pointer;
    color: #2b1251;
    font-weight: bold;
}
.live #hero .logo .offline {
    display: none;
}

#hero .logo .live {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    color: rgb(255, 59, 59);
    font-weight: bold;
    font-size: 0.8em;
    cursor: pointer;
}
.live #hero .logo .live {
    display: block;
}

#hero .logo:hover {
    /* transform: scale(1.2); */
}
#hero .logo:hover .cls-1 {
    stroke: #1e1335;
    fill: #1e1335;
}
/* #hero .lanylurk {
    position: absolute;
    bottom: -10%;
    height: 30%;
    right: 2%;
    animation-name: lanylurk;
    animation-duration: 8s;
    animation-iteration-count: infinite;
} */
/* 
@keyframes lanylurk {
    0% {
        bottom: -10%;
    }
    28% {
        bottom: -4%;
    }
    29% {
        bottom: -4%;
    }
    40% {
        bottom: -10%;
    }
} */

#section {
    display: flex;
    width: 100%;
    min-height: 160px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    order: 1;
}
#section > a {
    opacity: 0.7;
    transition: 0.5s;
}
#section > a:hover {
    opacity: 1;
}
#section > a:hover img {
    width: 150px;
}
#section img {
    transition: 0.5s;
    width: 100px;
    position: relative;
}

@media only screen and (max-width: 768px) {
    #hero .logo {
        width: 50%;
        margin-bottom: 10%;
    }
    #hero .logo:hover {
        width: 70%;
    }
}

#vods {
    padding-bottom: 20px;
    display: block;
}
#clips {
    width: 100%;
    display: block;
}

#clips-container::-webkit-scrollbar {
    height: 10px;
}

#clips-container::-webkit-scrollbar-track {
    background: #4a3f81; /* Adjust the background color of the scrollbar track */
}

#clips-container::-webkit-scrollbar-thumb {
    background: #fab717; /* Adjust the background color of the scrollbar thumb (purple) */
}

#clips-container::-webkit-scrollbar-thumb:hover {
    background: #fee94b; /* Adjust the background color of the scrollbar thumb when hovering (lighter purple) */
}

#clips-container {
    overflow-x: auto;
    padding: 20px;
}

#vods h2,
#clips h2 {
    font-size: 1.7em;
    font-weight: 600;
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
    text-align: center;
    color: #fab717;
    margin-top: 20px;
}
#vods-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
}



.live #vods,
.live #clips {
    display: none;
}

#vods .vod {
    position: relative;
    opacity: 0.7;
    transition: 0.5s;
}
#vods .vod img {
    border-radius: 15px;
    width: 400px;
}
#vods .vod:hover{
    transform: scale(1.1);
    opacity: 1;
}
#vods .vod h3 {
    position: absolute;
    bottom: 0px;
    left: 20px;
    color: #fff;
}

#clips-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
}

#clips-container p{
    width: 100%;
}

#clips .clip {
    position: relative;
    width: 350px;
    box-sizing: border-box;
    margin-right: 15px;
    opacity: 0.7;
    transition: 0.5s;
}
#clips .clip:first-child {
    margin-left: auto;
  }
  
#clips .clip:last-child {
    margin-right: auto;
  }
#clips .clip img {
    border-radius: 12px;
    width: 350px;
}

#clips .clip:hover{
    transform: scale(1.1);
    opacity: 1;
}
#clips .clip h3 {
    position: absolute;
    bottom: 0px;
    left: 5%;
    color: #fff;
    width: 90%;
    overflow: hidden;
}

#hero-content::-webkit-scrollbar {
    width: 10px; /* Adjust the width of the scrollbar */
}

#hero-content::-webkit-scrollbar-track {
    background: #4a3f81; /* Adjust the background color of the scrollbar track */
}

#hero-content::-webkit-scrollbar-thumb {
    background: #fab717; /* Adjust the background color of the scrollbar thumb (purple) */
}

#hero-content::-webkit-scrollbar-thumb:hover {
    background: #fee94b; /* Adjust the background color of the scrollbar thumb when hovering (lighter purple) */
}


#vtube-model{
    position: fixed;
    bottom: -200px;
    right: 0;
    z-index: 10;
}

.error-container{
    text-align: center;
    padding: 20px;
    order: 0;
}

.error-container a{
    color: #fab717;
}
    
.error-container a:hover{
    color: #fee94b;
}

.error-container #vtube-model{
    margin: 0 auto;
    position: static;
    display: block;
}

#stream-container {
    display: none;
    width: 100%;
    max-width: 854px;
    margin: 0 auto;
    padding: 20px;
    order: -1;
}

#stream-container h2 {
    font-size: 1.7em;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    color: #fab717;
}

#stream-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

#stream-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.live #stream-container {
    display: block;
}

.live #vods {
    display: none;
}

/* Hide stream title and embed when offline */
.offline #stream-embed {
    display: none;
}

/* Show VODs container when offline */
.offline #vods-container {
    display: block;
}

/* Hide VODs container when live */
.live #vods-container {
    display: none;
}
#stream-vod-container{
    display: block;
    max-width: 528px;
    width: 100%;
    margin: 0 auto;
    background: rgba(30, 19, 53, 0.5);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #fab717;
    transition: all 0.3s ease;
    box-sizing: border-box;
    order: 2;
}

#stream-vod-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#stream-vod-container:hover {
    border-color: #fee94b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#stream-vod-title{
    font-size: 1.7em;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    color: #fab717;
}

a {
    color: #fab717;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff8c00;
}

a:visited {
    color: #fab717;
}

#game-challenge-box {
    display: block;
    position: relative;
    background: rgba(30, 19, 53, 0.5);
    border-radius: 15px;
    padding: 15px;
    margin: 10px auto;
    max-width: 200px;
    text-align: center;
    border: 2px solid #fab717;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#game-challenge-box:hover {
    background: rgba(30, 19, 53, 0.7);
    border-color: #fee94b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#game-challenge-box h2 {
    color: #fab717;
    margin: 0 0 10px 0;
    font-size: 1.7em;
    font-weight: 600;
}

#game-challenge-box:hover h2 {
    color: #fee94b;
}

#game-challenge-box::after {
    content: attr(title);
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(30, 19, 53, 0.9);
    border: 1px solid #fab717;
    border-radius: 8px;
    color: #fab717;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none; /* Prevent tooltip from interfering with interactions */
}

#game-challenge-box:hover::after {
    opacity: 1;
    visibility: visible;
}

.count-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.count-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.count-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #fab717;
}

.count-label {
    color: #fff;
    font-size: 1.2em;
}

#clips {
    width: 100%;
    display: block;
    background: rgba(30, 19, 53, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    border: 2px solid #fab717;
    transition: all 0.3s ease;
}

#clips:hover {
    border-color: #fee94b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#clips h2 {
    margin-top: 0;
}

#clips-container {
    padding: 10px 0;
}

#clips .clip {
    position: relative;
    width: 350px;
    box-sizing: border-box;
    margin-right: 15px;
    opacity: 0.7;
    transition: 0.5s;
}

#clips .clip img {
    border-radius: 12px;
    border: 1px solid rgba(250, 183, 23, 0.3);
    transition: all 0.3s ease;
}

#clips .clip:hover img {
    border-color: #fee94b;
}

#vods .vod img {
    border-radius: 15px;
    width: 400px;
    border: 1px solid rgba(250, 183, 23, 0.3);
    transition: all 0.3s ease;
}

#vods .vod:hover img {
    border-color: #fee94b;
}

.live #stream-vod-container {
    order: -2;
    max-width: 854px;
}
