/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* end css reset */

@font-face {
    font-family: 'aquire';
    src: url("./aquire-font/Aquire-BW0ox.otf"); 
    font-style: normal;
}

:root {
    --white:#ffffff;
    --blue1: #9da5bd;
    --blue2: #3a4c7a;
    --blue3: #0a205a;
    --blue4: #040c24;
}

html {
    height: 100vh;
    font-family: aquire;
}

input {
    font-family: aquire;
}

body {
    background-image: url('images/deep-space-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;

    color: var(--white)
}

.main-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container {
    display: flex;
    width: 40rem;
    height: 25rem;
    flex-direction: row;
    justify-content: flex-start;
    background-color: var(--blue3);
    padding: 1rem;
    border-radius: 0.5rem;

    box-shadow: 1rem 1rem 0.5rem var(--blue4);
    position: relative;
}

.blocking-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--blue4);
    z-index: 2;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.verify-answer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 1px solid var(--blue4);
    border-radius: 1rem;
    background-color: var(--blue2);

    flex-grow: 1;
}

.verify-answer:after {
    content: url('images/arrow-double-right.svg');
    height: 3rem;
    width: 3rem;
    display: block;
    filter: invert(89%) sepia(0%) saturate(1534%) hue-rotate(13deg) brightness(115%) contrast(105%);
}

.left-column {
    width: 30%;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#questions {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#questions > div {
    margin: 0.5rem 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--blue2);
    border: 1px solid var(--blue4);
    position: relative;
}

#questions > div.active:before {
    content: '';
    height: 2rem;
    width: 2rem;
    display: block;
    background-image: url('images/SimpleSpaceship2.svg');
    background-size: 2rem;
    background-repeat: no-repeat;
    position: absolute;
    left: -3rem;
    top: 0rem;
    filter: invert(89%) sepia(0%) saturate(1534%) hue-rotate(13deg) brightness(115%) contrast(105%);
}

.input {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input > .title {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.input-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.text-input {
    display: flex;
    flex-direction: row;
    padding: 0.5rem 0;
    height: 5rem;
}

.text-input input {
    height: 100%;
    width: calc(80% - 2rem);

    background-color: var(--blue1);
    color: var(--white);
    font-size: 4rem;
    border-radius: 0.25rem;

    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
    border-bottom-style: hidden;

    padding: 0 1rem;
}

.input-form > .text-input {
    width: 100%;
}

.input-form #verify-answer {
    flex-grow: 1;
    height: 90%;
    margin: auto 0.5rem;
}

h1 {
    font-size: 3rem;
}

.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
}

.hide {
    display: none !important;
}

.result {
    width: 100%;
    flex-grow: 1;
}

.result > div {
    height: 100%;
    width: 100%;
}

.result-text {
    font-size: 2.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.no-question-selected {
    position: relative;
}

.no-question-selected:before {
    content: 'Selecteer een vraag uit de lijst...';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    background-color: var(--blue3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    text-align: center;
}

.amongus-status {
    height: 6rem;
    background-image: url('images/blue-amongus.webp');
    background-size: 5rem;
    background-repeat: no-repeat;
    margin-top: auto;
}

.amongus-status.red {
    background-image: url('images/red-amongus.webp');
}

.amongus-status.green {
    background-image: url('images/green-amongus.webp');
}

.center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .wave {
    width: 5px;
    height: 100%;
    background: linear-gradient(45deg, cyan, #fff);
    margin: 10px;
    animation: wave 1s linear infinite;
    border-radius: 20px;
  }
  .wave:nth-child(2) {
    animation-delay: 0.1s;
  }
  .wave:nth-child(3) {
    animation-delay: 0.2s;
  }
  .wave:nth-child(4) {
    animation-delay: 0.3s;
  }
  .wave:nth-child(5) {
    animation-delay: 0.4s;
  }
  .wave:nth-child(6) {
    animation-delay: 0.5s;
  }
  .wave:nth-child(7) {
    animation-delay: 0.6s;
  }
  .wave:nth-child(8) {
    animation-delay: 0.7s;
  }
  .wave:nth-child(9) {
    animation-delay: 0.8s;
  }
  .wave:nth-child(10) {
    animation-delay: 0.9s;
  }
  
  @keyframes wave {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }