/* ==========================================================================
   Custom styles
   ========================================================================== */
body,
html {
    height: 100%;
}

html {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    background: #e8e8e8 no-repeat center center;
    background-size: contain;
    background-attachment: fixed;
    font-family: 'Ubuntu', 'Roboto', sans-serif;
    font-size: 14px;
}

.navbar-title, h1, h2 {
    font-family: 'Ubuntu', 'Roboto', sans-serif;
    font-weight: bold;
}

.screen-text {
    background-image: url("../img/background-text.png");
}

.screen-video,
.screen-fullwidth {
    background-image: url("../img/background-quiz.png");
}

img {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.navbar {
    box-shadow: 0 1px 50px rgba(0, 0, 0, 0.3);
}

.link-hide, .link-hide:hover, .link-hide:active, .link-hide:focus {
    text-decoration: none;
    cursor: default;
}
.navbar-progress .link-hide {
    color: #fff;
}

.screen-text .navbar,
.screen-minimal .navbar {
    display: none;
}

.screen-end .video-container {
    padding-top: 10px;
}

@media (min-width: 768px) {
	.embed-container canvas {
		max-width: 750px;
		max-height: 422px;
	}
}
@media (min-width: 992px) {
	.embed-container canvas {
		max-width: 970px;
		max-height: 546px;
	}
}
@media (min-width: 1200px) {
    .container {
        width: 950px;
    }
	.embed-container canvas {
		max-width: 950px;
		max-height: 534px;
	}
    .screen-video .shadow,
    .screen-animate .shadow {
        margin-bottom: 0;
    }
}
.screen-video .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    max-height: 80vh;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.screen-video .shadow,
.screen-animate .shadow {
    width: 100%;
    max-height: 50px;
}
/* Avoid Animate flickering on loading */
.screen-animate {
    overflow: hidden;
}

.red {
    margin-top: 20px;
    padding: 40px 0;
    background: #d2002d;
}

.green {
    color: #33dd33;
}

.jumbotron {
    background-color: #fff;
}

h2 {
    font-size: 2em;
}

h1,
.h1,
h2,
.h2,
h3,
.h3 {
    margin-top: 8px;
}
h5, .h5 {
    font-size: 21px;
}

.title h1,
.title h4 {
    text-transform: uppercase;
}

.title h1 {
    font-size: 3em;
}

.title h1 small {
    color: #d2002d;
}

.title h4 {
    font-size: 1.2em;
    color: #888;
    letter-spacing: .1em;
    margin-bottom: 2em;
}

.container {
    line-height: 1.6em;
}

.margin-medium {
    margin-top: 14px;
    margin-bottom: 14px;
}

.container>.vertical-center {
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.vertical-center .row {
    width: 100%;
}

.no-padding {
    padding-left: 0;
    padding-right: 0;
}

.padding-xl {
    padding: 20px;
}

.spacer-xl {
    padding-top: 92px;
}

.spacer {
    border: 0;
    margin-bottom: 1em;
}


.screen-video .spacer-xl,
.screen-animate .spacer-xl {
    padding-top: 58px;
}

.screen-quiz .spacer-xl {
    padding-top: 100px;
}

.screen-video .controls-btn,
.screen-animate .controls-btn {
    margin-top: -16px;
}


.btn-menu .btn-block {
    font-size: 1.5em;
    font-weight: bold;
    transition: all .2s;
    margin: .8em auto;
    padding: .8em;
}
.btn-menu .btn-block small {
    display: block;
    color: rgba(255,255,255,.8);
    font-size: .7em;
    font-weight: normal;
    text-transform: none;
    white-space: normal;
}
.btn-menu .btn-block.btn-primary:hover,
.btn-menu .btn-block.btn-primary:active {
    background-color: #d10800 !important;
    box-shadow: none;
}

@media (max-width: 768px) {
    .btn-menu .btn-block {
        font-size: 1.2em;
        padding: .8em .1em;
    }
}

.navbar {
    height: 54px;
    min-height: 54px;
}

.navbar-title {
    font-size: 15px;
    line-height: 18px;
    height: 54px;
    max-height: 54px;
    padding-left: 12px;
    overflow-y: auto;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
}

.navbar-progress {
    color: #fff;
    font-size: 1.3em;
    display: inline-block;
    float: left;
    height: 54px;
    padding: 15.5px 12px;
    text-align: center;
    max-width: 90px;
}

.navbar-progress-current {
    font-size: 2em;
}

.navbar-icon a {
    font-size: .9em;
    line-height: 1.6em;
    padding-top: 6px;
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 5px
}

.legal-notice {
    text-align: justify;
}

/* Customer colors */
.blue {
    color: #2196f3;
}

.panel-danger>.panel-heading {
    background-color: rgb(190, 15, 52);
}

input.uppercase {
    text-transform: uppercase;
}

::-webkit-input-placeholder {
    /* WebKit browsers */
    text-transform: none;
}

:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    text-transform: none;
}

::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    text-transform: none;
}

:-ms-input-placeholder {
    /* Internet Explorer 10+ */
    text-transform: none;
}

/* Modal opacity bug */
.modal-backdrop {
    z-index: 0;
}

/* ==========================================================================
   Animate
   ========================================================================== */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #fff;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-label-group input {
    font-size: 17px;
}
.panel-heading h1 {
    text-transform: uppercase;
    font-size: 1.3em;
    text-align: center;
}
.panel-heading {
    background-color: #f5f5f5;
}
.no-decoration {
    text-decoration: none !important;
}

/* ==========================================================================
   Questions
   ========================================================================== */
.questions .question {
    font-size: 16px;
    font-family: "Calibri", "Roboto Condensed", "Roboto", sans-serif;
    font-weight: 300;
    background: #333;
    color: #fff;
    padding: 14px 20px 14px 24px;
    box-shadow: inset 10px 0px 0px 0px;
    border-top: 5px solid #333;
    border-bottom: 5px solid #333;
}

.questions .question a {
    text-decoration: underline;
    font-weight: bold;
}

.questions .number {
    display: inline-block;
    font-weight: bold;
    font-size: 1.1em;
}

.questions .triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 18px 0 18px;
    border-color: #333 transparent transparent transparent;
    margin: 0 auto 8px;
}

.questions .btn {
    font-family: "Calibri", "Roboto Condensed", "Roboto", sans-serif;
    font-size: 14px;
    height: 60px;
    text-transform: none;
    padding: 0;
    color: #444;
}

.questions .text {
    display: table;
    height: 60px;
    white-space: normal;
    text-align: left;
    line-height: 1.2em;
    padding-left: 7px;
}

.questions small {
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 5px;
}
.questions small::before {
    content: "\f4a5";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    color: rgb(254,20,11);
    margin-right: 5px;
    animation: shadow-pulse 1s infinite;
    border-radius: 50%;
}
@keyframes shadow-pulse
{
     0% {
          box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.2);
     }
     100% {
          box-shadow: 0 0 0 35px rgba(255, 255, 255, 0);
     }
}

.questions .vertical-center {
    display: table-cell;
    vertical-align: middle;
}

.questions .letter {
    font-size: 5em;
    padding: 8px 0 30px 6px;
    overflow: hidden;
    color: rgba(255, 255, 255, .4);
    height: 60px;
    width: 40px;
    line-height: 64px;
    font-weight: bold;
    float: left;
    border-radius: 3px 0 0 3px;
}

.questions .btn-primary {
    box-shadow: none;
    color: #fff;
}

.free-answer input.form-control.input-lg {
    background: #fff;
    font-size: 21px;
    border-radius: 3px;
    padding-right: 56px;
}

.feedback img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.feedback {
    margin-top: 3em;
}
.feedback .panel-danger>.panel-heading {
    background-color: rgb(254,20,11);
}

.white {
    color: #fff;
}

/*----------------------------------------------
    Results
------------------------------------------------*/
.result {
    display: flex;
    width: 100%;
    margin-bottom: 1vh;
    overflow: hidden;
    border-radius: .5em;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}
.result-left {
    flex: 0 0 25%;
    /* background-color: rgb(254,20,11); */
    color: #fff;
    padding: 0.2em 1em;
    font-size: 1.65em;
}
.result-quiz {
    flex: 1;
    padding: .5em 1em;
}
.result-right {
    flex: 1;
    padding: .5em 2em;
    text-align: right;
}
.result.success {
    background-color: rgb(97, 203, 97);
}
.result.failed {
    background-color: rgb(254,20,11);
}


/* ==========================================================================
   Default quiz theme
   ========================================================================== */
.navbar-progress {
    background: rgb(33, 150, 243);
    background: -moz-linear-gradient(top, rgb(33, 150, 243) 0%, rgb(25, 124, 203) 100%);
    background: -webkit-linear-gradient(top, rgb(33, 150, 243) 0%, rgb(25, 124, 203) 100%);
    background: linear-gradient(to bottom, rgb(33, 150, 243) 0%, rgb(25, 124, 203) 100%);
}

.questions .letter {
    background: rgb(33, 150, 243) !important;
}

a, a:hover,
.btn-default,
.navbar-default .btn-link,
.questions .question,
.free-answer .fa {
    color: rgb(33, 150, 243);
}

.btn-prec {
    height: 42px;
}

/* ==========================================================================
   Helpers
   ========================================================================== */
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}

.spaced-list li {
    margin-bottom: 1rem;
}

.flash {
  animation: flashanimation 1.5s ease-out 8s infinite;
}
@keyframes flashanimation {
    0% { opacity: 1; }
    50% { opacity: .3; }
    100% { opacity: 1; }
}
