@import 'root.css';

/* general style for PA 2.0 */
#main-body {
    overflow-x: hidden;
    overflow-y: auto;
    background: none;
}

/*
    Define variables
*/

:root {
    --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: 7px !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: #6C757D;
    --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;
}

/* 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;

}