html, body {
    overflow-x: hidden;
}

body { 
    position: relative;
    margin: 0;
}

@media (min-width: 600px) {
    h1 {
        font-size: 100px;
    }

    h2 {
        font-size: 60px;
    }

    h3,
    .swal-title {
        font-size: 36px;
    }

    h4 {
        font-size: 26px;
    }

    .wysiwyg-content, p, li {
        font-size: 20px;
        line-height: 1.667;
    }

    .btn:not(.btn-sm) {
        font-size: 22px;
        font-weight: 700;
    }

    .btn.btn-sm {
        font-size: 18px;
        font-weight: 400;
    }

    .btn:not(.btn-sm):not(.dropdown-toggle) {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    
    .btn.btn-sm:not(.swal-button):not(.prompt-btn) {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    .btn.btn-sm.swal-button,
    .btn.btn-sm.prompt-btn {
        padding-top: 12px !important;
        padding-bottom: 10px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 46px;
    }

    h2 {
        font-size: 30px;
    }

    h3,
    .swal-title {
        font-size: 26px;
    }

    h4 {
        font-size: 22px;
    }

    .wysiwyg-content, p, li {
        font-size: 18px;
    }

    .btn {
        font-size: 14px;
        font-weight: 400;
    }
    
    .btn:not(.btn-sm):not(.dropdown-toggle) {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .btn.btn-sm {
        padding-top: 12px !important;
        padding-bottom: 10px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.swal-title {
    font-weight: 500;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.generic-link,
.generic-link:hover,
.generic-link:active {
    opacity: 0.5 !important;
    text-decoration: underline !important;
}

.swal-overlay:focus {
    outline: none !important;
}

.avg-mbox-scroll {
    max-height: 200px;
    overflow-y: auto;
}

#avg-mbox-content #bottom-area {
    text-align: left;
    margin-top: 20px;
}

.btn {
    border: none !important;
}

.btn.focus,
.btn:focus {
    box-shadow: none !important;
}

.btn-danger:hover,
.btn-danger.focus,
.btn-danger:focus {
    background-color: #dc3545 !important;
}

.navbar {
    padding: 0px;
    min-height: 80px;
}

@media (min-width: 992px) {
    .navbar-nav {
        margin-right: 80px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        padding: 15px;
    }
}

.navbar-toggler {
    margin-right: 20px;
}

nav .navbar-brand {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-right: 0px;
}

@media (min-width: 992px) {
    nav .navbar-brand {
        margin-left: 75px;
    }
}

@media (max-width: 992px) {
    nav .navbar-brand {
        margin-left: 30px;
    }
}

#nav-logo {
    display: block;
}

@media (min-width: 450px) {
    #nav-logo {
        width: 150px;
    }
}

@media (max-width: 450px) {
    #nav-logo {
        width: 130px;
    }
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 500;
}

@media (min-width: 600px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 18px;
    }
}

.dropdown-item:focus, 
.dropdown-item:hover {
    transition: 0.15s background-color;
    -webkit-transition: 0.15s background-color;
    -moz-transition: 0.15s background-color;
    -ms-transition: 0.15s background-color;
    -o-transition: 0.15s background-color;
}

.dropdown-item.disabled, .dropdown-item:disabled {
    color: lightgray !important;
}

/* Custom accordion theming */
.accordion h3:focus {
    outline: none;
}

.ui-accordion {
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
}

.ui-accordion-header #text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
    font-weight: 500;
}

.ui-accordion .ui-accordion-header {
    padding-left: 25px !important;
    padding-right: 25px !important;
    padding-top: 10px !important;
    padding-bottom: 15px !important;
    text-align: left;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    background: initial !important;
    color: inherit !important;
    border: none !important;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
    border: none !important;
    color: inherit !important;
    background: transparent !important;
}

.ui-widget-content {
    color: inherit !important;
    border: none !important;
    background: transparent !important;
}

.accordion h3 > .ui-icon {
    position: absolute;
    left: 15px;
    top: calc(50% + (12.5px / 4));
    top: -webkit-calc(50% + (12.5px / 4));
    top: -moz-calc(50% + (12.5px / 4));
    top: expression(50% + (12.5px / 4));
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
}

.ui-accordion .ui-accordion-content {
    padding-top: 1em !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-bottom: 1em !important;
}

/* Bootstrap checkbox styling */
.form-group.has-error .custom-control-input:not(:checked) ~ .custom-control-label::before  {
    border-color: rgb(255, 63, 63) !important;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: none !important;
}

.custom-checkbox .custom-control-input ~ .custom-control-label::after {
    transition: 0.25s background-image;
    -webkit-transition: 0.25s background-image;
    -moz-transition: 0.25s background-image;
    -ms-transition: 0.25s background-image;
    -o-transition: 0.25s background-image;
}

.custom-control-label {
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

@media (min-width: 600px) {
    .custom-control {
        font-size: 16px;
        min-height: 2.5rem;
        padding-left: 2.5rem;
    }

    .custom-control-label {
        line-height: 2.6rem;
    }

    .custom-control-label::before {
        left: -2.5rem;
        width: 2rem;
        height: 2rem;
    }
    
    .custom-control-label::after {
        left: -2.5rem;
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 600px) {
    .custom-control {
        font-size: 14px;
        min-height: 2.5rem;
        padding-left: 2.5rem;
    }

    .custom-control-label {
        line-height: 2.3rem;
    }

    .custom-control-label::before {
        left: -2.25rem;
        width: 1.75rem;
        height: 1.75rem;
    }

    .custom-control-label::after {
        left: -2.25rem;
        width: 1.75rem;
        height: 1.75rem;
    }
}

.custom-checkbox .custom-control-label::before {
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

/* Selectpicker styling */
.bootstrap-select .btn.dropdown-toggle {
    background: transparent !important;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
}

.bootstrap-select .btn.dropdown-toggle:focus {
    outline: none !important;
}

/* BACK TO TOP BTN */
#back-to-top-btn {
    position: fixed;
    z-index: 20001;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: 0.375s bottom, 0.375s opacity, 0.375s visibility, 0.375s box-shadow;
    -webkit-transition: 0.375s bottom, 0.375s opacity, 0.375s visibility, 0.375s box-shadow, 0.375s -webkit-box-shadow;
    -moz-transition: 0.375s bottom, 0.375s opacity, 0.375s visibility, 0.375s box-shadow, 0.375s -moz-box-shadow;
    -ms-transition: 0.375s bottom, 0.375s opacity, 0.375s visibility, 0.375s box-shadow;
    -o-transition: 0.375s bottom, 0.375s opacity, 0.375s visibility, 0.375s box-shadow;
}

@media (min-width: 600px) {
    #back-to-top-btn {
        right: 40px;
        bottom: 40px;
        height: 60px;
        width: 60px;
        border-radius: 30px;
        -webkit-border-radius: 30px;
        -moz-border-radius: 30px;
    }
    
    #back-to-top-btn:hover {
        bottom: 45px;
    }

    #back-to-top-btn > #inner {
        /* 51.43px = (100 - (7.14% top/left * 2)) / 100 * 60px (width/height of btn) */
        width: 51.43px;
        height: 51.43px;
        font-size: 22px;
        line-height: 51.43px;
        border-radius: 30px;
        -webkit-border-radius: 30px;
        -moz-border-radius: 30px;
    }
}

@media (max-width: 600px) {
    #back-to-top-btn {
        right: 25px;
        bottom: 25px;
        height: 50px;
        width: 50px;
        border-radius: 25px;
        -webkit-border-radius: 25px;
        -moz-border-radius: 25px;
    }

    #back-to-top-btn:hover {
        bottom: 30px;
    }

    #back-to-top-btn > #inner {
        /* 42.86px = (100 - (7.14% top/left * 2)) / 100 * 50px (width/height of btn) */
        width: 42.86px;
        height: 42.86px;
        font-size: 20px;
        line-height: 42.86px;
        border-radius: 25px;
        -webkit-border-radius: 25px;
        -moz-border-radius: 25px;
    }
}

#back-to-top-btn:not(.visible) {
    visibility: hidden;
    opacity: 0.0;
    filter: alpha(opacity=0);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

#back-to-top-btn.visible {
    visibility: visible;
    opacity: 1.0;
    filter: alpha(opacity=100);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}

#back-to-top-btn:hover {
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.25);
}

#back-to-top-btn:focus {
    outline: none;
}

#back-to-top-btn > canvas {
    position: relative;
    z-index: 1;
}

#back-to-top-btn > #inner {
    position: absolute;
    top: 7.14%;
    left: 7.14%;
    text-align: center;
}

#loading-cover {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    display: block;
    z-index: 20002;
    background: rgba(0, 0, 0, 0.6);
    font-size: 1rem;

    /* Fade loading cover in/out */
    opacity: 1.0;

    /* Loading spinner should be invisible on IE8 and prior */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* IE8 */
    filter: alpha(opacity=0); /* IE 5-7 */

    transition: 0.5s visibility, 0.5s opacity;
    -webkit-transition: 0.5s visibility, 0.5s opacity;
    -moz-transition: 0.5s visibility, 0.5s opacity;
    -ms-transition: 0.5s visibility, 0.5s opacity;
    -o-transition: 0.5s visibility, 0.5s opacity;
}

#loading-cover-spinner {
    position: relative;
    width: 50%;
    margin-left: 25%;
    margin-right: 25%;
    top: 50%;
    text-align: center;
    z-index: 20003;
    color: white;
    font-size: 500%;
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
}

#loading-cover-spinner svg {
    animation: spin-the-spinner 1s infinite;
    -webkit-animation: spin-the-spinner 1s infinite;
    -moz-animation: spin-the-spinner 1s infinite;
    -o-animation: spin-the-spinner 1s infinite;
}

@keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

@-webkit-keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

@-moz-keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

@-o-keyframes spin-the-spinner {
    from {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);       
    }
}

#cookie-prompt {
    position: fixed;
    left: 0; 
    right: 0;
    top: 0;
    z-index: 100000;
    background: white;
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (min-width: 500px) {
    #cookie-prompt {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 500px) {
    #cookie-prompt {
        padding-left: 30px;
        padding-right: 30px;
    }
}

#cookie-prompt > p {
    color: #999999 !important;
}

#cookie-prompt > #prompt-btns > .btn:last-of-type {
    margin-left: 5px;
}

.form-control:not(.bootstrap-select),
.bootstrap-select .btn.dropdown-toggle {
    font-weight: bold;
    height: initial !important;
    line-height: 1em !important;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 400;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -moz-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -ms-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (min-width: 600px) {
    .form-control:not(.bootstrap-select),
    .bootstrap-select .btn.dropdown-toggle {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .form-control:not(.bootstrap-select),
    .bootstrap-select .btn.dropdown-toggle {
        font-size: 14px;
    }
}

.swal-content .form-control:not(.bootstrap-select),
.swal-content .bootstrap-select .btn.dropdown-toggle {
    padding-top: 17px !important;
    padding-bottom: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (min-width: 600px) {
    .swal-content .form-control:not(.bootstrap-select),
    .swal-content .bootstrap-select .btn.dropdown-toggle {
        font-size: 16px !important;
    }
}

@media (max-width: 600px) {
    .swal-content .form-control:not(.bootstrap-select),
    .swal-content .bootstrap-select .btn.dropdown-toggle {
        font-size: 14px !important;
    }
}

.form-control.bootstrap-select {
    height: auto !important;
}

.form-group.has-error .form-control,
.form-group.has-error .form-control:focus,
.form-group.has-error .bootstrap-select .dropdown-toggle,
.form-group.has-error .bootstrap-select .dropdown-toggle[aria-expanded="true"] {
    border-color: rgb(255, 63, 63) !important;
}

.form-group.has-error label {
    color: rgb(255, 63, 63) !important;
}

.form-control:focus {
    box-shadow: none !important;
}

.btn-light:not(:disabled):not(.disabled).active:focus, 
.btn-light:not(:disabled):not(.disabled):active:focus, 
.show > .btn-light.dropdown-toggle:focus,
.btn-light.focus,
.btn-light:focus {
    box-shadow: none !important;
}

@media (min-width: 600px) {
    .bootstrap-select .dropdown-menu li a.dropdown-item {
        font-size: 18px !important;
    }
}

@media (max-width: 600px) {
    .bootstrap-select .dropdown-menu li a.dropdown-item {
        font-size: 14px !important;
    }
}

/* Extra Bootstrap units */
@media (min-width: 1920px) {
    .col-2k-1 {
        flex: 0 0 8.333333% !important;
        max-width: 8.333333% !important; 
    }

    .col-2k-2 {
        flex: 0 0 16.666666% !important;
        max-width: 16.666666% !important; 
    }

    .col-2k-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important; 
    }
    
    .col-2k-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;    
    }

    .col-2k-5 {
        flex: 0 0 41.666666% !important;
        max-width: 41.666666% !important;    
    }

    .col-2k-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .col-2k-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
    }

    .col-2k-8 {
        flex: 0 0 66.666666% !important;
        max-width: 66.666666% !important;
    }

    .col-2k-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
    }

    .col-2k-10 {
        flex: 0 0 88.333333% !important;
        max-width: 88.333333% !important;
    }

    .col-2k-11 {
        flex: 0 0 90.909090% !important;
        max-width: 90.909090% !important;
    }

    .col-2k-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1700px) {
    .col-xxl-1 {
        flex: 0 0 8.333333% !important;
        max-width: 8.333333% !important; 
    }

    .col-xxl-2 {
        flex: 0 0 16.666666% !important;
        max-width: 16.666666% !important; 
    }

    .col-xxl-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important; 
    }
    
    .col-xxl-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;    
    }

    .col-xxl-5 {
        flex: 0 0 41.666666% !important;
        max-width: 41.666666% !important;    
    }

    .col-xxl-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .col-xxl-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
    }

    .col-xxl-8 {
        flex: 0 0 66.666666% !important;
        max-width: 66.666666% !important;
    }

    .col-xxl-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
    }

    .col-xxl-10 {
        flex: 0 0 88.333333% !important;
        max-width: 88.333333% !important;
    }

    .col-xxl-11 {
        flex: 0 0 90.909090% !important;
        max-width: 90.909090% !important;
    }

    .col-xxl-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}