
html {
    font-size: 16px;
}


@font-face {
    font-family: Metric;
    font-weight: 400;
    font-style: normal;
    src: url("/fonts/MetricWeb-Regular.woff") format("woff");
}

@font-face {
    font-family: Metric;
    font-weight: 400;
    font-style: italic;
    src: url("/fonts/MetricWeb-RegularItalic.woff") format("woff");
}

@font-face {
    font-family: Metric;
    font-weight: 500;
    font-style: normal;
    src: url("/fonts/MetricWeb-Medium.woff") format("woff");
}

@font-face {
    font-family: Metric;
    font-weight: 500;
    font-style: italic;
    src: url("/fonts/MetricWeb-MediumItalic.woff") format("woff");
}

@font-face {
    font-family: Metric;
    font-weight: 600;
    font-style: normal;
    src: url("/fonts/MetricWeb-Semibold.woff") format("woff");
}

@font-face {
    font-family: Metric;
    font-weight: 600;
    font-style: italic;
    src: url("/fonts/MetricWeb-SemiboldItalic.woff") format("woff");
}

h2 {
    font-weight: 600
}

h2,
h3 {
    font-size: 1.85rem;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Metric, sans-serif;
}

a {
    text-decoration: none;
}


/**These are custom classes which are, for some of them, imitating the design system rules*/

:root {
    --sentiment-warning: #e77c21;
    --background-secondary: rgba(13, 13, 13, 0.05);
    --sentiment-action: #2b6ed5;
    --foreground-border: rgba(13, 13, 13, 0.15);
}

.sentiment-warning {
    color: var(--sentiment-warning);
}

.font-medium {
    font-weight: 500
}

.font-semibold {
    font-weight: 600
}


/**This is specifically to override asp-validation-summary as it got a compiled hardcoded html structure*/
.validation-summary-errors {
    background-color: var(--background-secondary);
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column-reverse;
    padding: 0;
    gap: 1rem;
    list-style: none;
    line-height: 20px;
    padding-left: 3rem;
    padding-block: 1rem
}

    .validation-summary-errors a {
        text-decoration: underline;
        color: black;
    }

    .validation-summary-errors ul {
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .validation-summary-errors .message--error, .validation-summary-errors .message--success {
        background-position: 1rem 1rem;
        background-size: 20px 20px;
    }
/**Other messages, more generic*/

.message {
    background-color: var(--background-secondary);
    border-radius: 0.25rem;
    display: flex;
    padding: 0.75rem 1rem;
    padding-left: 3.5rem;
    gap: 0.75rem;
    line-height: 20px;
}

.message--error {
    background-position: 1.25rem 1.25rem;
    background-image: url('../images/error.svg');
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.message--success {
    background-position: 1.25rem 1.25rem;
    background-image: url('../images/success.svg');
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

/**We need to use an id to properly override Boostrap classes*/

#app .input-label {
    text-transform: uppercase;
    color: #6a6a6a;
    font-size: 14px;
    font-weight: 500;
}


#app .form-label {
    margin-bottom: unset;
}

#app .form-error {
    color: var(--sentiment-warning);
    font-weight: 500;
    margin-top: 1rem;
}

#app .link-dark {
    color: rgb(33, 37, 41);
}

#app .btn-primary {
    color: #fff;
    background-color: var(--sentiment-action);
    border-color: var(--sentiment-action);
}

    #app .btn-primary.btn-large {
        width: 134px;
    }

#app .form-control {
    border-color: var(--foreground-border);
}

    #app .form-control:focus {
        border-color: black;
        outline: 2px solid var(--foreground-border);
        box-shadow: none;
    }


    #app .form-control.input-validation-error {
        border: 1px solid;
        border-color: var(--sentiment-warning);
        outline: none;
    }

#app .field-validation-error {
    color: var(--sentiment-warning);
    font-weight: 500;
}

#app .form-check-input {
    border-color: var(--foreground-border);
}

    #app .form-check-input:hover {
        border-color: black;
        background-color: var(--background-secondary);
    }

    #app .form-check-input:focus {
        box-shadow: none;
    }

    #app .form-check-input:checked {
        background-color: var(--background-secondary);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%232b6ed5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/%3e%3c/svg%3e")
    }
    
