:root {
  --orange: #ED6A5A;
  --light-green: #D1FFEB;
  --almost-black: #292929;
  --light-violet: #C4BCCF;
  --yes-green: #737225;
  --no-red: #C44545;
  --maybe-gray: #5A5A5A;
}

table, td, th {
  border-collapse: collapse;
  border: 1px solid #ccc;
}

td, th {
  padding: 5px 10px;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 335px;
  position: relative;
}

.fullscreen-box {
  width: calc(100vw - (100vw - 100%));
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  vertical-align: middle; 
  position: relative;
}

.fullscreen-box-content {
  max-width: 1200px;
  padding: 50px 30px;
}


.inner-fullscreen-container {
  padding: 12px 64px 32px 64px;
  position: relative;
}

@media (max-width: 1200px) {
  .inner-fullscreen-container {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 768px) {
  .inner-fullscreen-container {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.outer-fullscreen-container {
  width: 1080px;
  max-width: 94%;
  /* padding-right: 20px; */
}

.footer {
  position: absolute;
  bottom: 0;
}

.text-content {
  max-width: 1080px;
  margin: auto;
  font-size: 20px;
  line-height: 32px;
  color: var(--black);
  margin-top: 30px;
  font-family: 'tex_gyre_herosregular';
  font-weight: 300;
}

.main-container {
  padding: 136px 30px 64px 30px;
}

.question-explanation {
  display: none;
  max-width: 100%;
  padding: 10px 25px;
  margin: 15px auto;
  border-radius: 10px;
  background-color: #eee;
  position: relative;
}

.explanation-opener {
  text-align: center;
  margin: 0 auto 10px auto;
}

/*.explanation-opener i {
  color: var(--violet);
  font-size: 40px;
  cursor: pointer;
}*/

i.explanation-closer {
  color: var(--violet);
  font-size: 25px;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 8px;
}

.answer-button-col {
  width: 33%;
  float: left;
}

.answer-button {
  width: 86%;
  padding-right: 2%;
  padding-left: 2%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee;
  border-radius: 10px;
  margin: 20px auto;
  min-height: 54px;
  cursor: pointer;
  transition: .5s all;
  opacity: 0.5;
  color: white;
  font-size: 24px;
  text-align: center;
}

@media (max-height: 500px) {
  .answer-button {
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

@media (max-width: 1200px) {
  .answer-button {
    font-size: 22px;
  }
}

@media (max-width: 992px) {
  .answer-button {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .answer-button {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .question-explanation {
    padding-right: 10px;
    padding-left: 10px;
    line-height: 1.3;
  }

  i.explanation-closer {
    top: -7px;
    right: -7px;
  }
}

@media (max-width: 575px) {
  .answer-button {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.question-how-much-weight, .question-your-answer {
  text-align: center;
}

.display-question-number {
  position: absolute;
  left: -30px;
  top: 15px;
  font-size: 27px;
  color: white;
  background-color: var(--violet);
  border-radius: 23px;
  width: 36px;
  height: 36px;
  text-align: center;
}

.question-text {
  padding: 20px 0px 10px 0;
  font-weight: 700;
}

@media (max-width: 768px) {
  .question-text {
    padding-top: 10px;
    font-size: calc(1.1rem + .6vw);
  }

  .question-how-much-weight, .question-your-answer {
    font-size: 1rem;
  }
}

.vote-agree {
  color: var(--yes-green);
}

.vote-disagree {
  color: var(--no-red);
}

.vote-abstain {
  color: var(--maybe-gray);
}

.answer-button-agree {
  background-color: var(--yes-green); /* #073C3B; */
}

.answer-button-disagree {
  background-color: var(--no-red); /* #701d0d; */
}

.answer-button-abstain {
  background-color: var(--maybe-gray); /* #70600d; */
}

.answer-button-low-imp {
  background-color:  var(--no-red); /* #999999; */
}

.answer-button-mid-imp {
  background-color: var(--maybe-gray); /* #ccae18; */
}

.answer-button-high-imp {
  background-color: var(--yes-green); /* #cc5418; */
}

.answer-weight-box .answer-button, .question.answered .answer-button:not(.selected-option) {
  opacity: 0.15;
}

.answer-button.selected-option {
  opacity: 1;
}

.question .answer-button:hover, .question.answered .answer-button:hover {
  opacity: 1;
  width: 96%;
  padding-right: 7%;
  padding-left: 7%;
}

.question:not(.question-1) {
  display: none;
}

.question-anchor {
  position: absolute; 
  top: 0;
}

.language-dropdown-entry {
  cursor: pointer;
}

.language-dropdown-entry img {
  display: inline;
}

.dropdown-menu {
  display: none;
}

.language-dropdown-entry img {
  display: inline;
  width: 30px;
  position: relative;
}

.language-dropdown-menu {
  position: fixed;
  top: 73px;
  right: 0;
  width: 100%;
  padding: 10px 55px;
  border-bottom: 1px solid #073C3B;
  background-color: white;
  display: none;  
  overflow: hidden;
}

@media (max-width: 900px) {
  .language-dropdown-menu {
      padding: 0px 30px;
  }
}

@media (max-width: 768px) {
  .language-dropdown-menu {
    padding: 0px 10px;
  }
}

.language-dropdown-entry-son {
  display: block;
  float: left;
  width: 180px;
  margin: 5px 5px;
  clear: none;
}

@media (max-width: 900px) {
  .language-dropdown-entry-son  {
      width: 160px;
  }
}

.start-test-button {
  min-width: 300px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  background-color: var(--violet);
  text-align: center;
}

.nomr {
  cursor: pointer;
}

.fullscreen-box-intro {
  background-color: #ED6A5A;
  color: white;
  padding-top: 72px;
}

.fullscreen-box .main-title {
  margin: 0 auto 50px auto;
  text-align: center;
  border-bottom: none;
}

.fullscreen-box-intro .main-title, .fullscreen-box-intro .intro-text {
  color: white;  
  text-align: center; 
}

.fa-minus-square-o {
  position: relative;
  top: 3px;
}

.extra-info-box {
  flex-direction: column;
}

.goto-results-button a {
  cursor: pointer;
  background-color: var(--orange) !important;
  color: white !important;
}

.extra-info-form .form-control {
  width: 400px;
  max-width: 80vw;
}

.form-control {
  appearance: auto;
}

table.invisible-table {
  margin-top: 50px;
}

table.invisible-table, .invisible-table td, .invisible-table th {
  border: none;
}

.no-extra-info-par {
  font-size: small;
  margin-top: 0px;
  margin-bottom: 5px;
}

.person-info {
  font-size: small;
  line-height: normal;
}

body,
html {
  scroll-behavior: auto !important;
}

.compared-pg-logo {
  width: 28px;
  position: relative;
  top: -2px;
}

.compared-party .compared-pg-logo, .compared-national-party .compared-pg-logo {
  width: 38px;
  margin-top: 10px;
}

.compared-person-flag {
  width: 24px;
  padding: 0 2px;
}

a {
  text-decoration: none;
}

.similarity-cell {
  position: relative;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .similarity-cell {
    margin-bottom: 10px;
  }
}

.compared-score {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  color: white;
  mix-blend-mode: color-dodge;
  text-align: center;
  display: block;
  font-size: 18px;
}

.compare-table {
  width: 100%;
  max-width: 1200px; 
  margin: 20px auto 40px auto;
  padding-right: 20px;
  padding-left: 20px;
  clear: both;
}

.compare-table .row {  
  border: 1px solid #ccc;
  margin-top: -1px;
}

.compared-person-cell, .compared-person-info-cell {
  /*white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;*/
  padding-bottom: 5px;
  align-items: center;
}

.compared-party-cell, .compared-national-party-cell {
  overflow: hidden;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
}

.compared-party-cell {
  min-height: 40px;
  line-height: 1.3;
}

.compared-national-party-cell {
  min-height: 45px;
  line-height: 1.3;
}

.progress {
  height: 30px;
  width: 100%;
  position: relative;
}

.progress {
  background-color: #ccc;
}

.results-box {
  width: 1080px;
  max-width: 94%;
  margin: 0px auto;
  background-color: white;
  border-radius: 10px;
  padding: 20px 40px;
}

@media (max-width: 900px) {
  .results-box {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.survey-results-title {
  padding-top: 5px;
  text-align: center;
  margin-bottom: 15px;
}

.nav-pills .nav-link.active {
  background-color: var(--orange);
}

.nav-link {
  color: var(--orange);
}

.nav-link:hover {
  color: var(--violet);
}

.progress-bar {
  background-color: var(--violet);
}

.extra-info-box .question-explanation {
  display: block;
  max-width: 700px;
  margin-top: 0px;
  line-height: 1.3;
}

.extra-info-form {
  overflow: hidden;
}

.extra-info-form .invisible-table {
  margin: 15px auto;  
}

.icon.eumatrix { 
  height: 100px; 
  background-image: url(../../img/eu_matrix_logo_b.png);
  background-position: center;
  width: 210px;
}

body {
  padding-bottom: 425px;
}

.header .logo {
  background-image: none;
}

.header .logo h1 {
  font-weight: 700;
  margin-top: 5px;  
}

.header  a.logo:hover {
  color: inherit;
}

.footer {
  background-color: var(--almost-black);
}

.title-mp {
  color: var(--orange);
}

.minor-info {
  font-size: small;
  line-height: 1;
}

.person-name {
  padding: 0 0 0 5px;
}

@media (max-width: 575px) {
  .person-name {
    font-size: 16px;
  }
}

.party-name {
  padding: 2px 0 0 14px;
  position: relative;
  top: 1px;
}

.pg-name {
  margin-left: 15px;
}

.compared-national-party .compared-person-flag {
  margin: 2px 10px;
  position: relative;
  top: 3px;
}

.np-name {
  position: relative;
  top: 3px;
}

.language-dropdown-entry-father {
  color: var(--orange);
}

@media (max-width: 768px) {
  .header_right {
    position: relative;
    top: 22px;
  }

  .header .header_right a.link {
    font-size: 16px;
  }

  .header .center_container {
    padding: 0;
  }
}

@media (max-width: 575px) {
  .header .center_container .logo {
    position: absolute;    
    max-width: 100% !important;
    max-width: 100% !important;
    top: 0;
    left: 0;
    text-align: center;
  }

  .header .header_right {
    justify-content: center;
    position: relative;
    top: 40px;
  }
}

@media (max-width: 400px) {
  .header .header_right a.link {
    font-size: 14px;
  }
}

p.btn a, .start-button {
  background-color: var(--light-green);
  color: var(--almost-black);
  text-transform: none;
  border-radius: 5px;
  padding: 0px 25px;
  position: static;
  text-align: center;
  font-size: 18px;
  line-height: 40px;
  font-weight: 500 !important;
  border-color: var(--violet) !important;
  transition: all .3s;
}

.start-button {
  display: inline-block;
  min-width: auto;
  margin: 50px auto;
}

.start-button:hover {
  background-color: var(--violet) !important;
  color: var(--almost-black);
}

h1, h2, h3, h4, h5, h6, .answer-button {
  letter-spacing: -0.03em;
}

.fullscreen-box.question, .fullscreen-box.extra-info-box {
  background-color: var(--light-violet);
}

.fullscreen-box.question .inner-fullscreen-container, .fullscreen-box.extra-info-box .inner-fullscreen-container {
  background-color: white;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.extra-info-box .question-text, .extra-info-box .no-extra-info-par {
  text-align: center;
}

.results-area {
  background-color: var(--light-violet);
  padding: 50px 0;
}

.people-compare-table {
  padding: 0 20px;
}

#results-pills-tab {
  margin-bottom: 10px;
}

#result-country-selector-container {
  clear: both;
}


#result-country-selector-container.unrelevant {
  display: none;
  /* opacity: .3; */
}

.result-menu-container.sticky {
  padding-top: 5px;
  position: fixed;
  top: 72px;
  background: white;
  width: 995px;
  max-width: calc(94% - 80px);
  z-index: 2;
  border-bottom: 1px solid var(--light-violet);
}

#results-pills-tab.sticky #result-country-selector-container {
  
}

@media (max-width: 900px) {

  .result-menu-container.sticky {
    max-width: calc(94% - 40px);
  }

  #results-pills-tab .nav-link {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
  }

  #result-country-selector-container {
    font-size: 16px;
  }
}

.footer .center_container {
  width: 1080px;
  margin: 0px auto 0 auto;
}

.footer-icon {
  float: left;
  width: auto;
  margin-left: 30px;
}

@media (max-width: 1080px) {
  .footer-icon {
    margin: 10px auto;
  }
}

.footer .ballot-buddy-svg {
  margin: auto;
  width: 220px;
}

.footer-links {
  text-align: center;
  color: var(--light-violet);
  margin-top: 20px;
  clear: both;
  padding-top: 30px;
}

.footer-links a {
  padding: 0 30px;
  white-space: nowrap;
}

.header_right a {
  white-space: nowrap;
}

.main-title {
  color: var(--orange);
  text-align: left;
  border-bottom: 1px solid var(--almost-black);
  padding-bottom: 16px;
  max-width: 1080px;
  margin: auto;
}

.header .header_right a.link {
  margin-right: .8rem;
}

.question-denominator {
  color: var(--light-gray);
}

.question-number-text {
  text-transform: uppercase;
  font-weight: 700;
}

.answer-button-col {
  padding-right: 0;
  padding-left: 0;
}

.more-info-text {
  background-color: var(--violet);
  border-radius: 5px;
  color: white;
  padding: 0px 10px 3px 10px;
  cursor: pointer;
}

.small-extra-info-detail {
  display: none;
}

@media (max-width: 576px) {
  .small-extra-info-detail {
    display: inline;
  }

  .large-extra-info-detail {
    display: none;
  }
}

.vote-col-icon {
  width: 64px;
  float: left;
  clear: both;
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}


.vote-col-icon img {
  width: 38px;  
}

.vote-col {
  width: calc((100% - 64px) / 20);
  float: left;
  border-left: 1px solid #ccc;
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: center;
  position: relative;
}

/* Agree/disagree weight
.vote-col-agree-imp-high, .vote-col-disagree-imp-high {
  font-size: 22px;
}

.vote-col-agree-imp-low, .vote-col-disagree-imp-low {
  font-size: 16px;
}
*/

.vote-row {
  height: 44px;
  border: 1px solid #ccc;
}

.compare-table .vote-row-header.row {
  border-top: none;
}

.compare-table .vote-row-header.row .vote-col, .compare-table .vote-row-header.row .vote-col-icon {
  border-top: 1px solid #ccc;
}

.compare-table .vote-row-header.row .vote-col.explained {
  border-top: none;
  background-color: #eee;
}

.vote-row-header {
  font-weight: bold;
}

.vote-row-header-question, .compare-table .vote-row-header-question.row {
  background-color: #eee;
  border-bottom: none;
  text-align: center;
  padding: 4px 10px;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  overflow: hidden;
}

.vote-col-cell.explained {
  background-color: #eee;
}


.imp-icon {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 14px;
  color: gray;
}

@media (max-width: 1200px) {
  .compare-table .vote-row-header-question.row {
    font-size: 16px;
    padding: 3px 10px;
  }

  .compare-table .question-header {
    font-size: 16px;
  }
}

@media (max-width: 1000px) {
  .compare-table .vote-row-header-question.row {
    font-size: 14px;
    height: 68px;
    padding: 2px 5px;
    line-height: 1.1;
  }

  .compare-table .question-header {
    font-size: 14px;
  }

  .imp-icon {
    font-size: 12px;
    top: 1px;
    left: 50%;
    margin-left: -6px;
  }
}

@media (max-width: 768px) {
  .party-vote-table {
    font-size: 14px;
  }

  /* Agree/disagree weight
  
  .vote-col-agree-imp-high, .vote-col-disagree-imp-high {
    font-size: 16px;
  }
  
  .vote-col-agree-imp-low, .vote-col-disagree-imp-low {
    font-size: 12px;
  } */

  .compare-table .vote-row-header-question.row {
    font-size: 12px;
    height: 64px;
  }

  .compare-table .question-header {
    font-size: 12px;
  }

  .question-header, .vote-col, .vote-col-icon {
    padding: 0;
  }
}

@media (max-width: 575px) {

  .result-menu-container.sticky {
    max-width: calc(94%);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
  }

  .compare-table .vote-row-header-question.row {
    line-height: 1.05;
  }

  .party-vote-table {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);    
  }

  .vote-col {
    width: calc((100% - 40px) / 20);
  }

  .vote-col-icon {
    width: 40px;
    font-size: 10px;
  }

  .vote-col-icon img { 
    width: 28px;
  }

  .compare-table .question-header {
    font-size: 10px;
  }
}

.select2-container .select2-search--inline .select2-search__field {
  height: 26px;
}

@media (max-width: 1200px) {
  #toTop {
    bottom: 16px;
    right: 16px;
    padding: 14px 15px 9px;
    opacity: .7;
  }
}