html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: calc(14px + 0.5vmin);
  background-color: #ebebeb;
  display: flex;
  flex-direction: column;
}

.darkbody {
  background-color: #141414;
  color: #ebebeb;
}

* {
  transition: all 0.15s ease-in-out;
}

header {
  background-color: #500076;
}

#header {
  padding: 1.2em;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

#header h1 {
  font-weight: 600;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

#header .about {
  display: block;
  line-height: 0;
  margin: 0;
}

#header .title img {
  height: 60px;
  width: 60px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

#header a {
  color: white;
  text-decoration: none;
  margin: 0 auto;
}

#content {
  padding: 2em 1em 1em;
  flex-grow: 1;
}

#footer {
  padding: 1em;
  background: rgba(80, 0, 118, 0.7);
  display: flex;
  align-items: center;
}

#footer:hover {
  background: rgba(80, 0, 118, 1);
}

#footer p {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding-left: 100px;
}

#footer p, #footer a {
  color: white;
}

hr {
  background-color: rgba(138, 138, 138, 0.1);
  border: none;
  margin: 2em 0;
  height: 4px;
}

a {
  color: inherit;
  text-decoration: underline;
}

h2,
h3,
h4 {
  max-width: 640px;
  margin: 0 auto;
  font-weight: 600;
}

h3 {
  font-size: calc(16px + 1vmin);
}

h4 {
  margin: 0 auto 0.5em;
}

.simpleText {
  max-width: 640px;
  margin: 1em auto 2em;
}
.simpleText svg {
  vertical-align: text-bottom;
}
.simpleImg {
  width: 100%;
  max-width: 640px;
  display: block;
  object-fit: contain;
  margin: 0em auto 2em;
}
.columnContainer {
  position: relative;
}
.columnLeft {
  float: left;
  width: 100%;
}
.columnRight {
  float: left;
  width: 100%;
  margin-bottom: 4vmin;
}
@media screen and (min-width: 80em) {
  .columnLeft {
    width: 50%;
  }
  .columnRight {
    width: 50%;
  }
}

#bonusBox {
  max-width: 640px;
  margin: 0 auto;
}
.questionBox {
  max-width: 640px;
  min-height: 4.5em;
  margin: 1em auto;
}
.description {
  margin: 1.5em auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}
.descText,
.descTextMono {
  flex-grow: 1;
  max-width: 640px;
}
.descText {
  width: calc(100% - 30vmin);
}
.descText p {
  margin: 0 0 1em;
}
.descTextMono {
  align-self: center;
}
.descTextMono p {
  margin: 0;
}
.descImg {
  line-height: 0;
}
.descImg img {
  width: 15vmin;
  height: 15vmin;
}
.axisConstructivism {
  background-color: #a425b6;
  text-align: right;
}
.axisEssentialism {
  background-color: #34b634;
  text-align: left;
}
.axisInternationalism {
  background-color: #3e6ffd;
  text-align: right;
}
.axisNationalism {
  background-color: #ff8500;
  text-align: left;
}
.axisCommunism {
  background-color: #cc0000;
  text-align: right;
}
.axisCapitalism {
  background-color: #ffb800;
  text-align: left;
}
.axisProgressism {
  background-color: #850083;
  text-align: right;
}
.axisConservatism {
  background-color: #970000;
  text-align: left;
}
.axisEcology {
  background-color: #a0e90d;
  text-align: right;
}
.axisProductivism {
  background-color: #4deae9;
  text-align: left;
}
.axisLiberal {
  background-color: #14bee1;
  text-align: right;
}
.axisAuthoritarism {
  background-color: #e6cc27;
  text-align: left;
}
.axisRegulation {
  background-color: #269b32;
  text-align: right;
}
.axisLaissez {
  background-color: #6608c0;
  text-align: left;
}
.axisRevo {
  background-color: #eb1a66;
  text-align: right;
}
.axisRefo {
  background-color: #0ee4c8;
  text-align: left;
}

.navButtons {
  margin: 0 auto 3em;
  text-align: center;
  max-width: 400px;
}

button, .button {
  text-align: center;
  margin: 0.5em 0;
  padding: 0.5em 1.5em;
  display: inline-block;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  font-size: 18px;
  background-color: #500076;
  color: white;
  cursor: pointer;
}
button.strong-agree {
  background-color: #1b5e20;
}
button.agree {
  background-color: #4caf50;
}
button.neutral {
  background-color: #bbbbbb;
}
button.disagree {
  background-color: #f44336;
}
button.strong-disagree {
  background-color: #b71c1c;
}

.questionButtons button {
  color: white;
  width: 100%;
  height: 2.5em;
}

.questionButtons button:hover {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
}

.button:hover {
  background-color: white;
  color: #500076;
}
.button svg {
  fill: white;
  vertical-align: text-bottom;
}
.button:hover svg {
  fill: #500076;
}
.buttonLinkGood {
  background-color: #0eb31a;
  color: white;
}
.buttonLinkGood:hover {
  background-color: #0eb31a;
  color: white;
}
.buttonLinkGood svg,
.buttonLinkGood:hover svg {
  fill: white;
}
.urlToCopyContainer {
  width: 100%;
  text-align: center;
}
.urlToCopy {
  max-width: 400px;
  background-color: rgba(138, 138, 138, 0.1);
  display: inline-block;
  padding: 0.5em;
  margin: 1em 0 0;
  z-index: 6;
  border-radius: 3px;
  word-break: break-all;
}

.flagDecoration {
  text-align: center;
}
.flagDecoration canvas {
  box-shadow: 0 1px 1px 1px #aaa;
  max-width: 70vmin;
}
.generatedResultsDecorations {
  text-align: center;
}
.generatedResultsDecorations canvas {
  box-shadow: 0 1px 1px 1px #aaa;
  max-width: 800px;
  width: 100%;
}
#slogan {
  margin: 1em 0;
  font-size: calc(14px + 2vw);
}

.scale {
  display: flex;
  width: 100%;
  margin-bottom: 1em;
}
.scale .left,
.scale .right {
  width: 15vmin;
  height: 15vmin;
  position: relative;
}
.scale .left img,
.scale .right img {
  position: absolute;
  top: 0;
  width: 15vmin;
  z-index: 2;
}
.scale .left img {
  left: 2vmin;
}
.scale .right img {
  right: 2vmin;
}
.scale .axis {
  flex-grow: 1;
}
.scale .axis .label {
  display: flex;
  font-size: 2.5vmin;
  height: 5vmin;
  align-items: center;
}
.scale .axis .label .left-label,
.scale .axis .label .right-label {
  width: 50%;
  margin: 0 0.5em;
}
.scale .axis .label .right-label {
  text-align: right;
}
.scale .axis .axis-bar {
  display: flex;
  box-shadow: 0vmin 1px 0.4vmin #aaa;
  height: 5vmin;
  background-color: #f3f3f3;
  color: #888;
}
.scale .axis .axis-bar .axis-left,
.scale .axis .axis-bar .axis-center,
.scale .axis .axis-bar .axis-right {
  font-size: 3.2vmin;
  line-height: 5vmin;
}
.scale .axis .axis-bar .axis-left span,
.scale .axis .axis-bar .axis-right span {
  padding: 0 1.1vmin;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
.scale .axis .axis-bar .axis-left {
  text-align: right;
}
.scale .axis .axis-bar .axis-center {
  text-align: center;
  flex-grow: 1;
}

[data-i18n] {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  }
  @-webkit-keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
  }
  @keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
  }

/* Dark theme button */

.darkmode-btn {
    position: relative;
    width: 50px;
    height: 25px;
    margin: 0;
    border-radius: 40px;
    flex: 0 0 50px;
}

input[type="checkbox"] {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: 0px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

/* First toggle btn */
.darkmode-btn span {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    overflow: hidden;
    opacity: 1;
    background-color: rgba(235, 235, 235, 0.8);
    box-shadow: 0px 0px 5px #ebebeb;
    border-radius: 40px;
    transition: 0.2s ease background-color, 0.2s ease opacity;
}

.darkmode-btn span:before,.darkmode-btn span:after {
    content: '';
    position: absolute;
    top: 1.5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: 0.5s ease transform, 0.2s ease background-color;
}

.darkmode-btn span:before {
    background-color: #ebebeb;
    transform: translate(-20px,0px);
    z-index: 1;
}

.darkmode-btn span:after {
    background-color: #141414;
    transform: translate(2.5px,0px);
    z-index: 0;
}

.darkmode-btn input[type="checkbox"]:checked + span {
    background-color: #141414;
    box-shadow: 0px 0px 5px #141414;
}

.darkmode-btn input[type="checkbox"]:active + span {
    opacity: 0.5;
}

.darkmode-btn input[type="checkbox"]:checked + span:before {
    background-color: #141414;
    transform: translate(19px,-4px);
}

.darkmode-btn input[type="checkbox"]:checked + span:after {
    background-color: #ebebeb;
    transform: translate(26px,0.5px);
}
