.cardTitle {
    width: 90%;
    max-width: 1400px;
    padding: 20px;
    border-radius: 12px;
    background: oklch(30% 0.50 200);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    margin: 20px auto 30px auto;
    font-style: italic;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 180px;
    line-height: 1.6;
}

.cardTitle.scrollHover {
    background: linear-gradient(
        220deg,
        oklch(50% 0.5 200) 0%,
        oklch(30% 0.5 200) 100%
    );
    box-shadow: 0 12px 50px rgba(0,0,80,0.45);
    color: oklch(100% 0.00011 271.152);
    font-size: clamp(1.6rem, 2.7vw, 3rem);
}


.mobileBreak,
.mediumBreak {
    display: none;
}

/* Medium only: 751 to 1400 */
@media (max-width: 1400px) and (min-width: 751px) {

    .mediumBreak {
        display: inline;
    }

    .cardTitle {
        height: 160px;
        font-size: 1.6rem;
    }
}

/* Mobile only: 750 and below */
@media (max-width: 750px) {

    .mobileBreak {
        display: inline;
    }

    .cardTitle {
        font-size: 1.4rem;
        height: 140px;
    }

    .cardTitle.scrollHover {
        font-size: 1.6rem;
    }
}


.hudContainer {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    position: relative;
}

#cardGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    align-items: stretch;
}

.hudDialog {
    flex: 1 1 calc(33% - 30px);
    background: rgb(242, 242, 242);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease, color 0.4s ease;
    --t: 0;
}

.hudDialog:not(:hover):not(.scrollHover) {
    background: color-mix(in srgb,
        rgb(242,242,242) calc(100% - 100% * var(--t)),
        oklch(40% 0.5 200) calc(100% * var(--t))
    );
}

.hudDialog.scrollHover {
    background: linear-gradient(
        220deg,
        oklch(50% 0.5 200) 0%,
        oklch(30% 0.5 200) 100%
    );
    box-shadow: 0 12px 50px rgba(0,0,80,0.45);
    transform: translateY(4px);
    color: oklch(75% 0.20 40);
}

.hudDialog.scrollHover .cardTitleValue,
.hudDialog.scrollHover .cardUnitValue,
.hudDialog.scrollHover .dialogContent {
    color: oklch(100% 0.00011 271.152);
}

.hudDialog.scrollHover .dialogSource {
    background: oklch(70% 0.20 40);
    color: white;
    opacity: 1;
}

.hudDialog.scrollHover .colLeft {
    background: oklch(30% 0.50 200 / 0.5);
}

.hudDialog.scrollHover .dialogContent {
    background: transparent;
}

.hudDialog {
    box-shadow: 0 8px calc(40px + 20px * var(--t))
        rgba(0,0,80, calc(0.25 + 0.20 * var(--t)));
}

.hudDialog .colLeft {
    background: oklch(30% 0.50 200);
    background: color-mix(in oklch,
        oklch(30% 0.50 200) calc(100% - 50% * var(--t)),
        oklch(30% 0.50 200 / 0.5) calc(50% * var(--t))
    );
}

.hudDialog .dialogContent {
    background: color-mix(in srgb,
        white calc(100% - 100% * var(--t)),
        transparent calc(100% * var(--t))
    );
}

.hudDialog .dialogSource {
    background: color-mix(in srgb,
        #d8d8d8 calc(100% - 100% * var(--t)),
        oklch(70% 0.20 40) calc(100% * var(--t))
    );
    color: color-mix(in srgb,
        black calc(100% - 100% * var(--t)),
        white calc(100% * var(--t))
    );
    opacity: calc(0.5 + 0.5 * var(--t));
}

.hudDialog .cardTitleValue,
.hudDialog .cardUnitValue {
    color: color-mix(in oklch,
        white calc(100% - 100% * var(--t)),
        oklch(100% 0.00011 271.152) calc(100% * var(--t))
    );
}

.hudDialog .dialogContent {
    color: color-mix(in oklch,
        black calc(100% - 100% * var(--t)),
        oklch(100% 0.00011 271.152) calc(100% * var(--t))
    );
}

.rowOne {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 10px;
    align-items: stretch;
    flex-grow: 1;
    min-height: 140px;
}

.colLeft {
    width: 40%;
    padding: 0;
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 140px;
    background: oklch(30% 0.50 200);
    transition: background 0.4s ease;
}

.cardTitleValue {
    font-size: clamp(3rem, 3.5vw, 4.5rem);
    font-weight: bold;
    margin-bottom: 6px;
    text-align: center;
}

.cardUnitValue {
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    opacity: 0.7;
    text-align: center;
}

.forceBreak {
    display: block;
}


.colRight {
    width: 60%;
    padding-left: 12px;
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 140px;
}

.dialogContent {
    font-size: clamp(1.5rem, 2vw, 2rem);
    background: rgb(255, 255, 255);
    padding: 5px 10px 5px 10px;
    border-radius: 6px;
    flex-grow: 1;
    height: 100%;
    transition: background .5s ease;
}

.dialogSource {
    font-size: clamp(.8rem, 1.2vw, 1.5rem);
    opacity: 0.5;
    background: #d8d8d8;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: auto;
    text-align: right;
    color: black;
    font-style: italic;
}

@media (max-width: 1500px) {
    .hudDialog {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 750px) {
    .hudDialog {
        flex: 1 1 100%;
    }
}

/* @media (prefers-color-scheme: dark) {
    .hudDialog .dialogContent {
        background: rgb(30,30,30);
        color: white;
    }

    .hudDialog .dialogSource {
        background: rgb(50,50,50);
        color: white;
        opacity: 1;
    }
} */

