/* Set variables for the bullseye size */

.michroma-regular {
    font-weight: 400;
    font-style: normal;
  }

:root {
    /* Dark Theme Colors */
    --dark-bg: #222831; /* Very dark grey/blue */
    --medium-dark-bg: #393E46; /* Dark grey */
    --light-grey-text: #EEEEEE; /* Light grey for text */
    --accent-color: #00ADB5;   /* Teal accent */
    --border-color: #4A4A4A;   /* Darker border color */
    --bullseye-bg-semi-transparent-dm: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

body {
    font-family: "Michroma", sans-serif;
    font-weight: 400;
    margin: 0;
    /* background-color: var(--dark-bg); DARK MODE */
    background-image: url("../images/ddr_bkg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--light-grey-text); /* DARK MODE */
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.dashboard-layout {
    display: flex;
    flex-grow: 1; /* Takes up available space in body */
    padding: 20px; /* Overall padding for the dashboard */
    gap: 20px; /* Space between left column and carousel */
    align-items: stretch; /* Key for matching heights */
}

.left-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Takes available horizontal space */
    gap: 20px; /* Space between content-area and qpct-area */
    min-width: 0; /* Prevents overflow issues with flex children */
    margin-right: 280px;
}

.content-area {
    display: flex; /* Use Flexbox to lay out text and image side by side */
    justify-content: space-between; /* Space between text and image */
    align-items: center; /* Align items at the top */
    padding: 20px;
    flex-shrink: 0;
    color: var(--light-grey-text); /* Ensure text inside is light */
    gap: 20px; /* Space between text and image box */
    background-color: var(--bullseye-bg-semi-transparent-dm);
    border-radius: 40px;
    font-size: 14px;

}

.content-area a {
    text-decoration: none; /* Remove underline from links */
    color: var(--accent-color); /* Ensure link color is light */
}

.text-content {
    flex: 2; /* Take up more space for the text */
}

.stat-span {
    display: inline-block;
    width: 300px;
}

.image-box {
    flex: 1; /* Take up less space for the image */
    max-width: 300px; /* Limit the width of the image box */
    background-color: var(--medium-dark-bg); /* Background color for the image box */
    border: 1px solid var(--border-color); /* Optional border */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure the image doesn't overflow the box */
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.content-area h1 {
    color: var(--accent-color); /* Optional: Accent for headings */
}

.qpct-area {
    display: flex;
    align-items: stretch; /* Children will stretch to fill height */
    flex-wrap: wrap; 
    gap: 20px;
    flex-grow: 1; /* Takes remaining vertical space in .left-column */
    min-height: 0; /* Important for allowing children to grow properly */
    max-height: 500px;
}




/* Styles for the new category selector */
.category_select {
    flex-grow: 1;
    background-color: var(--bullseye-bg-semi-transparent-dm);
    border: 1px solid var(--border-color);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    max-height: 500px;
    color: var(--light-grey-text);
    border-radius: 40px;

    container-type: inline-size;
}

.category-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    font-size: 14px;
}

.category-list li {
    padding: 8px 5px;
    border-bottom: 1px solid var(--border-color); /* DARK MODE */
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-basis: calc(50% - 10px); 
    box-sizing: border-box;
    margin: 5px;
}

@container (max-width: 350px) { 
    .category-list li {
        flex-basis: 100%; /* Each item takes full width */
        margin: 5px 0;   /* Adjust margin for single column (e.g., vertical only) */
    }
}

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

.category-list li label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    color: var(--light-grey-text); /* DARK MODE */
}

.category-list li input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    /* Consider custom checkbox styles for dark mode if default is hard to see */
    accent-color: var(--accent-color); /* Styles the checkmark color in modern browsers */
}

.category-list li input[type="checkbox"]:disabled + span {
    color: #777; /* Slightly lighter grey for disabled text in dark mode */
    cursor: not-allowed;
}
.category-list li label:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
}

.size-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000; /* Ensure it's above everything */
    display: none; /* Hidden by default, shown via JavaScript */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0.0;
    visibility: hidden;
}

.warning-message {
    background-color: #111;
    color: #6AFFAF;
    border: 2px solid #6AFFAF;
    border-radius: 8px;
    padding: 2rem;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 0 20px rgba(106, 255, 175, 0.5);
}

.flag-and-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 800px) {
    .size-warning-overlay {
        display: flex;
        opacity: 1.0;
        visibility: visible;
    };
}

@media (max-width: 1100px) {
    body{
       background-repeat: repeat-y;
    }
}