/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* SIMPLE-CSS variables can be overridden -- see https://github.com/kevquirk/simple.css/blob/main/simple.css */

:root {
    --alert-bg: pink;
    --alert: red;
    --accent-bg: #ddf4ff;
}
@media (prefers-color-scheme: dark) {
    :root {
        --alert-bg: red;
        --alert: white;
    }
}

.flash {
    border-width: 1px;
    border-style: solid;
    border-radius: var(--standard-border-radius);
    display: flex;
    margin: 0.25rem 0 0.25rem 0;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem;

    &.flash-alert {
        background-color: var(--alert-bg);
        border-color: color-mix(in oklch var(--alert-bg) black);
        color: var(--alert);
    }
    &.flash-notice {
        background-color: var(--accent-bg);
        border-color: color-mix(in oklch var(--accent-bg) black);
        color: var(--accent);
    }
    & .message {
        flex: 1;
    }
    & .close {
        font-size: 1rem;
        padding: 0 0.5rem 0.25rem;

    }
}
