body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#page-wrapper {
    width: 90%;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
}

#header {
    text-align: center;
    margin-bottom: 20px;
}

#header h1 {
    font-size: 2.5em;
    color: #f0f0f0;
    margin: 0;
}

#main-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0px;
}

nav {
    width: 90%;
    border-radius: 0px;
    padding: 0px;
    margin: 0 auto;
    margin-bottom: 20px;
    flex-grow: 1;
    box-sizing: border-box;
}

nav ul {
    background-color: #282828;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style-type: none;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: left;
}

nav ul li {
    font-size: 1.5em;
    margin: 0 0px;
    padding: 14px 16px;
    display: block;
    color: #19bd26;
    text-align: center;
}

nav ul li a {
    display: block;
    color: #f0f0f0;
    text-align: center;
    text-decoration: none;
  }

nav ul li a:hover {
    color: #1565ce;
  }

.content-tile {
    background-color: #282828;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    min-width: 0;
    box-sizing: border-box;
}

.queue-chart-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 600px; /* Set an explicit height for the container */
}

#queueChart {
    flex: 7; /* 70% of the available space */
    flex-shrink: 1;
}

#buildingsChart {
    flex: 7; /* 70% of the available space */
}

.selector-boxes {
    flex: 3; /* 30% of the available space */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 20px;

}

#games-table {
    width: 100%;
}

.pie-chart-container{
    width: 32%;
}

.buildings-chart-container{
    width: 80%;
}


#player-selector, #group-selector {
    width: 100%;
    font-size: 1em;
}

#player-selector h2, #group-selector h2, .content-tile h2 {
    font-size: 1em;
    color: #f0f0f0;
    margin-block-start: 0px;
    margin-block-end: 0.9em;
}

.stat-card {
    width: 24%;
    text-align: center;
    font-size: calc(1em + 1vw);
}

.stat-title {
    font-size: 0.5em;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #f0f0f0;
}

select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #444;
    background-color: #333;
    color: #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px; /* Reduced margin-top for compactness */
}

th, td {
    padding: 5px; /* Reduced padding for compactness */
    border-bottom: 1px solid #444;
    font-size: 0.9em; /* Slightly smaller font-size */
}

th {
    background-color: #333;
    color: #fff;
}

td {
    background-color: #2a2a2a;
}

canvas {
    width: 100%;
    height: auto;
}
