﻿/* OU Foundation brand palette
   Digital crimson for all web/screen use. Gold and sky are accents only
   (max ~2% of a layout) and must never be used for text on light backgrounds. */
:root {
    --ouf-crimson: #841617;
    --ouf-gold: #FEC553;
    --ouf-sky: #2EBEEF;
    --ouf-black: #041019;
    --ouf-gray-dark: #64696F;
    --ouf-gray: #B6B9BF;
    --ouf-gray-light: #E2E3E7;
    --ouf-white: #ffffff;
    --ouf-page-bg: #f7f6f7;
    --ouf-title: #9595D2;
    --ouf-error: #C12E27;
    --ouf-success: #155724;
}

/* Common Styles */
body {
    box-sizing: border-box;
    font-family: Lato,'Helvetica Neue',Helvetica,Arial,sans-serif;
    color: var(--ouf-black);
    background-color: var(--ouf-white);
    height: 100%;
    position: relative;
}

.footer {
    flex-shrink: 0;
    background: var(--ouf-white);
    border-top-color: var(--ouf-gray-light) !important;
    color: var(--ouf-gray-dark);
}

.title-caption {
    font-weight: 300;
    font-style: normal;
    color: var(--ouf-title);
    font-size: 2rem;
}

.font-weight-bold,
.card-header {
    color: var(--ouf-gray-dark);
}

.card-header {
    font-weight: bold;
}

a {
    text-decoration: none !important;
    color: var(--ouf-crimson) !important;
    font-weight: 500;
}

    a:focus, a:hover {
        color: var(--ouf-crimson);
    }

    a.k-link:focus,
    a.navbar-brand:focus {
        outline: none;
    }

input:focus {
    outline: none !important;
    box-shadow: none !important;
}

button:focus {
    outline: 1px dotted;
    outline: 5px auto var(--ouf-gold);
}

.form-control:focus {
    outline: none;
    border: 1px solid rgba(218, 73, 77, 0.894);
    box-shadow: none !important;
}

.btn-primary,
.btn-primary:hover {
    color: var(--ouf-white) !important;
    background-color: var(--ouf-crimson) !important;
}

.btn-primary {
    border-color: var(--ouf-black) !important;
}

    .btn-primary:hover {
        border-color: var(--ouf-gray) !important;
    }

    .btn-primary.focus, .btn-primary:focus {
        box-shadow: 0 0 0 0.2rem var(--ouf-gray);
    }

/* removes the red halo around the controls */
.k-textarea,
.k-input:focus-within {
    box-shadow: none !important;
}

.k-invalid-msg {
    color: var(--ouf-error);
    display: flex;
    font-size: 12px;
    font-style: normal;
}

.k-tooltip-error {
    color: var(--ouf-white) !important;
}

.k-nodata {
    font-weight: 400;
}

.k-window-title {
    color: var(--ouf-gray-dark);
    font-weight: bolder;
}

.k-window {
    box-shadow: 1px 1px 7px 1px rgba(128, 128, 128, .3);
}

.k-window-titlebar {
    background-position: 50% 50%;
    background-color: var(--ouf-page-bg);
}

.k-notification-error {
    background-color: var(--ouf-error) !important;
    border-color: var(--ouf-error) !important;
    color: var(--ouf-white) !important;
}

/* MVC Common Styles (Kendo loading mask and notifications) */
.k-loading-mask {
    z-index: 9999 !important;
}

.k-loading-image {
    background-image: none !important;
}

body > div.k-loading-mask > div.k-loading-image {
    position: fixed;
}

#controlPanelAlert {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 10px;
    z-index: 1040;
}

    #controlPanelAlert .k-notification {
        padding: 1rem;
    }

.k-notification div i {
    margin-right: 10px;
}

#notificationAlertContainer > h6 {
    margin: 0;
}

/* Blazor Common Styles */
.k-notification-group {
    z-index: 1001;
    max-width: 350px;
    margin: 1rem;
}

.k-notification {
    max-width: 350px !important;
    min-width: 350px !important;
}

.k-notification-group .k-notification {
    padding: 1rem;
}

.k-notification-group .k-notification-content {
    font-size: 1rem;
    font-weight: 600;
}

.k-notification-group .k-notification-status {
    --kendo-icon-size: 1.8rem;
}

.k-notification-group .k-notification-actions {
    display: none;
}

.loading-panel-wrapper {
    width: 100%;
    height: 100%;
    min-height: 200px;
    position: absolute;
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loading-panel-wrapper .loading-panel-overlay {
        background: var(--ouf-gray-dark);
        position: fixed;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0.5;
    }

    .loading-panel-wrapper .k-loader {
        position: fixed !important;
        top: calc(50% - 64px);
        left: calc(50% - 64px);
    }

/* Login Web */
.password-button {
    width: 42px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-color: var(--ouf-gray-light);
}

.username-taken {
    color: var(--ouf-error);
}

.username-available {
    color: var(--ouf-success);
}

#loginOptions .fa-ul {
    margin-left: 10px;
}

.light-text {
    opacity: .5;
}

#loginControls {
    display: none;
}

#login {
    width: 100px;
}

.vertical-line {
    height: 280px;
    border-left: 2px solid var(--ouf-gray-light);
    position: absolute;
    left: 50%;
}

.suffix-button {
    height: 38px;
}

#animationContainer > .k-animation-container {
    position: relative;
}

#privacyPolicyConsent {
    background-color: var(--ouf-crimson);
}

    #privacyPolicyConsent a {
        color: var(--ouf-gold) !important;
    }

        #privacyPolicyConsent p a:hover,
        #privacyPolicyConsent p a:focus-visible {
            color: var(--ouf-white) !important;
        }

#privacyPolicyConsentButton {
    color: var(--ouf-crimson);
}

#privacyPolicyReadMore {
    background-color: var(--ouf-crimson);
    border: 1px solid transparent;
    color: var(--ouf-white) !important;
}

    #privacyPolicyConsentButton:hover,
    #privacyPolicyConsentButton:focus,
    #privacyPolicyReadMore:hover,
    #privacyPolicyReadMore:focus {
        background-color: var(--ouf-gold);
        border-color: var(--ouf-gold);
        color: var(--ouf-black) !important;
    }

/* Large switch at the size of the previous theme's default */
.k-switch.k-switch-lg,
.k-switch.k-switch-lg .k-switch-track {
    width: 56px;
    height: 30px;
}

.k-switch.k-switch-lg .k-switch-thumb {
    width: 24px;
    height: 24px;
}

.k-switch.k-switch-lg.k-switch-on .k-switch-thumb-wrap {
    inset-inline-start: calc(100% - 15px);
}

.k-switch.k-switch-lg.k-switch-off .k-switch-thumb-wrap {
    inset-inline-start: 15px;
}

/* xs styles */
@media(max-width:767px) {
    .title-caption {
        font-size: 1.5rem;
    }

    .vertical-line {
        display: none;
    }
}

/* lg styles */
@media(min-width:1200px) {
    .title-caption {
        font-size: 1.875em;
    }
}
