/* Application styles */

body {
  background-color: black;
  background-size: 1280px 771px;
  background-position: 0 0;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: white;
  padding: 0 20px 0 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
}

h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 48px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  margin: 16px 0;
}

h3 {
  font-weight: 600;
  margin: 16px 0;
}

/* forms */

select, input {
  font-size: 16px;
  line-height: 28px;
}

.form-row {
  margin: 0 0 2em 0;
}

.form-errors {
  color: #DA954B;
}

.field_with_errors {
  display: inline;
}

.field_with_errors select,
.field_with_errors input {
  border-color: #DA954B;
}

/* header */

.header {
  border-bottom: 1px solid rgb(64, 64, 64);
}

.header .steps {
  padding: 25px 80px 0;
  border-bottom: 1px solid rgb(64, 64, 64)
}

.header .title {
  background-color: rgb(11, 11, 11);
  padding: 40px 80px;
}

.header .title h1 {
  margin: 0;
}

.header .title p {
  margin: 0;
  color: #bfbfbf;
}

.header .steps ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.header .steps li {
  display: inline-block;
  color: rgb(92, 92, 92);
  margin-right: 25px;
  padding-bottom: 15px;
  font-size: 15px;
  line-height: 28px;
  font-weight: 400;
}

.header .steps li.active {
  color: white;
  border-bottom: 4px solid white;
}

.page {
  background: rgba(23, 23, 23, 0.9);
  max-width: 1080px;
  margin: 68px auto 0;
  border-radius: .75rem;
}

.body {
  padding-top: 20px;
  padding-left: 80px;
  padding-right: 80px;
}

/* index page */

.quiz-index {
  margin-right: -80px;
}

.quiz-index p {
  color: rgb(191, 191, 191);
  font-size: 18px;
  line-height: 28px;
  margin: 1.2em 0 2.4em;
}

.hidden {
  display: none;
}

.link:hover {
  cursor: pointer;
  text-decoration: underline;
}

.dep {
  padding: 30px 0 0 0;
}

#other_technologies {
  display: inline-block;
  position: relative;
}


.search-box {
  display:flex;
  position: relative;
  min-width: 200px;
  max-width: 400px;
}

.search-box .fa-circle-xmark {
  margin-left: -36px;
  margin-top: 16px;
  cursor: pointer;
}

.search-box .fa-magnifying-glass {
  position: absolute;
  left: 18px;
  top: 18px;
}

#other_technologies label.active,
#other_technologies label:hover,
#other_technologies label.checked.active,
#other_technologies label.checked:hover {
      background-color: #1C2140;
}

/* Customize the label (the container) */
.technology-option {
  background-color: black;
  position: relative;
  padding-left: 40px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 20px;
  border: 1px solid #555;
  margin:5px 6px 5px 0;
}

/* Hide the browser's default checkbox */
.technology-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.technology-option:hover {
  /* background-color: #4961DC; */
  /* border-color: #4961DC; */
}

.technology-option.checked {
  background-color: #4961DC; /* #2196F3; */
  border-color: #4961DC; /* #2196F3; */
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 9px;
  left: 10px;
  height: 20px;
  width: 20px;
  background-color: black;
  border-radius: 10px;
  border: 1px solid #555;
}

/* On mouse-over, add a grey background color */
.technology-option:hover input ~ .checkmark {
  /* background-color: grey; */
  /* border-color: #4961DC; */
}

/* When the checkbox is checked, add a blue background */
.technology-option input:checked ~ .checkmark {
  background-color: white;
  border-color: white;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.technology-option input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.technology-option .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #4961DC; /* #2196F3; */
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

@keyframes grow {
  from { width: 0%; }
  to { width: 100% }
}

#timeline_rows {
  position: relative;
}

#timeline_legend {
  position: absolute;
  left: 32%;
  top: 0;
  bottom: 0;
  right: 0;
}

.timeline-form {
  width: 280px;
  margin-right: 20px;
}

.timeline-graph {
  position: relative;
  width: 620px;
}

.timeline-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  border-right: 1px solid white;
}

.timeline-marker div {
  position: absolute;
  top: -2.4em;
  text-indent: -50%;
  font-size: 12px;
  font-weight: 600;
}

.timeline-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-right: 1px dashed rgba(255, 255, 255, 0.2);
}

.timeline-grid div {
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
}

.timeline-years {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

.timeline-years span {
  color: #7f7f7f;
  font-size: 13px;
  text-align: center;
}

.timeline-graph .bg-red {
  color: white;
  background: rgb(188, 24, 12);
  animation-name: grow;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  font-size: 13px;
  position: relative; /* provide anchor point for End label */
  min-width: fit-content; /* prevent version and End labels overlapping */
  height: 30px;
  padding-right: .5rem;
  padding-left: .75rem;
  border-radius: .375rem 0 0 .375rem;
}

.timeline-graph .text-red {
  color: red;
  border-left: 1px solid red;
  font-size: 13px;
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  padding-left: .25rem;
}

.timeline-graph .bg-green {
  color: #999;
  background: rgba(255, 255, 255, 0.1);
  animation-name: grow;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  font-size: 13px;
  position: relative; /* provide anchor point for End label */
  min-width: fit-content; /* prevent version and End labels overlapping */
  height: 30px;
  padding-right: .5rem;
  padding-left: .75rem;
  border-radius: .375rem 0 0 .375rem;
}

.timeline-graph .text-green {
  color: #7f7f7f;
  border-left: 1px solid #7f7f7f;
  font-size: 13px;
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  padding-left: .25rem;
}

.timeline-graph .bg-orange {
  color: rgba(218, 149, 75, 1);
  background: rgba(218, 149, 75, 0.2);
  animation-name: grow;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  font-size: 13px;
  position: relative; /* provide anchor point for End label */
  min-width: fit-content; /* prevent version and End labels overlapping */
  height: 30px;
  padding-right: .5rem;
  padding-left: .75rem;
  border-radius: .375rem 0 0 .375rem;
}

.timeline-graph .text-orange {
  color: #DA954B;
  border-left: 1px solid rgba(218, 149, 75, 1);
  font-size: 13px;
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  padding-left: .25rem;
}

#status_rows .arrow-div {
  float: right;
  width: 0;
  height: 0;
  border-top: 14px solid rgb(55, 65, 45);
  border-bottom: 14px solid rgb(55, 65, 45);
  border-left: 14px solid transparent;
  border-right: 14px solid rgb(55, 65, 45);
}

#status_rows .recommended-version {
  color: white;
  background: rgb(55, 65, 45);
  border-radius: 0 .375rem .375rem 0;
}

.diagram {
  width: 100%;
  border-top: 1px solid white;
  font-size: 13px;
}

.diagram .green {
  background: rgba(255, 255, 255, 0.1);
  color: #999;
  margin-bottom: 6px;
}

/* No coloured dot for supported dependencies */
.diagram .green i,
.diagram .green svg {
  color: transparent;
}

.diagram .orange {
  background: rgba(218, 149, 75, 0.2);
  color: #DA954B;
  margin-bottom: 6px;
}

.diagram .red {
  background: rgb(188, 24, 12);
  color: white;
  margin-bottom: 6px;
}

/* legend */

.diagram .text-orange {
  color: #DA954B;
}

.diagram .text-red {
  color: #BB261A;
}

/* Prevent scrolling while dialog is open */
body:has(dialog[data-dialog-target="dialog"][open]) {
  overflow: hidden;
}

/* Customize the dialog backdrop */
dialog {
  padding: 2em;
  background-color: #222;
  color: white;
  border-radius: 10px;
  border:1px solid #555;
  box-shadow: 0 0 0 100vw rgb(0 0 0 / 0.5);
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.no-wrap {
  white-space: nowrap;
}

/* Add animations */
dialog[data-dialog-target="dialog"][open] {
  animation: fade-in 200ms forwards;
}

dialog[data-dialog-target="dialog"][closing] {
  animation: fade-out 200ms forwards;
}

.w-100 {
  width: 100%;
}

.quiz-index .intro {
  z-index: 10;
}

.quiz-index .background-image {
  z-index: 5;
  position: relative;
  float: right;
}

.button-remove {
  padding-top: 10px;
  padding-right: 10px;
}

.show-on-mobile {
  display: none;
}

.show-on-tablet {
  display: none;
}

@media (max-width: 532px) {
  .header .steps li {
    display: list-item;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .hide-on-mobile {
    display: none;
  }
}

@media (max-width: 630px) {
  .hide-on-mobile {
    display: none;
  }

  .show-on-tablet {
    display: grid;
  }

  .recommended-version {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .diagram .green i,
  .diagram .green svg {
    display: none;
  }
}

@media (max-width: 400px) {
  .hide-on-mobile {
    display: none;
  }
  .show-on-tablet {
    display: none;
  }
  .show-on-mobile {
    display: grid;
  }

  .diagram .green i,
  .diagram .green svg {
    display: none;
  }

  .recommended-version {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 855px) {
  .quiz-index .background-image {
    position: absolute;
    right: 0px;
  }

  .quiz-index .intro {
    margin-right: 80px;
  }

  .header .steps {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header .title {
    padding-left: 20px;
    padding-right: 20px;
  }

  .body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .quiz-index {
    margin-right: 0px;
  }
}

@media (max-width: 920px) {
  .box-title {
    display: block;
  }

  .title-call-to-action {
    justify-content: unset;
    margin-left: auto;
    margin-right: auto;
  }
}