html,
body {
    height: 100%;
}

body {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#358c4d+0,215731+100 */
    background: rgb(53,140,77); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(53,140,77,1) 0%, rgba(33,87,49,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  rgba(53,140,77,1) 0%,rgba(33,87,49,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  rgba(53,140,77,1) 0%,rgba(33,87,49,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#358c4d', endColorstr='#215731',GradientType=0 ); /* IE6-9 */
    color: #fff;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Arsenal', Arial, Helvetica, sans-serif;
    min-width: 320px;
    overflow-x: hidden;
}

::-moz-selection { /* Code for Firefox */
    background: #ffc845;
    color: #fff;
}

::selection {
    background: #ffc845;
    color: #fff;
}

a,
button {
    transition: color .15s ease;
}

a,
a:hover,
a:focus,
a:active {
    color: #ffc845;
}

.modal-body a,
.modal-body a:hover,
.modal-body a:focus,
.modal-body a:active {
    color: #0aa3d7;
}

img {
    max-width: 100%;
    height: auto;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap.test-open {
  margin: 0 auto;
  padding: 0;
}

.wrap.test-open .navbar-toggle {
  display: none;
}

.wrap.test-open .navbar-brand{
  pointer-events: none !important;
}

.wrap-login {
    display: flex;
    align-items: center;
}

@media (max-width: 353px) {
    .wrap {
        margin: 0 auto -71px;
    }
    .wrap.test-open {
      margin: 0 auto;
    }
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #215731;
    border-top: 1px solid #215731;
    padding-top: 20px;
    user-select: none;
}

@media (max-width: 353px) {
    .footer {
        height: 71px;
        padding-top: 10px;
    }
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-item:first-child {
    flex: 1 1 53%;
    padding-right: 5px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.has-error .help-block, 
.has-error .control-label, 
.has-error .radio, 
.has-error .checkbox, 
.has-error .radio-inline, 
.has-error .checkbox-inline, 
.has-error.radio label, 
.has-error.checkbox label, 
.has-error.radio-inline label, 
.has-error.checkbox-inline label {
  color: #102115;
}

.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox, 
.has-success .radio-inline, 
.has-success .checkbox-inline, 
.has-success.radio label, 
.has-success.checkbox label, 
.has-success.radio-inline label, 
.has-success.checkbox-inline label {
    color: #fff;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* Change navbar color scheme: https://work.smarchal.com/twbscolor/ */
.navbar-default {
  background-color: #215731;
  border-color: #215731;
  user-select: none;
}
.navbar-default .navbar-brand {
  color: #ffffff;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #ffc845;
}
.navbar-default .navbar-text {
  color: #ffffff;
}
.navbar-default .navbar-nav > li > a {
  color: #ffffff;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #ffc845;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #ffc845;
  background-color: #215731;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  color: #ffc845;
  background-color: #215731;
}
.navbar-default .navbar-toggle {
  border-color: #215731;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #215731;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #ffffff;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #ffffff;
}
.navbar-default .navbar-link {
  color: #ffffff;
}
.navbar-default .navbar-link:hover {
  color: #ffc845;
}

.navbar-default .btn-link {
  color: #fff;
}

.navbar-default .btn-link:hover, 
.navbar-default .btn-link:focus {
  color: #ffc845;
}

.navbar-brand {
    align-items: center;
    display: flex;
    padding: 0;
}

.navbar-brand:hover svg path {
    fill: currentColor;
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #ffffff;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #ffc845;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #ffc845;
    background-color: #215731;
  }
}

/* Forms */
.form-control {
    border: none;
    border-radius: 0;
}

/* Panels */
.panel .panel-body {
    color: #333;
}

/* Tables */
.table-borderless td, .table-borderless th {
    border: none !important;
}

/* Buttons */
.btn:focus {
  outline: none;
}

.btn-outline {
    background-color: transparent;
    color: inherit;
    transition: all .5s;
}

.btn-primary.btn-outline {
    color: #428bca;
}

.btn-success.btn-outline {
    color: #5cb85c;
}

.btn-info.btn-outline {
    color: #5bc0de;
}

.btn-warning.btn-outline {
    color: #f0ad4e;
}

.btn-danger.btn-outline {
    color: #d9534f;
}

.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
    color: #fff;
}

/* Breadcrumbs */
.breadcrumb {
  background-color: transparent;
  margin-bottom: 0;
  user-select: none;
}

.breadcrumb > .active {
  color: #fff;
}

/* Modals */
.modal {
  color: #333;
  text-align: center;
  padding: 0!important;
  user-select: none;
}

.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  user-select: text;
}

.modal-body {
    font-size: 16px;
}

.modal-backdrop.in {
    background-color: #163a20;
    filter: alpha(opacity=90);
    opacity: 0.9;
}

.modal-footer {
  user-select: none;
}


/* Test preview */
.test-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.test-preview__item {
    color: #333;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 10px;
}


.test-preview__item::before {
    content: "";
    position: absolute;
    background-color: #fff;
    box-shadow: 1px -1px 3px 3px rgb(33, 87, 49, .25);
    left: 10px;
    right: 10px;
    top: 0;
    bottom: 0;
    border-radius: 15px;
    z-index: -1;
}

.test-preview__bottom {
    margin: auto 0 10px;
}


/* Question */

.question {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  padding: 0 15px;
  user-select: none;
  height: calc(100vh - 90px); /* 50px - header height + paddings */
}

.question,
.next-arrow,
.test-open .navbar-brand>span,
.is-active-test .test-info-box,
.question__answer-desc {
  opacity: 0;
  pointer-events: none;
}

.is-active-test .navbar-brand>span,
.is-active-test .question,
.is-active-test .next-arrow,
.question__answer-desc.active {
  opacity: 1;
  pointer-events: auto;
}

.is-active-test.test-open .navbar-brand>span {
  pointer-events: none;
}

/* .time-line */
.time-line {
  background-color: #ffc845;
  height: 4px;
  left: 0;
  position: fixed;
  top: 50px;
  /*transition: width .5s linear;*/
}

.timer-sec {
  color: #ffd845;
  font-weight: bold;
  position: absolute;
}

.question__title {
  color: #ffd845;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 10px;
  margin-top: 20px;
  /*padding-right: 160px;*/
  text-align: center;
}

@media screen and (max-width: 991.98px) {
    .question__title {
        font-size: 22px;
        /*margin-top: 20px;*/
        padding-right: 0;
    }
}

.question__hint {
  font-size: 19px;
  font-style: italic;
  opacity: .9;
  margin-bottom: 40px;
}

@media screen and (max-width: 991px) {
    .question__hint {
        font-size: 17px;
        margin-bottom: 20px;
    }
}

.question__columns {
  display: flex;
  /* max-width: 960px; */
  /* margin: auto; */
  margin-top: auto;
  margin-bottom: auto;
  padding: 25px 0;
  box-sizing: border-box;
}

@media screen and (max-width: 991px) {
    .question__columns {
        flex-direction: column-reverse;
        margin-top: 15px;
    }
}

.question__explanation {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 470px;
  padding-right: 40px;
}

@media screen and (max-width: 991px) {
    .question__explanation {
        width: 100%;
        margin-bottom: 45px;
        padding-right: 12px;
        overflow: hidden;
    }
}

.question__bg {
  position: absolute;
  top: 0;
}

@media screen and (max-width: 991px) {
    .question__bg {
        /*left: 0;*/
    }
}

.question__answer-desc {
  background-color: #fff;
  box-sizing: border-box;
  color: #333;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 20px;
  line-height: 1.8;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 5px solid #fff;
  border-radius: 2px;
  transition: opacity .3s ease;
}

.question__answer-desc > .text-left {
    font-size: 15px;
    line-height: 1.6;
}

.question__answer-desc.success {
  border-color: #8bc34a;
}

.question__answer-desc.error {
  border-color: rgba(39,103,58,.5);
  color: #ff3400;
}

.question__answers-wrap {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*padding-left: 40px;*/
  padding-right: 40px;
  box-sizing: border-box;
}

@media screen and (max-width: 991px) {
    .question__answers-wrap {
        width: 100%;
        /*padding-left: 30px;*/
        padding-right: 12px;
        font-size: 13px;
    }
}

/* Answer */

.answer {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
}

/*.answer::before {
    content: "✗";
    left: -30px;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    transform: scale(0);
    user-select: none;
    pointer-events: none;
    font-size: 25px;
    font-family: sans-serif;
}

.answer.success::before,
.answer.error::before {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
}

.answer.error::before {
    color: #fff;
}

.answer.success::before {
    content: "✓";
    color: #8bc34a;
    left: -30px;
}*/



/* Hide the browser's default checkbox */
.answer input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.answer__checkmark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 25px;
  width: 25px;
  background-color: transparent;
  border: 1px solid #fff;
}

/* On mouse-over, add a grey background color */
.answer:hover input ~ .answer__checkmark {
  background-color: transparent;
}

/* When the checkbox is checked, add a blue background */
.answer input:checked ~ .answer__checkmark {
  background-color: transparent;
}

/* Create the checkmark/indicator (hidden when not checked) */
.answer__checkmark:after {
  content: "";
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

/* Show the checkmark when checked */
.answer input:checked ~ .answer__checkmark:after {
  opacity: 1;
  visibility: visible;
}

/* Style the checkmark/indicator */
.answer .answer__checkmark:after {
  left: 8px;
  top: 3px;
  width: 8px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.answer__text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 2px;
  transition: background-color .2s linear;
}

@media screen and (max-width: 991px) {
    .answer__text {
        font-size: 16px;
    }
}

/* Answer states */
.answer.success,
.answer.error {
    cursor: default;
}
.answer.success .answer__text {
    background-color: #8bc34a;
}
.answer.error input:checked ~ .answer__text {
    background-color: #ff3400;
}


/* Next arrow */

.next-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: -40px;
  text-indent: -99999px;
  height: 90px;
  width: 90px;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  transition: background-color .3s ease;
}

.next-arrow:hover {
  background-color: rgba(255,255,255, .35);
}

.next-arrow::before {
  content: "";
  position: absolute;
  left: 0;
}

.next-arrow::before {
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  height: 20px;
  width: 20px;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform .3s ease;
}

.next-arrow:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
}

/* Test info-box */
.test-info-box {
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  z-index: 1;
}

.test-info-box h1 {
  margin-bottom: 75px;
}
