:root {
    --racma-yellow: #ffd200;
    --racma-blue: #002554;
    --racma-cyan: #008ba6;
    --racma-grey: #c1c6c9;
}

@font-face {
    font-family: 'Roboto';
    src: url(/Roboto-Light.ttf);
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url(/Roboto-Regular.ttf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url(/Roboto-Bold.ttf);
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url(/Roboto-Black.ttf);
    font-weight: 900;
    font-style: normal;
}

*:not(#fakeId) {
    /* Add styling here. '*:not(#fakeid)' adds a layer of specificity to all stylings, allowing 
       us to override portalmaintheme.css without excessive use of !important. */

    /* Text */
    p,
    div {
        font-family: Roboto;
        font-weight: 300;
    }

    .racma-cell {
        padding: 0 28px 20px;
    }
    
    p.form-control {
        font-weight: 400;
        border: none;
        margin-bottom: 0;
    }

    a:not(.btn-primary) {
        font-family: Roboto;
        font-weight: 400;
        font-size: 1rem;
    }

    h1,
    h2,
    h3 {
        font-family: Roboto;
    }

    /* Heading accent line */
    h1::after, h2::after {
        width: 9.5rem;
        height: 0.4rem;
        content: "";
        background: var(--racma-yellow);
        position: relative;
        display: block;
        margin-top: 1.5rem;
    }
    .description {
        font-size: 1rem;
    }

    .instructions > p {
        font-size: 1rem;
    }

    /* Navbar */
    .navbar a {
        background-color: transparent;
        color: white;
        text-decoration: none;
        border: 1px solid transparent;
        padding: 13px 13px 0px;
    }

    .navbar a:hover,
    .navbar a:active,
    .navbar a:focus,
    .navbar a[aria-expanded="true"] {
        /* aria-expanded catches tabs that have been opened. */
        background-color: transparent;
        color: #00BFD6; /*var(--racma-yellow);*/
        text-decoration: none;
    }

    .navbar a:focus {
        /* Accessibility features - think before overriding. */
        border: 1px solid transparent !important;
        /*outline: 1px dashed black !important; */

        outline: 5px auto -webkit-focus-ring-color !important;
    }

    /* Navbar dropdown menu */
    .navbar .dropdown-menu {
        background-color: var(--racma-blue);
        border: 1px solid transparent;

    }

    .navbar .dropdown-menu a,
    .navbar .dropdown-menu a:hover {
        padding: 1px 18px;
        border: 1px solid transparent;
    }

    .navbar .dropdown-menu .divider {
        background-color: transparent;
    }

    /* 'Skip to main content' dropdown bar */
    .skip-to-content a {
        background: var(--racma-blue);
        text-decoration: none;
    }

    .skip-to-content a:focus {
        outline: 5px auto -webkit-focus-ring-color;
    }

    /*Footer*/
    .footer-bottom p {
        margin-top: 22px;
        font-size: 11px;
        color: white;
    }

    /* Social media links */
    .social-media-link {
        display: inline-block;
        height: 100%;
        fill: white;
        padding-right: 0;
    }

    /* Button primary RACMA colours */
    .btn-primary, .btn-info {
        background-color: var(--racma-blue);
        border-color: var(--racma-blue);
        color: white;
        border-radius: 2px;
    }

    .btn-primary:disabled, .btn-primary[disabled] {
        background-color: #dddddd;
        border-color: #dddddd;
        color: var(--racma-blue);
    }

    /* Button default RACMA colours */
    .btn-default {
        color: var(--racma-blue);
        border-color: var(--racma-blue);
    }

    .btn.disabled {
        background-color: white;
    }
    
    .btn-default:hover  {
        color: #FFFFFF;
        background-color: var(--racma-blue);
        border-color: var(--racma-blue);
    }
    
    .btn-default:active , .btn-default:focus  {
        color: #FFFFFF;
        background-color: var(--racma-blue);
        border-color: var(--racma-blue);
    }

    .btn-default:disabled  {
        color: #FFFFFF;
    }

    .btn-over-form {
        margin-top: 5px;
        margin-left: 3px;
        margin-right: 3px;
    }

    .take-payment .hidden-container,  #paymentReceipt .hidden-container, .hidden-container {
        display: none;
    }

    .take-payment .loader, #paymentReceipt .loader, .loader {
        padding-top: 17%;
    }

    .loading-overlay {
        background: rgba(255, 255, 255, 0.7);
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 7;
        top: 0;
    }

    .eventsLoader {
        padding-bottom: 17%;
    }

    /* Table */
    .ms-Link {
        color: var(--racma-blue);
    }

    [data-icon-name="Cancel"],
    [data-icon-name="Info"]{
        color: var(--racma-blue);
    }

    .ms-Icon[data-icon-name="More"]{
        color: var(--racma-blue);
        font-size: 20px !important;
        font-weight: bold;
    }

    .fa{
        color:  var(--racma-blue);
    }

    span .fa-plus-circle{
        color: #FFFFFF;
    }

    .btn-default:hover>.fa{
        color: #FFFFFF;
    }

    /* Larger Spinner */
    .spinner-large {
        height: 100px;
        width: 100px;
        --bs-spinner-border-width: 0.55em;
    }

    /* Payment Receipt Page */
    .racma-logo {
        width: 80%;
    }
    
    .take-payment table td:last-child,  .take-payment table thead tr :last-child{
        text-align: right;
    }

    .racma-bordered-table tr {
        border-left: solid 1px #dee2e6;
        border-right: solid 1px #dee2e6;
    }

    .racma-bordered-table tr:first-child {
        border-top: solid 1px #dee2e6;
    }

    .racma-bordered-table tr td {
        border-bottom-width: 0
    }

    .racma-bordered-table tr:last-child {
        border-bottom: solid 1px #dee2e6;
    }

    .totals-table tr td:first-child {
        width: 50%;
        border-right: solid 1px #dee2e6;
    }

    /* ITA Dashboard page */
    .itaBadResult {
        font-weight: bold;
        color: red;
    }

    /**
    * General Styling improvements
    */

    input[type=radio] {
        margin-top: 5px;
    }

    /* html Table styling */
    .racma-table {
    }

    .racma-table .w-12 {
        width:12.5%;
    }

    /* Removing unnecessary borders */
    .crmEntityFormView, .entitylist {
        border: none;
    }

    .actions {
        border: none;
    }

    .crmEntityFormView .tab-title {
        border: none;
    }

    .crmEntityFormView .cell.crmquickform-cell:first-child {
        border-right: none;
    }
    /*Hyperlink CSS*/
    .crmEntityFormView a:not(.btn):not(th a):not(div.subgrid a), p > a {
        color: #6AABE5 !important;
    }   

    /* Input borders */
    /*input.form-control*/
    .form-control {
        border-color: var(--racma-blue);
    }

    /* Progress Bar updates */
    ol.progress.top {
        background-color: white;
    }

    ol.progress.top .list-group-item {
        flex: 1;
        padding: 0;
        border: none;
        background: none;
        text-align: center;
    }

    ol.progress.top .list-group-item .fa-check::before {
        content: none;
    }

    ol.progress.top .list-group-item.active {
        color: black;
        margin: 0;
    }
    
    ol.progress.top .list-group-item.incomplete::before {
        background: white;
        border: 5px solid var(--racma-grey);
        content: "";
    }

    ol.progress.top .list-group-item.active::before {
        background: white;
        border: 5px solid var(--racma-yellow);
        content: "";
    }

    ol.progress.top .list-group-item.active::after, ol.progress.top .list-group-item.incomplete::after {
        background: var(--racma-grey) !important;
    }
    
    ol.progress.top .list-group-item::before {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        align-content: center;
        color: white;
        content: "\2713";
        background: var(--racma-yellow);
        position: relative;
        left: calc(50% - 27.5px);
        display: block;
        z-index: 2;
    }

    ol.progress.top .list-group-item::after {
        width: 100%;
        height: 6px;
        content: "";
        font-size: 24px !important;
        background: var(--racma-yellow);
        position: relative;
        top: calc(55px / 2);
        left: 50%;
        display: block;
        position: absolute;
    }

    ol.progress.top .list-group-item:last-child::after {
        width: 0%;
    }

    .racma-action-buttons {
        padding: 50px 0;
    }
    
    /* All Events Custom Page Styling */
    
    @media (max-width: 768px) {
        ol.progress.top .list-group-item {
            padding-left: 65px;
            line-height: 55px;
            text-align: left;
            padding-bottom: 10px;
        }

        ol.progress.top .list-group-item::before {
            position: absolute;
            left: 0;
        }

        ol.progress.top .list-group-item::after {
            display: none;
        }
    }

    /* Print Page */
    @media print {
        .footer, .navbar {
            display: none !important;
        }

        .no-print {
            display: none;
        }

        .racma-logo {
            width: 100%;
        }

        table {
            font-size: 11px;
        }
    }
}

/* Hides the "This Site is Private" banner. */
#privateModeText {
    display:none;
}


