
@font-face {
  font-family: "OpenSans";
  src: url(../assets/OpenSans.ttf) format("truetype");
}
  .doubleRightGuil {
      color: #fccf50;
  }
  .mathfield {
    width: 25%;
    text-align: center;
    background-color: white;
    color: black;
    padding: 0 10px 0 10px;
    font-size: 35px;
    min-width: 300px;
    border: 1px solid;
  }
  .question-header {
    background-color: #747474;
    font-size: 30px;
    font-variant: small-caps;
    color: #fff;
    text-align: center;
    width: 100%;
    height: 10%;
    padding: 8px 0;
    margin-bottom: 5%;
  }
  .question-nav {
    text-align: center;
    color: #444;
    font-size: 35px;
    display: block;
    padding: 15px 0;
    padding-top: 0;
    width: 50%;
  }
  .question-nav p {
    font-size: 18px;
    padding-left: 15px;
    margin-right: 15px;
  }
  .question-nav #level-selector {
    float: right;
    font-size: 18px;
    margin: 18px 0;
    margin-right: 15px;
    color: #444;
    border: none;
  }
  .question {
    text-align: center;
    color: #444;
    font-size: 23px;
    display: block;
    padding: 50px 0;
    padding-top: 0;
    margin: 40px auto;
    border: solid thin;
    border-color: #444;
    background-color: rgb(255 255 255 / 80%);
    width: 75%;
}
  .question p {
    margin: 10px 0 0 0 !important;
  }
  img.image {
      max-width: 500px;
  }

  .answer-input[type=text] {
    box-sizing: border-box;
    width: 25%;
    text-align: center;
    background-color: white;
    color: black;
    padding: 0 10px 0 10px;
    font-size: 50px;
    min-width: 300px;
    border: 1px solid;
  }
  .answer-input[type=text]:focus {
    background-color: lightblue;
  }
  .answer-input[type=text]:disabled {
    opacity: 0.5;
  }
  .button {
    display: inline-block;
    background-color: #fff;
    border: solid thin;
    border-color: #444;
    color: #444;
    text-align: center;
    font-size: 20px;
    padding: 14px 20px;
    min-width: 420px;
    transition: all 0.5s;
    cursor: pointer;
    margin-top: 20px;
  }

  .button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
  }

  .button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
  }

  .button:hover span {
    padding-right: 25px;
  }

  .button:hover span:after {
    opacity: 1;
    right: 0;
  }

.topHalf {
    float: left;
    width: 49%;
}
  .bottomHalf {
    float: right;
    width: 49%;
}

.topic {
  padding-bottom: 25px;
}

.topic div {
    font-weight: 700;
}
.topicTitle {
    background-color: rgb(255 203 113);
    text-transform: uppercase;
    color: #555;
    font-size: 15px;
    padding: 5px;
    margin-bottom: 15px;
}

.topicTitle a {
    margin: 0 0 10px;
    padding: 8px 10px 8px 15px;
    text-decoration: none;
    position: relative;
    display: block;
    color: #555;
    font-size: 15px;
}
.subtopic a {
    margin: 0 0 10px;
    padding: 8px 10px 8px 15px;
    text-decoration: none;
    position: relative;
    display: block;
    color: #555;
    font-size: 15px;
}
.subtopic a.subtopic-disabled {
  color: indianred;
  pointer-events: none;
  cursor: default;
}
.subtopic {
    background-color: rgb(255 255 255 / 80%) !important;
}
.subtopic a:hover {
    color: #fccf50;
}
.categoryTitle {
    background-color: #d7f5e9;
    width: 100%;
    margin: 0 0 10px;
    color: #fff;
    padding: 10px 10px 10px 15px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 17px;
}

.links {
    width: 70%;
    margin: 0 auto;
}

* {
  box-sizing: border-box;
}

/* Style the top navigation bar */
.topnav {
  overflow: hidden;
  background-color: rgb(255 255 255 / 80%);
  height: 180px;
}

/* Style the topnav links */
.topnav a {
  font-weight: bold;
  font-variant: small-caps;
  float: left;
  display: block;
  color: #000;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
}

/* Change color on hover */
.topnav a:hover {
  color: black;
  text-shadow: 0px 0px 0px black;
}
.linksContainer {
  display: block;
}
.logo {
    margin-right: 3%;
    margin-left: 15%;
}

.logo:hover {
  color: #000 !important;
}
svg {
  max-height: 100%;

  &:not(:root) {
    overflow: hidden;
  }
}
.icon {
  height: 60px;
  width: 250px;
}
h3 {
  color: #ffffff;
}
#info {
  min-height: calc(100vh - 825px);
  margin-top: 3%;
	display: none;
}
a.disabled {
  pointer-events: none;
  cursor: default;
  color: #666666!important;
  font-weight: 100!important;
}
.wrapper{
  /* display: inline-table; */
  display: none;
  height: 55px;
  width: 140px;
}
.wrapper .option{
  background: #dadada;
  height: 100%;
  width: 100%;
  display: table-row-group;
  align-items: center;
  justify-content: space-evenly;
  cursor: pointer;
  padding: 0 10px;
  transition: all 0.3s ease;
}
.wrapper .option .dot{
  height: 20px;
  width: 20px;
  background: #d9d9d9;
  border-radius: 50%;
  position: relative;
}
.wrapper .option .dot::before{
  position: absolute;
  content: "";
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background: #19b6c7;
  border-radius: 50%;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.3s ease;
}
#input-error-msg {
  text-align: right;
  margin: auto;
  width: 300px;
  font-size: 20px;
  color: #f58186;
}
input[type="radio"]{
  display: none;
}
#option-1:checked:checked ~ .option-1,
#option-2:checked:checked ~ .option-2{
  background: #19b6c7;
}
#option-1:checked:checked ~ .option-1 .dot,
#option-2:checked:checked ~ .option-2 .dot{
  background: #fff;
}
#option-1:checked:checked ~ .option-1 .dot::before,
#option-2:checked:checked ~ .option-2 .dot::before{
  opacity: 1;
  transform: scale(1);
}
.wrapper .option span{
  font-size: 20px;
  color: #555;
}
#option-1:checked:checked ~ .option-1 span,
#option-2:checked:checked ~ .option-2 span{
  color: #fff;
}
.main_menu {
  width: 100%;
  display: inline-flex;
}
.main_menu-2 {
  width: 100%;
  display: inline-flex;
}
.main_menu_blocks {
  width: 25%;
  min-height: 200px;
  text-align: left;
}

#first.main_menu_blocks {
  background-color: #5BE5E8;
  color: #000;
}
#second.main_menu_blocks {
  background-color: #56a8ba;
  color: #000;
}
#third.main_menu_blocks {
  background-color: #4dbdcc;
  color: #000;
}
#fourth.main_menu_blocks {
  background-color: #B3F8FB;
  color: #000;
}
.main_menu_blocks .main_menu_block_title {
    font-size: 21px;
    padding: 5% 15% 2%;
    font-weight: bold;
}
#first.main_menu_blocks .main_menu_block_title {
    background-color: #1ED9DE;
}
#second.main_menu_blocks .main_menu_block_title {
    background-color: #449fb3;
}
#third.main_menu_blocks .main_menu_block_title {
    background-color: #3ab6c7;
}
#fourth.main_menu_blocks .main_menu_block_title {
    background-color: #8EF5FA;
}
.main_menu_block_title p {
  margin: 0;
}
.main_menu_block_title p.disabled  {
  color: #666;
}
.main_menu_block_link a {
    padding: 8px 10px 8px 15px;
    text-decoration: none;
    position: relative;
    display: block;
    color: #000;
    font-size: 20px;
    font-weight: bold;
}
#disabled.main_menu_block_link a{
  color: indianred !important;
  pointer-events: none;
  cursor: default;
}
.main_menu_block_link a:hover {
    color: #fccf50;
}
.beta-version {
    margin-top: -27px;
    margin-bottom: 0px;
    color: black;
    font-size: 18px;
    font-variant: none;
}
span.link_header {
    color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-size: 40px;
    font-weight: bold;
    font-variant: small-caps;
}
button#exit {
  margin-bottom: 30px;
  background-color: #fde2e3;
}
.button:disabled {
  background-color: gray;
}
  .main-content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .main-header {
    height: 70px;
    background-color: #fff;
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 24px;
    padding: 0.01em 3%;
    display: block;
  }
  .right {
    float: right!important;
  }
  .left {
    float: left!important;
  }
  .header-btn#language-selector {
    margin-top: 18px;
    float: right;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
    font-size: 17px;
  }
  .header-btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    font-variant: small-caps;
    margin: 11px 0;
  }
  .search-container {
    margin: 17px 25px;
    border: solid 1px !important;
  }
  .main-header .search-container {
  float: right;
  }

  .main-header input[type=text]:focus {
    background-color: #eee;
    border: 0;
  }
  .main-header input[type=text] {
    width: 400px;
    padding: 8px 16px;
    font-size: 17px;
    border: 0 !important;
    font-variant: small-caps;
    user-select: none;
    border: none;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    text-align: left;
    white-space: nowrap;
    font-variant: small-caps;
  }

  .main-header .search-container button {
    float: right;
    padding: 10px;
    font-size: 17px;
    border: none;
    font-variant: small-caps;
    user-select: none;
    border: none;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: #eee;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    font-variant: small-caps;
  }
  .main-header .search-container button:hover {
    background: #ccc;
  }
  #myInputautocomplete-list {
    position: absolute;
    background-color: white;
    z-index: 2;
  }
  .autocomplete-items {
    position: absolute;
    border: 0;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    font-size: 17px;
    width: 400px
  }

  .autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 0;
  }

  /*when hovering an item:*/
  .autocomplete-items div:hover {
    background-color: #e9e9e9;
  }

  /*when navigating through the items using the arrow keys:*/
  .autocomplete-active {
    background-color: #19b6c7 !important;
    color: #ffffff;
  }
  .center {
    text-align: center !important;
  }
  .main-footer {
    color: #fff!important;
    background-color: #35363A!important;
    padding: 18px 0!important;
    font-family: "Raleway", Arial, sans-serif;
  }

  .main_menu_header {
    width:100%;
    height: 300px;
    background-color: #fff;
  }

  .main_menu_header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* Just styling the content of the div, the *magic* in the previous rules */
  .main_menu_header .caption {
    z-index: 1;
    text-align: center;
    color: #dc0000;
    padding: 10px;
  }
  .styled-table {
    color: #444;
    display: none;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 50%;
    border: 1px solid #dddddd;

}

.styled-table thead tr {
    background-color: #d7f5e9;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    text-align: left;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #d7f5e9;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #d7f5e9;
}

.feedback_button {
    position: fixed;
    bottom: 0;
    right: 0;
    margin-right: 10%;

    background-color: #19b6c7;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 20px;
    padding: 14px 20px;
    transition: all 0.5s;
    cursor: pointer;
}

.happiness {
  font-family: "Lato", sans-serif;
  pointer-events: none;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
}
.happiness__background {
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  transition: opacity 0.2s ease;
  opacity: 0;
  will-change: opacity;
}
.happiness__opener {
  pointer-events: auto;
  position: fixed;
  top: 70%;
  margin-top: -30px;
  right: 0;
  border-radius: 35px 0 0 35px;
  text-decoration: none;
  height: 70px;
  width: 70px;
  background: #cea052;
  opacity: 0.8;
  transform: translateX(35px);
  transition: all 0.2s ease;
}
.happiness__opener:hover, .happiness__opener:focus {
  text-decoration: none;
}
.happiness__opener:hover {
  transform: translateX(0);
  opacity: 1;
}
.happiness__opener:before {
  content: " ";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.happiness__opener--eye1 {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  position: absolute;
  top: 21px;
  left: 42px;
}
.happiness__opener--eye2 {
  border-radius: 0px 0px 5px 5px;
  position: absolute;
  left: 20px;
  top: 23px;
  border: 3px solid #000;
  border-top-color: transparent;
  border-left: transparent;
  border-right: transparent;
  min-width: 10px;
  transform: scale(1, -1);
  transform-origin: center left;
  min-height: 10px;
}
.happiness__opener--mouth {
  width: 34px;
  height: 17px;
  border-radius: 0 0 17px 17px;
  background: #000;
  position: absolute;
  bottom: 12px;
  left: 19px;
}
.happiness__modal {
  background: #fff;
  max-width: 780px;
  margin: 40px auto;
  width: 80%;
  height: auto;
  min-height: 300px;
  max-height: 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  transition-delay: 0;
}
.happiness__header {
  height: 150px;
  background: #cea052;
  background: linear-gradient(to right, #cea052, #fdcba1);
  transition: background 0.3s ease;
  will-change: background;
  overflow: hidden;
  color: #fff;
  transition: max-height 0.2s ease;
  position: relative;
}
.happiness__header--label {
  font-weight: 400;
  font-size: 1.6em;
  position: absolute;
  left: 250px;
  top: 2.5em;
}
.happiness__header--close {
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  top: 30px;
  right: 40px;
}
.happiness__header--close span {
  height: 30px;
  width: 2px;
  background: #fff;
  display: block;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  left: 50%;
}
.happiness__header--close span:last-child {
  transform: rotate(-45deg);
}
.happiness__emoji {
  border-radius: 50%;
  height: 150px;
  width: 150px;
  top: 20px;
  left: 40px;
  border: 5px solid #fff;
  position: relative;
  direction: ltr;
  transform-origin: top left;
  transition: transform 0.2s ease;
}
.happiness__emoji--eyeR, .happiness__emoji--eyeL {
  width: 8%;
  height: 8%;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 38%;
  left: 33%;
  margin-left: -4%;
  margin-top: -4%;
  display: block;
  transition: all 0.2s ease;
}
.happiness__emoji--eyeBrew {
  width: 200%;
  position: absolute;
  height: 30%;
  top: -75%;
  border-radius: 6px;
  background: #fff;
  opacity: 0;
  transform: translateX(-25%);
  transition: all 0.2s ease;
}
.happiness__emoji--eyeR .happiness__emoji--eyeBrew {
  transform: translate(-30%, 180%) rotate(-30deg);
}
.happiness__emoji--eyeL .happiness__emoji--eyeBrew {
  transform: translate(-20%, 180%) rotate(30deg);
}
.happiness__emoji--eyeR {
  left: 66%;
}
.happiness__emoji--mouth {
  border: 5px solid #fff;
  border-top-color: transparent;
  border-left: transparent;
  border-right: transparent;
  border-radius: 0;
  position: absolute;
  display: inline-block;
  bottom: 30%;
  left: 27%;
  min-width: 44%;
  min-height: 40px;
  transition: all 0.2s ease;
  transform-origin: bottom center;
}
.happiness__main {
  height: 50%;
  color: #c4c4c4;
  padding: 30px 0;
  margin: 20px;
}
.happiness__main--slider {
  display: flex;
  align-items: center;
  padding: 20px;
}
.happiness__main--slider label {
  margin: 0 1em;
  font: 200 2em/0.9 "Lato", sans-serif;
  text-transform: capitalize;
}
.hapiness__main--textarea textarea {
  border: 1px solid rgba(156,172,186,0.3);
  border-radius: 4px;
  color: #222;
  background-color: rgba(255,255,255,0.7);
  padding: 0.5em;
  width: 100%;
}
.hapiness__main--textarea .bottom-submit {
    text-align: right;
}
.hapiness__main--textarea .submit {
    background-color: hsl(50, 50%, 50%);
    border: none;
    color: #fff;
    text-align: center;
    font-size: 20px;
    padding: 5px 20px;
    cursor: pointer;
}
.happiness.active .happiness__background {
  opacity: 1;
}
.happiness.active .happiness__container {
  pointer-events: auto;
  overflow: auto;
  max-height: 100vh;
}
.happiness.active .happiness__modal {
  max-height: 10000px;
  pointer-events: auto;
  opacity: 1;
}
.happiness.active .happiness__opener {
  transform: translateX(0);
  opacity: 1;
}

input[type=range] {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  outline: none !important;
  background: linear-gradient(to right, #bf7540, #e8d67d);
  -webkit-appearance: none;
}
input[type=range]::-ms-track {
  height: 10px;
  border: none;
  color: transparent;
}
input[type=range]::-ms-fill-upper {
  background-color: #fff;
}
input[type=range]::-ms-fill-lower {
  background-color: #267928;
}
input[type=range]::-ms-fill-upper, input[type=range]::-ms-fill-lower {
  border: solid 2px #444;
  border-radius: 8px;
  -webkit-appearance: none;
}
input[type=range]::-ms-thumb {
  border: 8px solid #fff;
  width: 24px;
  height: 24px;
  background: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
input[type=range]::-moz-range-track {
  border: solid 2px #fff;
  background: linear-gradient(to right, #bf4040, #a1e87d);
  border-radius: 8px;
  height: 10px;
  -webkit-appearance: none;
}
input[type=range]::-moz-range-thumb {
  border: 8px solid #fff;
  width: 24px;
  box-sizing: border-box;
  height: 24px;
  background: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  -webkit-appearance: none;
}
input[type=range]::-webkit-slider-thumb {
  border: 8px solid #fff;
  width: 24px;
  height: 24px;
  background: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.hapiness__main--success {
    text-align: center;
    font-size: 34px;
}

/* On screens that are 600px wide or less, make the menu links stack on top of each other instead of next to each other */
@media screen and (max-width: 992px) {
  .topnav a {
    float: none;
    width: 100%;
  }
  .logo {
    margin: 0;
  }
  .topHalf, .bottomHalf {
      float: none;
      width: 100%;
  }
  .subtopic, .subtopic a , .topicTitle a {
      width: 100%;
  }
  .question {
    width: 100%;
		margin: 0 auto;
  }
  .main_menu {
    display: inline-block;
  }
  .main_menu_blocks {
    width: 100% !important;
  }
  .main-header {
    font-size: 130% !important;
  }
	.button {
		min-width: 200px;
	}
	.question-nav p {
		font-size: 14px;
	}
	.question-nav {
		padding: 0;
		width: 50px;
    font-size: 14px;
		display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: center;
	}
}