body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow-x: hidden; /* Only prevent horizontal scroll */
}

.navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid #333;
    padding: 0.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.25rem 1.5rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFD700 !important;
}

.container {
    /* Reset any container modifications */
}

#gameContainer {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: calc(100vh - 80px);
    max-height: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
    margin: 0;
    margin-bottom: 0;
}

#gameCanvas {
    display: block;
    position: relative;
    border: 2px solid #333;
    margin: 0;
    padding: 0;
}

#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#loadingText {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
}

#loadingBar {
    width: 200px;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
}

#loadingProgress {
    width: 0%;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

/* Add some spacing between sections */
section {
    margin-bottom: 4rem;
}

/* Ensure content sections have proper spacing */
#how-to-play, #leaderboard, #disclaimers, #credits {
    padding-left: 1rem;
    padding-right: 1rem;
}

.cclass-banner {
    background-image: url('../images/c-class.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.cclass-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.cclass-banner .btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

.how-to-play {
    background-color: rgba(0, 0, 0, 0.7);

}

.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.control-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
}

.control-item h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.control-item p {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.table th:nth-child(1), /* Rank # */
.table td:nth-child(1) {
    width: 5%;
    text-align: center;
}

.table th:nth-child(2), /* Username */
.table td:nth-child(2) {
    width: 25%;
    text-align: left;
}

.table th:nth-child(3), /* Score */
.table td:nth-child(3) {
    width: 12%;
    text-align: right;
}

.table th:nth-child(4), /* Kills */
.table td:nth-child(4) {
    width: 10%;
    text-align: right;
}

.table th:nth-child(5), /* Damage */
.table td:nth-child(5) {
    width: 12%;
    text-align: right;
}

.table th:nth-child(6), /* Accuracy */
.table td:nth-child(6) {
    width: 12%;
    text-align: right;
}

.table th:nth-child(7), /* Survival */
.table td:nth-child(7) {
    width: 12%;
    text-align: right;
}

.table th:nth-child(8), /* Date */
.table td:nth-child(8) {
    width: 12%;
    text-align: right;
}

/* Headers should match their column alignment */
.table th {
    text-align: inherit;
}

/* Ensure table cells follow the header widths */
.table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add some padding to the table cells */
.table th, .table td {
    padding: 0.75rem 1rem !important;
}

/* Center align specific columns */
.table th:nth-child(1),
.table td:nth-child(1),
.table th:nth-child(4),
.table td:nth-child(4) {
    text-align: center;
}

/* Right align number columns */
.table th:nth-child(3),
.table td:nth-child(3),
.table th:nth-child(5),
.table td:nth-child(5),
.table th:nth-child(6),
.table td:nth-child(6) {
    text-align: right;
}

.stat-card {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    padding: 30px;
    width: 100%;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-top: 2px solid #444;
    border-bottom: 2px solid #444;

}

.stat-card-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 40px;
    border-right: 1px solid #333;
    min-width: 400px;
}

.stat-card-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stat-card-title {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: normal;
    line-height: 1.2;
}

.stat-card-subtitle {
    color: #999;
    font-size: 1em;
    margin-top: 5px;
    line-height: 1.4;
}

.stat-card-subtitle .pop1stats-link {
    color: #ff6666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stat-card-subtitle .pop1stats-link:hover {
    color: #ff4444;
}

.stat-card-subtitle .twitch-link {
    color: #8461c9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stat-card-subtitle .twitch-link:hover {
    color: #6441a5;
}

.stat-card-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    flex-grow: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #fff;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stat-card-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .stat-card-header {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .stat-card-container {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-card-header {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #333;
        padding-bottom: 20px;
        margin-bottom: 20px;
        flex-direction: column;
        min-width: unset;
    }
    
    .stat-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card-title {
        font-size: 1.5em;
        text-align: center;
    }
} 