﻿@import 'root.css';

/* general style for PA 2.0 */
#main-body {
    overflow-x: hidden;
    overflow-y: auto;
    background: none;
}

/*
    Define variables
*/

:root {
    --bg-default-color: #f2f5fa;
    --bg-color-card-active: #526AE0;
    --bg-color-card-inactive: #D8DDE6;
    --text-color-active: #FFFFFF;
    --text-color-inactive: #213055;
    --bg-color-card-incomplete: #D42537;
}

/*
    General styles
*/
body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5em;
}

/*
    form validation
*/

.form-control.is-valid,
.form-control.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-control:valid,
.form-control:valid:focus,
.form-control:invalid:focus {
   background-image: none;
   padding-right: 0;
}

.was-validated .form-select:valid,
.was-validated .form-select:invalid,
.form-select.is-valid:not([multiple]):not([size]),
.form-select.is-invalid:not([multiple]):not([size]),
.was-validated .form-select:invalid:not([multiple]):not([size]),
.was-validated .form-select:valid:not([multiple]):not([size]) {
    --bs-form-select-bg-icon: none;
}

.invalid-feedback {
    font-size: 16px;
}
/*
    button
*/

.btn-pa {
   padding-block: 10px !important;
   padding-inline: 13px !important;
}

@media only screen and (min-width: 576px) {
    .btn-pa {
        min-width: 78px;
    }
}

.btn-pa-secondary {
    background-color: rgb(var(--pa2-text-color)) !important;
    color: rgb(var(--pa2-primary-color)) !important;
    border-color: rgb(var(--pa2-primary-color)) !important;
}

.btn-pa-secondary:hover, .btn-pa-secondary:active, .btn-pa-secondary:visited {
    background-color: rgb(var(--pa2-primary-color)) !important;
    color: rgb(var(--pa2-text-color)) !important;
    border-color: rgb(var(--pa2-text-color)) !important;
}

.btn-primary, .btn-primary:active, .btn-primary:visited {
    background-color: rgb(var(--pa2-primary-color)) !important;
    color: rgb(var(--pa2-text-color)) !important;
    border-color: rgb(var(--pa2-primary-color)) !important;
}

.btn-primary:hover {
    background-color: rgba(var(--pa2-primary-color), 0.75) !important;
    color: rgb(var(--pa2-text-color)) !important;
}

.btn-outline-primary, .btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary:visited {
    background-color: rgb(var(--pa2-text-color)) !important;
    color: rgb(var(--pa2-primary-color)) !important;
    border-color: rgb(var(--pa2-primary-color)) !important;
}

/*
   other
*/
.no-left-margin {
    margin-left: 0;
}

.no-right-margin {
   margin-right: 0;
}

.red {
   color: red;
}

/*
    colors
*/
.pa-primary-background-color {
    background-color: rgb(var(--pa2-primary-color)) !important;
}

.pa-text-color {
    color: rgb(var(--pa2-text-color)) !important;
}

.pa-primary-background-color-opacity {
    background-color: rgba(var(--pa2-primary-color), 0.5) !important;
}

.pa-highlight-background-color {
    background-color: var(--bg-color-card-active);
}

/*
    badges
*/

.badge.bg-primary {
    background-color: rgb(var(--pa2-primary-color)) !important;
    color: rgb(var(--pa2-text-color)) !important;
}

.fs-12px {
    font-size: 12px !important;
}

/*
    Progress bar
*/
.progress-bar {
    background-color: rgb(var(--pa2-primary-color)) !important;
}

/*
    Pagination
*/
.pagination {
    --bs-pagination-color: rgb(var(--pa2-primary-color));
    --bs-pagination-bg: rgb(var(--pa2-text-color));
    --bs-pagination-active-bg: rgb(var(--pa2-primary-color));
    --bs-pagination-active-border-color: rgb(var(--pa2-primary-color));
    --bs-pagination-active-color: rgb(var(--pa2-text-color));
    --bs-pagination-hover-color: rgb(var(--pa2-primary-color));
    --bs-pagination-hover-bg: rgb(var(--pa2-text-color));
    --bs-pagination-focus-color: rgb(var(--pa2-primary-color));
    --bs-pagination-focus-box-shadow: rgba(var(--pa2-primary-color), 0.5);
    --bs-pagination-focus-bg: rgb(var(--pa2-text-color));
}

/*
    Tooltip
*/
.tooltip {
    --bs-tooltip-bg: #798188;
    --bs-tooltip-zindex: 2000;
}

/*
    Handle extra small devices with media queries 
*/

@media (max-width: 575.98px) {
    .d-xs-none {
        display: none !important;
    }

    .d-xs-flex {
        display: flex !important;
    }

    .justify-content-xs-between {
        justify-content: space-between !important;
    }
    
    /* 
        Add margin to inactivity warning modal on extra small devices 
     */
    .inactivity-warning-modal {
        margin-top: 6rem !important;
    }
}

@media (max-width: 900px) {
    /* 
        Add margin to inactivity warning modal on small devices 
     */
    .inactivity-warning-modal {
        margin-top: 6rem !important;
    }
}

.contact-us-map-link iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* Set the height of the map on medium and large devices */
/* Commenting instead of removing because I think they'll request this back.
@media (min-width: 992px) {
    .contact-us-map-link iframe {
        height: 370px !important;
    }
}
*/
/* All links inside .contact-us should be blue */
.contact-us a {
    color: var(--bs-link-color) !important;
}

.btn-disabled-primary {
    background-color: rgb(var(--pa2-primary-color), 0.4) !important;
    color: rgb(var(--pa2-text-color), 0.4) !important;
    border-color: rgb(var(--pa2-primary-color), 0.4) !important;
    opacity: 100 !important;
}

.btn-disabled-secondary {
    background-color: rgb(var(--pa2-text-color), 0.4) !important;
    color: rgb(var(--pa2-primary-color), 0.4) !important;
    border-color: rgb(var(--pa2-primary-color), 0.4) !important;
    opacity: 100 !important;
}

@media only screen and (max-width: 575.98px) {
    .HideOnMobile {
        display: none;
    }

    .ShowOnMobile {
        display: initial;
    }

    .single-button-mobile {
        width: 100% !important;
    }

    .double-button-mobile {
        width: 50% !important;
    }
}

@media (min-width: 576px) {
    .HideOnMobile {
        display: initial;
    }

    .ShowOnMobile {
        display: none;
    }
}

.copyright {
    font-size: 12px;
    text-align: center;
    margin-top: auto;
    font-family: "Helvetica Neue", Arial, san-serif, serif;
    line-height: 14.32px;
}

/* From: https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
.dont-break-out, .dont-break-out a {

    /* These are technically the same, but use both */
    overflow-wrap: break-word;
    word-wrap: break-word;

    -ms-word-break: break-all;
    /* This is the dangerous one in WebKit, as it breaks things wherever */
    word-break: break-all;
    /* Instead use this non-standard one: */
    word-break: break-word;

    /* Adds a hyphen where the word breaks, if supported (No Blink) */
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;

}

.page-title {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
}

.mobile-back-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #0D6EFD !important;
}

/* Apply .form-select styles to the components. CSS rules copied from boostrap */
.select2-selection {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}