@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Raleway:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

body {
    background-color: #fff;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    font-style: normal;
    font-weight: 700;
    text-rendering: optimizeLegibility;
    margin-bottom: 1rem;
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
    font-family: "Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

p{
    /* font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; */
}

/* main {
    background: linear-gradient(180deg, rgba(242,242,242,1) 25.25%, rgba(255,255,255,1) 25.25%);
} */

.nav-bar {
    background-color: #eee;
}

.bars{
    margin-right: -48px;
    margin-left: -48px;    
}

.bar {
    height:10px;
    margin-top:-17px;
}

.title-bar {
    /* color: #fff; */
    padding: 10px 0;
    opacity: 80%;
    margin: -16px -48px 32px;
    font-weight: 700;
}

.intro{
    font-size: 1.3rem !important;
}

fieldset{
    margin: 0.75rem 0;
}

.mt-3-5{
    margin-top: 1.5rem;
}

.question-num {
    /* background-color: #a7d1e9; */
    background-color: #545b62;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
}
#progress-bar-track {
    position: relative;
    height: 6px;
    border-radius: 5px;
    /* background-color: #b1b3b5; */
    background-color: #dbddde;
}
#progress-bar {
    position: absolute;
    top:0;
    z-index: 1;    
    height: 6px;
    border-radius: 5px;
    background-color: #01b948;
    width:0;
}
#total-progress-bar {
    position: absolute;
    top:0;
    z-index: 0;
    height: 6px;
    border-radius: 5px;
    /* background-color: #dbddde; */
    background-color: #b1b3b5;
    width:0;
}
#back-btn{
    cursor: pointer;
}
#back-btn::before {
    content: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2FyZXQtbGVmdC1maWxsIiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Im0zLjg2IDguNzUzIDUuNDgyIDQuNzk2Yy42NDYuNTY2IDEuNjU4LjEwNiAxLjY1OC0uNzUzVjMuMjA0YTEgMSAwIDAgMC0xLjY1OS0uNzUzbC01LjQ4IDQuNzk2YTEgMSAwIDAgMCAwIDEuNTA2eiIvPgo8L3N2Zz4=');
    width:1rem;
    height:1rem;
    display: inline-block;
}       
.hub{
    position: relative;
    background-image: url('trillium-segment.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    background-color: #ffffff;
}
#question-recos{
    margin: 10px 0 0 25px;
}
#question-recos:before{
    content: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktaW5mby1jaXJjbGUtZmlsbCIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNOCAxNkE4IDggMCAxIDAgOCAwYTggOCAwIDAgMCAwIDE2em0uOTMtOS40MTItMSA0LjcwNWMtLjA3LjM0LjAyOS41MzMuMzA0LjUzMy4xOTQgMCAuNDg3LS4wNy42ODYtLjI0NmwtLjA4OC40MTZjLS4yODcuMzQ2LS45Mi41OTgtMS40NjUuNTk4LS43MDMgMC0xLjAwMi0uNDIyLS44MDgtMS4zMTlsLjczOC0zLjQ2OGMuMDY0LS4yOTMuMDA2LS4zOTktLjI4Ny0uNDdsLS40NTEtLjA4MS4wODItLjM4MSAyLjI5LS4yODd6TTggNS41YTEgMSAwIDEgMSAwLTIgMSAxIDAgMCAxIDAgMnoiLz4KPC9zdmc+'); 
    background-repeat: no-repeat;
    padding-right: 25px;
    margin: -20px;
}        
#answer-recos li::marker {
    font-weight: bold;
}
#answer-recos a {
    color: #007bff;
}

ol#answer-recos a:hover {
    text-decoration: underline;
}

a[role="button"] {
    cursor: pointer;
}

#descr-modal {
    position: absolute;
    top: -1px;
    right: -1px;
    z-index: 2;
    width:calc(100% + 2px);
    height: calc(100% + 2px);
    min-height: 300px;
    background-color: rgba(0, 0, 0, 0.80);
    display: block;
}

.descr-wrapper {
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 0 10px;
    height: auto;
    max-height: 245px;
    overflow-y: auto;
}

#descr {
    background-color: #ffffff;
    padding: 20px;
    max-height: 90%;
    margin: auto;
    border: 0 solid #ffffff;
    padding: 25px;
    border-radius: 10px;
    top: 20%;
    bottom: 20%;
    left: 10%;
    right: 10%;
    position: absolute;
    width: calc(90% - 80px);
}

.copy {
    height: 100%;
    overflow-y: auto;
    padding:0 10px 10px;
}

.copy h2 {
    position: sticky;
    top: 0;
    padding-bottom: 5px;
    background-color: #fff;
    z-index: 1;
}

.close-icon {
    position: absolute;
    right: -10px;
    top: -12px;
    display: block;
    width: auto;
    height: auto;
    z-index: 10;
    color: #fff;   
}

#print-btn {
    min-width: 162px;
}

li.group-box:not(:last-child){
    border-right:0 !important;
    border-bottom: 1px solid #dee2e6!important;
}

#resource-results li {
    padding-top: 0.75rem;
}

.hide-me {
    display: none !important;
}

.hide-from-all{
    position: absolute;
    visibility: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

#messages {
    border-left: solid .25rem #856405;
    border-radius: .5rem;
}

#messages .alert {
    padding-left: 60px;
}

#messages .alert:before {
    content: "\F430";
    font-family: bootstrap-icons !important;
    margin-left: -45px;
    padding-right: 13px;
    display: block;
    height: auto;
    position: absolute;
    font-size: 1.75rem;
}

#email-alert .alert {
    line-height:1.2;
    margin-bottom: 0;
}

#results-return {
    position: absolute;
    top: 15px;
    left: -12px;
}

/* #comment {
    height: 95px;
    overflow-y: auto;
    /* border: solid 1px #ccc; *//*
    padding: 10px;
    /* border-radius: 5px; *//*
}
#comment::-webkit-scrollbar-track {
    background-color:#eee;
}

#comment::-webkit-scrollbar {
    -webkit-appearance: none;
    width:8px;
}

#comment::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,0.5);
} */

/* Bootstrap Overrides */

a{
    color: #0062cc;
}

a.buttonClass {
    color: #FFFFFF !important;
}

.newsletter_white_link a {
    color: #FFFFFF !important;
}

.btn-primary, 
.btn-primary:hover:disabled{
    color: #ffffff !important;
    background-color: #0069d9 !important;
    border-color: #0062cc !important;
}

.btn-primary:hover:not(.title-bar):not(:disabled){
    background-color: #0253a9 !important;
    border-color: #0253a9 !important;
}

.btn-success{
    color: #ffffff !important;
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.btn-success:hover:not(.title-bar){
    background-color: #145021 !important;
    border-color: #145021 !important;
}

.btn-danger{
    color: #ffffff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover:not(.title-bar){
    background-color: #911320 !important;
    border-color: #911320 !important;
}

/* Form Styles Start */

legend, 
.question-label {
    font-size: 1.2rem;
}
.words {
    font-size: .70em;
    /* background-color: #dce8fb;*/
    text-align: right;
    padding: 0 5px;
    position: relative;
    top: -8px;
}

.email_required {
    color: #a3131d;
}

._error-inner{
    color:#a3131d;
    font-size:1rem;
    font-weight: 400;
}

.required-field:after {
    content:" *";
    font-size:1.3rem;
    line-height: .75;
    color:#a3131d;
}        

.form-group-contextual{
    min-height:0 !important;
    margin-top:0 !important;
}

.checkbox_holder{
    position:relative;
    margin-bottom: -1.5rem;
}
.checkbox_holder label{
    position: relative;
    display: block;
    top: -2rem;
    margin-left: 2.5rem;    
}
.checkbox_holder{
    position: relative;
    margin-bottom: 0rem;
}
.submit_holder {
    background-color: #eee;
    margin-bottom: 1.5rem;
}
.submit_holder button {
    line-height: 2.4;
}
.btn.disabled, .btn:disabled {
    cursor: not-allowed;
}
.submit-btn.btn:hover:not(:disabled) {
    opacity: 80%;
}        
.privacy {
    position: absolute !important;
    margin-top: 7px !important;
}

#privacy_title {
    padding-left: 2.5rem;
}
#privacy_title a {
    white-space: nowrap;
}
#privacy_title span.required-field:after {
    content: "*";
    position: relative;
    right: 0;
    top: unset;
}

#nav-bar,
.footer-link-container{
    background-color: #1a1a1a;
    position:relative;
}
.footer-link-container a {
    color: #fff !important;
}
#ontario-logo{
    max-width: 180px;
    height: auto;
}
.app-title-container{
    background-color: #F2F2F2;
}

/* Form Styles End */

/* Medium devices (tablets, 991px and below) */
@media (max-width: 991px) {
    .title-bar {
        margin: -16px -16px 0;
    }
    .bars {
        margin-right: -17px;
        margin-left: -17px;
    }    
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    li.group-box:not(:last-child){
        border-bottom: 0 !important;
        border-right: 1px solid #cad1d7!important;
        /* border-color: #17a2b8!important;  */
    }
    li.group-box {
        position: relative;
        min-height:230px;       
    }
    /* li.group-box button{
        position: absolute;
        bottom: 0px;
        right: 32px;
    } */
    .group-box-content {
        margin-bottom: 80px;
    }

    #resource-results {
        column-count: 2;
    }    
}

@media (max-width:767.98px){
    li.group-box:not(:last-child) {
    padding-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    @page {
        margin: 0 0.5in;
    }
    .container {
        min-width: 100% !important;
    }
    a, abbr{
        text-decoration:none !important;
        color: #000 !important;
    }
    a:not([href=""]):after {
        content: "\a ( " attr(href) " ) ";
        /* white-space: pre; */
    }
    .question-block {
        page-break-inside: avoid;
    }
    .question-num {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

.footer-link-container:before {
    background-image: url(https://www.ontario.ca/international-trade-events-calendar/assets/vendor/ontario-design-system/logos/footer-default-supergraphic-logo.svg);
    background-size: 112.5rem;
    background-position: calc(50vw - 73.5rem) -64rem;
    background-color: #333;
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (min-width: 73em){
    .footer-link-container:before {
        background-size: 275rem;
        background-position: calc(50vw - 187rem) -160rem;
    }
}

@media screen and (min-width: 40em){
    .footer-link-container:before {
        background-size: 180rem;
        background-position: calc(50vw - 120rem) -106rem;
    }
}
