
/* Title styles */
.custom-title {
    text-align: center;
    font-size: 36px;
    color: #FFFFFF;
    margin-bottom: 30px;
}

/* Dropdown styling */
.custom-dropdown {
    background-color: #4CAF50; /* Green dropdown button */
    color: #FFFFFF;
    border: none;
    font-size: 16px;
}

.custom-dropdown:hover {
    background-color: #3E8E41; /* Darker green on hover */
}

.custom-dropdown-menu {
    background-color: #1E1E1E; /* Dark menu background */
    border: 1px solid #333; /* Subtle border */
}

.custom-dropdown-item {
    color: #E0E0E0; /* Subtle white text */
}

.custom-dropdown-item:hover {
    background-color: #4CAF50; /* Highlight on hover */
    color: #FFFFFF; /* White text */
}

/* Graph container */
#graph-container {
    border-radius: 10px;
    box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.5);
}

#graph {
    width: 100%;
    height: 600px;
}

#cdf-graph-container {
    border-radius: 10px;
    box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.5);
}

#cdf-graph {
    width: 100%;
    height: 600px;
}

#division-chart-container, #elo-history-container {
    border-radius: 10px;
    box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.4);
    background-color: #222831;
}

#division-chart {
    width: 100%;
    height: 600px;
}

/* Ensure graphs scale on smaller screens */
#graph, #cdf-graph, #division-bar-chart, #elo-history-graph {
    width: 100%;
    max-width: 100vw; /* Make graphs fit within screen width */
    height: auto;
    min-height: 600px;
}

#graph-container,
#cdf-graph-container,
#division-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

#elo-history-graph-container {
    display: flex;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
}

.js-plotly-plot {
    margin: 10px auto; /* Center and add space */
    padding: 10px; /* Optional: Add padding inside */
    max-width: 100%; /* Prevent overflow */
}

/* Metrics section enhancements */
#metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    background-color: #222831;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #E0E0E0;
}

.metric-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.metric-card p {
    font-size: 24px;
    color: #4CAF50;
    margin: 0;
}

.metric-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: #FFD700;
}


/* Loading spinner styles */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(18, 18, 18, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    color: #E0E0E0;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.privacy-notice {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    color: #A0A0A0;
}

.privacy-notice a {
    color: #4CAF50;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

.warning-container {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    background-color: #FFCC00; /* Bright yellow */
    color: #000000; /* Black text for readability */
    font-size: 14px;
    text-align: center;
}

.warning-container.hidden {
    display: none; /* Hide when not needed */
}

.your-elo-section {
    text-align: center;
    margin-top: 20px;
}

.elo-input {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: #fff;
    width: 150px;
    text-align: center;
}

.elo-check-btn {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.elo-check-btn:hover {
    background-color: #3E8E41;
}

.elo-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 120px;
}

.metric-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.metric-card h3 {
    font-size: 16px;
    color: #FFFFFF;
}

.metric-card p {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold color for numbers */
}

.hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}