﻿/*
    Stylesheet for ChoiceScreening.UI.Component Library
*/
/*Override MatBlazor Tablet Layout*/

/*Dynamically added .focus-visible class from the focus-visible JS polyfill (JS/focus-visible.min.js)*/
*:focus,
.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded--background-focused { 
    outline: solid 2px var(--mdc-theme-primary, #0075C9);
}

/*
  This will hide the focus indicator if the element receives focus via the mouse,
  but it will still show up on keyboard focus.
*/
*:focus:not(.focus-visible) {
    outline: none !important;
}

@media(min-width: 480px) and (max-width: 839px) {

    .mdc-layout-grid, .mat-layout-grid {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        margin: 0 auto;
        padding: var(--mdc-layout-grid-margin-phone, 16px);
    }

    .mdc-layout-grid__inner, .mat-layout-grid-inner {
        display: -ms-grid;
        display: grid;
        margin: 0;
        grid-gap: var(--mdc-layout-grid-gutter-phone, 16px);
        -ms-grid-columns: minmax(0, 1fr) var(--mdc-layout-grid-gutter-phone, 16px) minmax(0, 1fr) var(--mdc-layout-grid-gutter-phone, 16px) minmax(0, 1fr) var(--mdc-layout-grid-gutter-phone, 16px) minmax(0, 1fr);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: row;
    }

    .mat-layout-grid-cell-span-6,
    .mat-layout-grid-cell-span-4 {
        width: auto;
        -ms-grid-column-span: 8;
        grid-column-end: span 8;
    }
}

/*//////////////////////////////////////*/
/*////CARDS*/
.button-card,
.card {
    padding: 2rem 10rem;
    margin-bottom: 2rem;
}

.button-card {
    max-width: 15rem;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

/*Creates a smooth transition for elements that get dynamically added,
    like adding a new Address, Alias, etc. Animations are at the bottom
    of this document. (Could also be used for smooth page transitions and the like)
*/
.dynamic {
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    -webkit-animation: fadeInFromNone 0.5s ease-out;
    animation: fadeInFromNone 0.5s ease-out;
}

.card-50 {
    max-width: 50vw;
}

@media only screen and (max-width: 75em) {
    .card {
        padding: 2rem 2rem;
        margin-bottom: 2rem;
    }
}

.card-title {
    text-align: left;
    color: var(--mdc-theme-secondary);
}

.card-wrap {
    height: 100%;
    width: 140rem;
    background-color: #1b1515;
}

.scrollable-card {
    background-color: #fff8e1;
    max-width: 120rem;
    height: 40vh;
    overflow-y: scroll;
    border: 2px solid #333;
    padding: 1.5rem 6rem;
    text-align: left;
}

.inline {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

/*MatBlazor Layout Grid (to control vertical spacing)*/
.mat-layout-grid {
    padding: 0;
}


/* MatBlazor APP BAR */
.mdc-top-app-bar {
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    color: white;
    z-index: 5 !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
}

.mdc-top-app-bar--fixed-adjust {
    padding-top: 0;
}

/* MatBlazor INPUTS */
.mdc-select {
    display: inherit;
}

.mdc-select__anchor {
    width: 100%;
    height: 4.5rem;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.mdc-select .mdc-select__anchor::before {
    height: 60%;
}

.mdc-select .mdc-select__anchor {
    height: 4.5rem;
}

.mdc-select--disabled {
    height: 4.5rem;
}

.mdc-select:not(.mdc-select--disabled) .mdc-floating-label {
    color: rgba(0,0,0,.6);
}

.mdc-select .mdc-floating-label {
    left: 16px;
    right: initial;
    pointer-events: none;
}


.mdc-text-field {
    height: 4.5rem;
}

.mdc-text-field__input {
    font-size: 1.5rem;
    background-color: rgb(245, 245, 245);
}

.mdc-floating-label {
    font-size: 1.5rem;
    line-height: 2.25rem;
}



/*apply Helper Text - Above element instead of Below. MUST be applied to parent cell div to work.*/
.helper-text-top .mdc-text-field--disabled + .mdc-text-field-helper-line .mdc-text-field-helper-text,
.helper-text-top .mdc-text-field-helper-text::before {
    margin-bottom: -1.5rem;
}

.helper-text-top .mdc-text-field-helper-text--validation-msg,
.helper-text-top .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid + .mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg,
.helper-text-top .mdc-text-field--focused + .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg) {
    opacity: 1;
    -webkit-transform: translateY(-8.0em);
    -ms-transform: translateY(-8.0em);
    transform: translateY(-8.0em);
    margin-bottom: -1.5rem;
}

.helper-text-top .mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-helper-text {
    margin-bottom: -1.5rem;
}

.mdc-form-field:not(.cta-checkbox.cta-checkbox-child) {
    font-size: 1.5rem;
}

/*Only blocks out space for a validation message on the input if there is an active error on the text field*/
.mdc-text-field-helper-text:not(.mdc-text-field-helper-text[role="alert"]) {
    display: none;
}

/*MatBlazor TextArea*/
.mdc-text-field--textarea:not(.mdc-text-field--disabled) {
    height: 10rem;
}


.mdc-text-field--textarea .mdc-text-field__input {
    padding: 16px 16px;
}

.mdc-form-field > label {
    font-size: 1.5rem;
}

.mdc-text-field--textarea
.mdc-floating-label:not(.mdc-floating-label--float-above) {
    padding-left: 16px;
}

.mdc-text-field--textarea .mdc-floating-label--float-above {
    -webkit-transform: translateY(-60%) scale(1);
    -ms-transform: translateY(-60%) scale(1);
    transform: translateY(-60%) scale(1);
}

/*MatBlazor Btn*/
.mdc-button {
    font-size: 1.2rem;
}

.mdc-button mdc-ripple-upgraded .mdc-button__ripple * {
    outline: none;
}

.mdc-button__ripple:focus:hover {
    outline: none;
}

.mdc-select__menu.mdc-menu.mdc-menu-surface.mdc-menu-surface--open * {
    width: 24rem;
    text-align: center;
}

.mdc-select__menu.mdc-menu.mdc-menu-surface.mdc-menu-surface--open .mdc-list {
    width: 100%;
    overflow-x: hidden;
}

.mdc-fab__label {
    overflow: visible;
    font-size: 1.4em;
}

.review-grid > .mat-layout-grid-inner {
    grid-gap: 0px;
}

.review-grid .mat-layout-grid-cell {
    border: solid 0.5px black;
}

/*Mat Blazor Lists - nav items*/
a.mdc-list-item {
    font-size: 14px !important;
}

/*MatBlazor Select boxes*/
.valid.modified:not([type="checkbox"]) {
    outline: none;
}

.mdc-select .mdc-select__selected-text {
    font-size: 1.5rem;
    height: inherit;
}


@media only screen and (max-width: 75em){

    

    .mdc-select__selected-text {
        color: black;
        padding-left: 3px;
    }

    .mdc-layout-grid__cell--span-4, .mat-layout-grid-cell-span-4, .mdc-layout-grid__cell--span-4-phone, .mat-layout-grid-cell-span-4-phone {
        width: 100%;
        color: black;
    }
}

@media only screen and (max-width: 1800px) {
    .mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {
        -webkit-transform: translateY(-115%) scale(0.75);
        -ms-transform: translateY(-115%) scale(0.75);
        transform: translateY(-115%) scale(0.75);
    }


    .mdc-select--outlined .mdc-select__selected-text:not(.mdc-floating-label, .mdc-floating-label--float-above) {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .mdc-select__selected-text {
        padding-top: .5em;
        height: inherit;
    }
}

.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text {
    color: #1b1515;
}

@media only screen and (max-width: 376px) {
    .mdc-menu {
        width: calc(100% - 10rem);
    }

    .mdc-select__menu.mdc-menu.mdc-menu-surface.mdc-menu-surface--open * {
        width: 100%;
        text-align: center;
    }
}

/*MatBlazor Checkbox*/
.mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate="true"]) ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background {
    background-color: #fff;
}

/*ComponentAnchor*/
.component-anchor {
    position: relative;
    top: -6.4rem;
}

/*MessagePage*/
.message-page {
    height: calc(100vh - 64px);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20rem;
    -webkit-transition: all ease 0.2s;
    -o-transition: all ease 0.2s;
    transition: all ease 0.2s;
    z-index: 1500;
}

#MessageLayout > .message-page {
    height: 100vh;
}

.message-page-overlay {
    position: fixed;
    overflow: visible;
    padding: 20rem;
    -webkit-transition: all ease 0.2s;
    -o-transition: all ease 0.2s;
    transition: all ease 0.2s;
    z-index: 1500;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    min-height: 100vh;
    min-width: 100vw;
}

    .message-page-overlay:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
    }

    .message-page-overlay .card {
        position: absolute;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
    }

.message-page .card {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.smooth-exit {
    -webkit-animation: fadeInFromNone 1s;
    animation: fadeInFromNone 1s;
    animation-direction: reverse;
}

.no-scroll {
    overflow: hidden;
}

.center-cell {
    -ms-flex-line-pack: center;
    align-content: center;
}
/*Animations*/
@-webkit-keyframes fadeInFromNone {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInFromNone {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}
