/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; /* Ensure body and html fill the full viewport height */
    margin: 0; /* Remove default margin */
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: flex-start; 
    justify-content: center; 
    height: 100%; /* Allow body to fill the viewport height */
    margin: 0; /* Remove default margin */
	padding-top: 20px; 
	padding-bottom: 20px;
}

/* Remove margin for smaller screens */
@media (max-width: 600px) {
    body {
        padding-top: 0px; 
		padding-bottom: 0px;
    }
}

a {
  color: inherit; 
  text-decoration: inherit;
}

/* Background Video and Overlay */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: -1;
}

/* Green Squares Overlay */
.video-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(63, 165, 58, 0.5) 10%, transparent 10%);
    background-size: 50px 50px;
    z-index: 1;
    opacity: 0.2;
}

/* Custom Font */
@font-face {
    font-family: 'Road Rage';
    src: url('Road_Rage.woff2') format('woff2'),
         url('Road_Rage.woff') format('woff'),
         url('Road_Rage.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* This helps with font loading optimization */
}

/* Content Wrapper */
.content-wrapper {
    width: 90%;
    max-width: 700px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #3fa53a;
    border-radius: 10px;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
	margin: auto;
}

/* Logo and Title */
.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
	margin-top: 0.3rem;
}

.logo {
    height: 5rem;
    width: auto;
}

.logo-text {
    font-family: 'Road Rage', 'Rubik Glitch', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    color: #3fa53a;
}

/* Header and Tabs */
nav ul.tabs {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 10px;
    margin-bottom: 20px;
}

nav ul.tabs li {
    margin: 0 10px;
}

nav ul.tabs a {
    color: #a53974;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #3fa53a;
    border-radius: 5px;
    background-color: #121212;
    transition: background-color 0.3s, color 0.3s;
}

nav ul.tabs a.active, nav ul.tabs a:hover {
    color: #3fa53a;
    background-color: #333;
}

/* Twitch Player Section */
.twitch-player iframe {
    width: 100%;
    height: 340px;
    border: 2px solid #3fa53a;
    border-radius: 8px;
}

/* Intro Section */
.intro {
    text-align: justify;
    margin: 20px 0;
    line-height: 1.4; 
}

.intro h2 {
    font-family: 'Road Rage', 'Rubik Glitch', sans-serif;
    font-size: 2rem;
    color: #a53974;
	text-align: Center;
}

/* Social Links Grid */
.social-links .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #333333;
    color: #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s;
    border: 2px solid transparent;
    font-size: 1.2em;
}

.grid-item:hover {
    transform: scale(1.1);
    border-color: #3fa53a;
    color: #3fa53a;
}

.grid-item i {
    font-size: 2em;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.grid-item:hover i {
    color: #3fa53a;
}

/* Stats */
.stats {
    width: 60%; 
    margin: auto;
    text-align: left;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #3fa53a;
	margin-bottom: 20px;
}


.stats h2 {
    font-size: 2.5rem;
    font-family: 'Road Rage', sans-serif;
    color: #3fa53a;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stat-item i {
    font-size: 2rem;
    margin-right: 10px;
    color: #3fa53a;
}

.platform-name {
    font-size: 1.5rem;
    font-weight: bold;
}

span.platform-icon {
	display: inline-block; /* Makes the span respect width */
    width: 42px; /* Set your desired width */
} 

span.platform-name {
    display: inline-block; /* Makes the span respect width */
    width: 135px; /* Set your desired width */
    margin-right: 5px; /* Optional: adds space to the right of the span */
}

.stat-value {
    font-size: 1.2rem;
    color: #ffffff;
}

.stat-item:hover {
    background-color: #a53974;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.last-updated {
    font-size: 0.8em; 
    font-style: italic;
    color: #aaa; 
    margin-top: 10px; /* Space between stats and the last updated text */
}

/* Full width photos */
.photo {
    width: 100%; /* Make the image scale with its container */
    height: auto; 
    border-radius: 8px;
    border: 2px solid #3fa53a;
    margin: auto;
}

/* Responsive Grid for Mobile */
@media (max-width: 600px) {
    .social-links .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item {
        font-size: 1em;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    /* Adjust content-wrapper for mobile screens */
    .content-wrapper {
        width: 100%;
        max-width: none; /* Remove max-width restriction */
        padding: 10px; /* Reduce padding on smaller screens */
    }
	.stats {
        width: 100%;             /* 100% width on smaller screens */
    }
}