body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #1f1f23; /* Twitch-like dark background */
    color: #efeff1; /* Light text color */
}

main {
    padding: 1rem;
    max-width: 1200px;
    margin: 1rem auto;
    background-color: #2a2a2e; /* Slightly lighter container background */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1, h2, h3 {
    color: #FFFFFF; /* Twitch purple accent */
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #FFF;
    padding-bottom: 0.5rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #FFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header .tagline {
    font-size: 1.2rem;
    color: #dedee3;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}


.offline, .loading { display: none; width: 0px; height: 0px; }


/* Introduction Section */
#introduction {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

/* Features Section */
#features {
    margin-bottom: 2rem;
}

#features h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Call to Action Section */
#cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.cta-button {
    display: inline-block;
    background-color: #9147ff; /* Twitch purple */
    color: #ffffff;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #772ce8; /* Darker Twitch purple */
    text-decoration: none;
}

/* Features Section */
.features ul {
    list-style-type: none;
    padding-left: 0;
}

.features li {
    margin-bottom: 1.25rem;
    padding-left: 25px;
    position: relative;
}

.features li:before {
    content: "•";
    color: #FFF;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

.features strong {
    color: #FFF;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}


/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: #adadb8;
}


.live-streams {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}
.stream-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stream-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.stream-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.live-streams a {
    text-decoration: none;
    color: inherit;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
}
.stream-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.viewer-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.center-container {
display: flex;
margin: 20px auto;
justify-content: center;
align-items: center;

}
.hidden {
display: none;
}
.twitch-btn {
display: flex;
align-items: center;
background-color: #9146FF;
color: white;
border: none;
border-radius: 4px;
padding: 10px 15px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.twitch-btn:hover {
background-color: #772ce8;
}
.twitch-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}