.navbar {
    --bs-navbar-padding-x: 1rem;
}

.navbar-collapse {
    text-align: center;
}

.navbar-nav {
    display: inline-block;
    float: none;
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

li {
    margin-bottom: 0.5rem;

    /* Is this wise? Goes against the usual design guidelines. */
    margin-left: -1rem;
}

div[dir="rtl"] li {
    margin-right: -1.5rem;
}

.vertical-separator {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

div[dir="rtl"] .vertical-separator {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
}

/* Bootstrap RTL fixes */
[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-right: -1.5em;
}

div[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

/* TODO: Verify if disabling this breaks anything !!!*/
[dir="rtl"] .offset-md-1 {
    margin-right: 8.33333333%;
    margin-left: 0;
}

[dir="rtl"] .offset-9 {
    margin-right: 75%;
    margin-left: 0;
}

[dir="rtl"] .float-end {
    float: left !important;
}

[dir="rtl"] .pe-0 {
    padding-left: 0 !important;
}
/*.vertical-separator:after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    z-index: -1;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    left: 100%;*/
/*    !*border-left: 1px solid #d7d7d7;*!*/
/*    border-left: 1px solid rgba(0, 0, 0, 0.1);*/
/*    transform: translate(50%);*/
/*}*/

body {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*text-align: center;*/
    color: #2c3e50;
}

td, th {
    border: 1px solid #dee2e6 !important;
    /*border: 1px solid rgba(0,0,0,0.1);*/
}

footer {
    font-size: 0.65rem;
}

.scrollbox {
    overflow: auto;
    /*width: 200px;*/
    /*max-height: 200px;*/
    /*margin: 20px;*/
    padding-top: 25px;
    background: linear-gradient(to right, white, white, transparent) top left,
    linear-gradient(to left, white, white, transparent) top right,
    top right url("../img/TriangleIconRedRight.4a912fd5cbc6.png"),
    top left url("../img/TriangleIconRedLeft.933eae3e87c7.png");
    background-repeat: no-repeat;
    background-color: white;
    background-size: 60px, 60px, 20px 20px, 20px 20px;

    /* Opera doesn't support this in the shorthand */
    background-attachment: local, local, scroll, scroll;
}

.markdown img {
    max-width: 100%;
}

/*
 *
 *   Template specific CSS
 *
*/
/* Graphic choices question group */

.mpcq-radio-label-vertical-wrapper {
    padding-bottom: 13px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.mpcq-radio-label-vertical-wrapper:before {
    content: ' ';
    display: block;
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0;
}

.mpcq-radio-label-vertical-wrapper label:not(.mpcq-radio-label-vertical) {
    display: block;
    width: 100%;
}

.mpcq-radio-label-vertical {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: 0 5px;
    text-align: center;
    /*margin-top: 50px;*/
}

.mpcq-radio-label-vertical input {
    content: ' ';
    position: absolute;
    top: 110px;
    left: 50%;
    margin-left: -6px;
    display: block;
    cursor: pointer;
    /*margin-top: 250px;*/
    border-color: #2c3e50;
}

/* Likert scale questions */
.likert-radio-label-vertical-wrapper {
    padding-bottom: 13px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    flex: 1 1 0;
}

.likert-radio-label-vertical-wrapper:before {
    content: ' ';
    display: block;
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0;
}

.likert-radio-label-vertical-wrapper label:not(.likert-radio-label-vertical) {
    display: block;
    width: 100%;
}

.likert-radio-label-vertical {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: 0 20px;
    text-align: center;
}

.likert-radio-label-vertical input {
    position: relative;
    top: 1rem;
    left: 50%;
    margin-left: -6px;
    display: block;
    cursor: pointer;
    border-color: #2c3e50;
}

[dir="rtl"] .likert-radio-label-vertical  input {
    right: 50%;
    margin-right: -6px;
}

/* TODO: apply this pattern to the other radio inputs (maybe use these same settings if they work */
input[type="radio"].rich-choice-horizontal:before {
    content: ' ';
    display: block;
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0;
}

input[type="radio"].rich-choice-horizontal {
    position: relative;
    top: 1rem;
    margin-left: 15px;
    margin-bottom: 2rem;
    display: block;
    cursor: pointer;
}

.form-check input[type="radio"] {
    border-color: #2c3e50;
}
/*.likert-radio-label-vertical::after {*/
/*    position: relative;*/
/*    top: 1rem;*/
/*    left: 50%;*/
/*    margin-left: -6px;*/
/*    display: block;*/
/*    cursor: pointer;*/
/*    width: 1rem;*/
/*    height: 1rem;*/
/*    content: "";*/
/*    -webkit-user-select: none;*/
/*    -moz-user-select: none;*/
/*    -ms-user-select: none;*/
/*    user-select: none;*/
/*    background-color: #dee2e6;*/
/*    border-radius: 50%;*/
/*}*/

/*.custom-control-input:checked ~ .custom-control-label::before {*/
/*	color: #fff;*/
/*	background-color: #2C3E50;*/
/*}*/

/*.custom-control-label::after {*/
/*	position: absolute;*/
/*	top: 0.25rem;*/
/*	left: -1.5rem;*/
/*	display: block;*/
/*	width: 1rem;*/
/*	height: 1rem;*/
/*	content: "";*/
/*	background-repeat: no-repeat;*/
/*	background-position: center center;*/
/*	background-size: 50% 50%;*/
/*}*/

/*.custom-radio .custom-control-input:checked ~ .custom-control-label::after {*/
/*	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");*/
/*}*/

.tooltip-inner {
    max-width: 40em;
    padding:3px 8px;
    color:#314A5B;
    text-align: left;
    /*background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #A2BBCC), to(#FFFFFF));*/
    /*background: -moz-linear-gradient(top, #FFFFFF, #A2BBCC 1px, #FFFFFF 25px);*/
    background-color: #ecf0f1;
    -webkit-border-radius:5px;
    -moz-border-radius:5px;
    border-radius:0px;
    border: 1px solid #dee2e6;
    opacity: 1;
}

.tooltip-inner h4 {
    /*white-space: nowrap;*/
    text-align: center;
}

.tooltip.show {
    opacity: 1;
}

.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: #dee2e6;
}

/* Modified base template style to be WCAG compliant (contrast to be above 4.5) */
a {
    color: #10856e;
}

.btn-outline-dark {
    color: #697677;
    border-color: #697677;
}

.btn-outline-dark:hover {
    color: #fff;
    background-color: #697677;
    border-color: #697677;
}
