:root {
    --primary-color: #222222;
    --secondary-color: #333333;
    --accent-color: #ff5500;
    --text-color: #f0f0f0;
    --text-secondary: #c0c0c0;
    --spacing: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
    /*background-image: url('https:// /.png');*/
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-blend-mode: overlay;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

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

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: var(--spacing);
    padding-top: 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
}

header h1 {
    font-size: 2rem;
    /*margin-bottom: 10px;*/
    color: var(--accent-color);
}

header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Navigation Bar Styles */
.navbar {
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing);
    padding: var(--spacing) 0;
    flex: 1 0 auto;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 2fr 1fr;
    }
}

.section {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: var(--spacing);
    margin-bottom: var(--spacing);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section p {
    margin-bottom: 15px;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 15px 0;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-item {
    background-color: rgba(51, 51, 51, 0.5);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: var(--spacing);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.server-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.server-address {
    background-color: rgba(255, 85, 0, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.2rem;
    border: 1px solid var(--accent-color);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #ff7730;
}

.resource-list {
    list-style-type: none;
    margin-left: 15px;
}

.resource-item {
    margin-bottom: 15px;
}

.info-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    text-decoration: none;
    cursor: help;
    transition: background-color 0.3s;
}

.info-bubble:hover {
    background-color: #ff7730;
}

/* News section styles */
h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    /*border-left: 3px solid var(--accent-color);*/
    padding-left: 10px;
    transition: transform 0.2s ease;
}

.news-category {
    margin-bottom: 25px;
    background-color: rgba(40, 40, 40, 0.5);
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.news-list {
    list-style-type: none;
    margin-left: 5px;
}

.news-list li {
    padding: 4px 0 4px 10px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:before {
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 0.8em;
}

/* Center Column Styling */
.center-column {
    padding: var(--spacing) 0;
    flex: 1 0 auto;
}

.center-column .container {
    max-width: 80%;
    margin: 0 auto;
}

.center-column .section {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: var(--spacing);
    margin-bottom: var(--spacing);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.center-column .section h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.center-column .embed-container {
    padding-bottom: 40%;
    height: 300px;
}

@media (max-width: 768px) {
    .center-column .embed-container {
        padding-bottom: 56.25%;
        height: 0;
    }
}



/* Status API styling */
.status-up {
    color: #4CAF50;
    font-weight: bold;
}

.status-degraded {
    color: #FFC107;
    font-weight: bold;
}

.status-down {
    color: #F44336;
    font-weight: bold;
}

.incident-header, .maintenance-header {
    font-weight: bold;
    margin-top: 10px;
    color: var(--accent-color);
}

.incident-item, .maintenance-item {
    padding: 10px;
    margin: 5px 0;
    background-color: rgba(255, 85, 0, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.incident-item:hover, .maintenance-item:hover {
    background-color: rgba(255, 85, 0, 0.2);
    transform: translateX(5px);
}

.incident-name, .maintenance-name {
    font-weight: bold;
    font-size: 1.1em;
}

.incident-status, .maintenance-status, .incident-impact, .maintenance-time, .incident-time {
    font-size: 0.9em;
    color: var(--text-secondary);
}
/* In-game Chat Styles */
.chat-container {
    /*border: 1px solid var(--border-color);*/
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    width: 100%;
    min-height: 100%;
}

.chat-message {
    font-family: 'MinecraftRegular';
    line-height: 1.4;
    word-break: break-word;
}

.timestamp {
    color: #888;
    font-weight: bold;
}

.player-name {
    color: #55aaff;
    font-weight: bold;
}

.message {
    color: #ddd;
}

.chat-status {
    font-size: 0.9em;
    text-align: right;
    margin-top: 5px;
}

.chat-status .connected {
    color: #44cc44;
}

.chat-status .connecting {
    color: #cccc44;
}

.chat-status .disconnected,
.chat-status .error {
    color: #cc4444;
}
.status-link, .incident-link, .maintenance-link {
    color: inherit;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.status-link:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Search and filter styles */
.search-filter {
    margin-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.filter-btn {
    padding: 6px 12px;
    background-color: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: rgba(255, 85, 0, 0.3);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: white;
}

/* Player list styles */
.playerlist-container {
    max-height: 400px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 5px;
}

#online-players-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-item {
    padding: 5px 10px;
    background-color: rgba(40, 40, 40, 0.5);
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    cursor: default;
    font-family: 'MinecraftRegular';
}

.player-item:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.priority-player {
    background-color: rgba(255, 215, 0, 0.15);
    border-left: 3px solid #ffd700;
}

.priority-player:hover {
    background-color: rgba(255, 215, 0, 0.3);
}

.bot-player {
    background-color: rgba(100, 100, 255, 0.15);
    border-left: 3px solid #6464ff;
}

.bot-player:hover {
    background-color: rgba(100, 100, 255, 0.3);
}