﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
    width: 12rem;
    overflow: hidden;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

main {
    min-height: calc(100vh - 14rem);
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    /*position: relative;*/
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    /*margin-bottom: 60px;*/
}

.footer {
    /*
    position: absolute;
    bottom: 0;
    */
    color: rgba(255, 255, 255, 0.55);
    width: 100%;
    white-space: nowrap;
    /*line-height: 60px;*/ /* Vertically center the text there */
}

/* Sticky top styles
-------------------------------------------------- */
.sticky-top {
    transition: all 0.25s ease-in;
}

/* style for when sitcky is applied */
.stuck .navbar.sticky-top {
    background-color: #5783DB !important;
    padding-top: .8rem !important;
    padding-bottom: .8rem !important;
}

    .stuck .navbar.sticky-top .nav-item a {
        color: rgba(255, 255, 255, 0.55);
    }


/* common
-------------------------------------------------- */
.policy-dialog {
    color: rgba(255, 255, 255, 0.55);
}


/* border
-------------------------------------------------- */
@media (min-width: 992px) {
    .border-lg-start {
        border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    }
}


/* card
-------------------------------------------------- */
.card-app .card .card-header {
    background-color: #4975AF;
}


/* card (color)
-------------------------------------------------- */
.card-blue {
    color: #7892B5;
}

.card-green {
    color: #91B5A9;
}

.card-gray-300,
.card-grey-300 {
    color: #dddfeb;
}

.card-gray-400,
.card-grey-400 {
    color: #ced4da;
}

.card-info {
    color: #8CB9C0;
}

.card-lightsteelblue {
    color: #B0C4DE;
}

.card-skyblue {
    color: #87CEEB;
}

.card-red {
    color: #D98481;
}


/* color (background)
-------------------------------------------------- */
.bg-blue {
    background-color: #5783DB;
}


/* color (text)
-------------------------------------------------- */
.text-blue, .text-blue:hover {
    color: #5783DB;
}

.text-bronze {
    color: #CD7F32;
}

.text-gold {
    color: #FFD700;
}

.text-gray-300, .text-gray-300:hover,
.text-grey-300, .text-grey-300:hover {
    color: var(--bs-gray-300);
}

.text-gray-400, .text-gray-400:hover,
.text-grey-400, .text-grey-400:hover {
    color: var(--bs-gray-400);
}

.text-gray-600, .text-gray-600:hover,
.text-grey-600, .text-grey-600:hover {
    color: var(--bs-gray-600);
}

.text-gray-800, .text-gray-800:hover,
.text-grey-800, .text-grey-800:hover {
    color: var(--bs-gray-800);
}

.text-silver {
    color: #C0C0C0;
}


/* form
-------------------------------------------------- */
form .row .form-floating label {
    margin-left: .75rem;
}

.form-floating .form-image {
    height: 10rem;
    /*min-height: 10rem;*/
}

.form-floating-fixed {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-left: 0;
    height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    padding-left: .375rem;
}

.form-floating-fixed .form-check-input {
    font-size: 1.75rem;
}


/* form (profile)
-------------------------------------------------- */
.card-link.form-floating label {
    margin-left: .75rem;
}


/* margin
-------------------------------------------------- */
.ms-2_5 {
    margin-left: .75rem;
}

.mt-6 {
    margin-top: 4rem;
}


/* dialog
-------------------------------------------------- */
.modal-dialog img {
    height: 4rem;
}

.modal-dialog-confirm .modal-header svg {
    border: 0.25rem solid;
    border-radius: 50%;
    height: 2.5rem;
    padding: 0.5rem;
    width: 2.5rem;
}


/* dialog (stepper)
-------------------------------------------------- */
.modal-dialog-stepper {
    z-index: 1054;
}

.form-stepper span[class^="step-"],
.modal-dialog-stepper span[class^="step-"] {
    background: var(--bs-gray-200);
    border-color: var(--bs-gray-200);
    border-width: .1rem;
    border-style: solid;
    border-radius: 50%;
    color: var(--bs-light);
    display: inline-block;
    height: 1.75rem;
    margin-left: .5rem;
    margin-right: .5rem;
    width: 1.75rem;
}

    .form-stepper span[class^="step-"].active,
    .modal-dialog-stepper span[class^="step-"].active {
        /*background: var(--bs-gray-400);*/
        background: transparent;
        border-color: var(--bs-gray-600);
        color: var(--bs-gray-600);
    }

    .form-stepper span[class^="step-"].finish,
    .modal-dialog-stepper span[class^="step-"].finish {
        background: var(--bs-green);
        border-color: var(--bs-green);
        opacity: .8;
    }

.form-stepper div[class^="tab-"],
.modal-dialog-stepper div[class^="tab-"] {
    display: none;
}


/* image
-------------------------------------------------- */
svg.svg-bi.bi-shield-check,
svg.svg-bi.bi-shield-exclamation {
    height: 2rem;
    width: 2rem;
}

svg.svg-bi.bi-shield-check {
    color: #ADFF2F;
}

svg.svg-bi.bi-shield-exclamation {
    color: #FFD700;
    cursor: pointer;
}


/* input (hide number arrow)
-------------------------------------------------- */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* datatable (event host)
-------------------------------------------------- */
.table-wrapper-host {
    margin-top: -.5rem;
}

.table-wrapper-host .table.dataTable.no-footer {
    border-bottom: 0px solid rgba(0, 0, 0, 0.3);
}

.table-wrapper-host .table tr:last-child td {
    border-style: none;
}


/* div (image background)
-------------------------------------------------- */
.bg-img-fixed .form-image {
    /*
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100%;
    */
    height: auto;
    padding-top: 3rem;
}


/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}


/* jQuery UI (autocomplete)
-------------------------------------------------- */
ul.ui-autocomplete {
    z-index: 9999;
}


/* name card (preview)
-------------------------------------------------- */
.namecard-preview {
    /*height: 35rem;*/
    height: 37rem;
    width: 100%;
}

.modal-dialog-preview object {
    height: 37rem;
    width: 100%;
}


/* navbar
-------------------------------------------------- */
.navbar-brand img {
    /*width: 16.5rem;*/
    height: 2.25rem;
}

.navbar .nav-item a,
.navbar .nav-item a:hover {
    color: #5783DB;
}

.nav-pills .nav-link.active {
    color: #5a5c69;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: unset;
}


/* navbar (toggler)
-------------------------------------------------- */
.navbar-toggler span {
    display: block;
    /*background-color: #5783DB;*/
    background-color: rgba(var(--bs-light-rgb),var(--bs-bg-opacity)) !important;
    height: 3px;
    width: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
    position: relative;
    left: 0;
    opacity: 1;
    transition: all 0.2s ease-out;
    transform-origin: center left;
}

    .navbar-toggler span.invert {
        background-color: #F8F9FA;
    }

    .navbar-toggler span:nth-child(1) {
        margin-top: 0.3em;
    }

.navbar-toggler:not(.collapsed) span:nth-child(1) {
    transform: translate(15%, -33%) rotate(45deg);
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: translate(15%, 33%) rotate(-45deg);
}

.navbar-toggler span:nth-child(1) {
    transform: translate(0%, 0%) rotate(0deg);
}

.navbar-toggler span:nth-child(2) {
    opacity: 1;
}

.navbar-toggler span:nth-child(3) {
    transform: translate(0%, 0%) rotate(0deg);
}


/* form (was-validated)
-------------------------------------------------- */
.form-control.is-valid,
.form-control.is-valid:focus,
.form-select.is-valid,
.was-validated .form-control:valid,
.was-validated .form-control:valid:focus,
.was-validated .form-select:valid {
    background-image: unset;
    border-color: var(--bs-border-color);
    box-shadow: inherit;
    padding-right: .75rem;
}

.form-control.is-invalid-forced {
    border-color: var(--bs-form-invalid-border-color) !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}


/* spinner
-------------------------------------------------- */
    .spin-wrapper {
    background-color: rgb(224, 224, 224, 0.5);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    /*z-index: 10;*/
    z-index: 1060;
}


.spinner {
    position: absolute;
    left: calc(50% - 2rem);
    top: calc(50vh - 2rem);
}

    .spinner div {
        position: absolute;
        width: .4rem;
        height: .4rem;
        background-color: #ccc;
        border-radius: 50%;
        animation: spinner 1.2s linear infinite;
    }

        .spinner div:nth-child(1) {
            animation-delay: 0s;
            top: 37px;
            left: 66px;
        }

        .spinner div:nth-child(2) {
            animation-delay: -0.1s;
            top: 22px;
            left: 62px;
        }

        .spinner div:nth-child(3) {
            animation-delay: -0.2s;
            top: 11px;
            left: 52px;
        }

        .spinner div:nth-child(4) {
            animation-delay: -0.3s;
            top: 7px;
            left: 37px;
        }

        .spinner div:nth-child(5) {
            animation-delay: -0.4s;
            top: 11px;
            left: 22px;
        }

        .spinner div:nth-child(6) {
            animation-delay: -0.5s;
            top: 22px;
            left: 11px;
        }

        .spinner div:nth-child(7) {
            animation-delay: -0.6s;
            top: 37px;
            left: 7px;
        }

        .spinner div:nth-child(8) {
            animation-delay: -0.7s;
            top: 52px;
            left: 11px;
        }

        .spinner div:nth-child(9) {
            animation-delay: -0.8s;
            top: 62px;
            left: 22px;
        }

        .spinner div:nth-child(10) {
            animation-delay: -0.9s;
            top: 66px;
            left: 37px;
        }

        .spinner div:nth-child(11) {
            animation-delay: -1s;
            top: 62px;
            left: 52px;
        }

        .spinner div:nth-child(12) {
            animation-delay: -1.1s;
            top: 52px;
            left: 62px;
        }

@keyframes spinner {
    0%, 20%, 80%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}


/* tooltip
-------------------------------------------------- */
.tooltip-inner {
    background: var(--bs-secondary);
}

.tooltip.bs-tooltip-auto .tooltip-arrow::before {
    border-right-color: var(--bs-secondary);
}


/* width
-------------------------------------------------- */
.w-5 {
    width: 5%;
}

.w-8 {
    width: 8%;
}

.w-10 {
    width: 10%;
}

.w-12 {
    width: 12%;
}

.w-15 {
    width: 15%;
}

.w-18 {
    width: 18%;
}

.w-28 {
    width: 28%;
}

.w-30 {
    width: 30%;
}

.w-90 {
    width: 90%;
}
