html {
  scroll-behavior: smooth;
}

body {
  background: #0f0f19;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial,
    sans-serif;
  color: #fff;
}
p {
  color: rgba(255, 255, 255, 0.87);
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 0 0 1.5rem 0;
}
a {
  color: inherit;
}

p a:hover {
  color: #4caf50;
}

li {
  list-style-type: square;
}
input:focus + label,
button:focus,
a:focus,
.subscribe__input:focus {
  outline: 1px dotted rgba(255, 255, 255, 0.5);
  outline-offset: 0.25rem;
}
.wrapper {
  max-width: 86rem;
  margin: 0 auto;
  padding: 0 3rem;
}
.header {
  background: #4caf50;
  font-size: 2.5rem;
  padding: 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5rem 0 0 0;
  font-weight: 300;
  cursor: text;
}
.header__question {
  flex-basis: 50%;
  text-align: right;
}

.header__input {
  max-width: 30rem;
  margin: 0 1rem;
  width: 100%;
}

.header__input input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #fff;
  width: 100%;
  padding: 0 0.25rem;
  color: inherit;
  font: inherit;
  line-height: 3.75rem;
  text-align: center;
}
.header__input input:focus {
  outline: 0;
  background: rgba(255, 255, 255, 0.2);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.header__configuration {
  flex-basis: 50%;
  display: flex;
  align-items: center;
}

.header__button {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  font-size: 0.65em;
  border: 0;
  margin-top: 0.25rem;
  margin-left: 0.75rem;
  cursor: pointer;
  line-height: 2rem;
}

.header__button svg {
  margin: 0 0.45rem 0 0;
  top: 2px;
}

.main {
  margin: 1.5rem 0 10rem;
  border: 1px solid #3b3a3f;
}

.main__loader {
  background: rgba(14, 14, 25, 0.95);
  opacity: 0;
  z-index: 1;
  visibility: hidden;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  transition: opacity 0.15s, visibility 0.15s;
  left: 0;
}

.main__loader--active {
  opacity: 1;
  visibility: visible;
}

.main__loader::before {
  content: "";
  display: block;
  height: 5rem;
  width: 5rem;
  position: sticky;
  top: 10rem;
  left: 0;
  right: 0;
  margin: 4rem auto;
  border-radius: 50%;
  border: 0.5rem solid rgba(255, 255, 255, 0.22);
  border-right-color: rgba(54, 54, 80, 0);
  animation: rotate 1s infinite linear;
}

@-webkit-keyframes rotate {
  /* 100% keyframe for  clockwise. 
     use 0% instead for anticlockwise */
  100% {
    -webkit-transform: rotate(360deg);
  }
}

.description {
  padding: 1rem;
  margin: 0;
  /*border: 1px solid rgba(255,255,255,0.15);
    */
  background: rgba(255, 255, 255, 0.05);
}

.description__title {
  font-size: 1.25rem;
}

.description__tagline {
  font-weight: 300;
}

.description__content {
  text-align: center;
  padding: 2rem;
  max-width: 60rem;
  margin: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.5;
}
.main__results {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.main__results > div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.25rem;
  background: #19191d;
  padding: 1rem;
}
nav {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  align-items: center;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  display: inline-block;
  margin-bottom: 0.5rem;
}
nav .nav__button {
  font-size: 1.25rem;
  display: inline-block;
  padding: 0.5em 0.75em 0.5em;
  margin: 0 3px 0 0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 300;
}
nav .nav__button--active,
nav .nav__button:hover {
  background: #3b7f40;
}
nav .nav__text {
  color: rgba(255, 255, 255, 0.87);
  font-weight: 300;
}
nav .nav__text a {
  color: #fff;
}
nav .nav__text a:hover {
  color: #4caf50;
}

.results {
  display: none;
}

.results__content {
  padding: 3rem 2rem;
}
.results__title {
  display: flex;
  align-items: flex-start;
}
.results__titleIcon {
  margin-top: 10px;
}

.results__urlWrapper {
  flex-grow: 1;
  max-width: 60rem;
  width: 0;
}
.results__url {
  margin-left: 0.5rem;
  font-size: 2rem;
  text-decoration: none;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.results__urlInfo {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: monospace;
  border: 1px solid #3b393f;
  display: inline-block;
  margin: 0.75rem 0.5rem 0.5rem;
  padding: 0.25rem;
  border-radius: 3px;
}

.results__description {
  max-width: 60rem;
  margin: 0.75rem 0 0 2rem;
  font-size: 1.25rem;
  color: #c3c3c5;
}

.results__description code {
  border: 0;
  padding: 0;
  top: 0;
}

.results__table {
  display: flex;
  margin: 1rem 0 0 2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 60rem;
  justify-content: space-between;
  border-top: 1px solid #3b393f;
  padding: 1rem 0 0 0;
}
.results__table .results__tableCell .cell_icon {
  content: "";
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
  background: #4caf50;
  border-radius: 50%;
  margin-right: 0.5rem;
  top: -1px;
  position: relative;
}

.results__table .results__tableCell .cell_text {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
  padding: 0 0rem 0.25rem 0rem;
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.results__table .results__tableCell .cell_text:focus {
  border: 0;
  padding: 0;
}

.results__table .results__tableCell.results__tableCell--error .cell_icon {
  background: #c33838;
}

.results__source {
  border-top: 1px solid #3b3a3f;
  display: flex;
}
.results__source ~ .results__source {
  border-top: 1px solid rgba(255, 255, 255, 0.125);
}

.source__description {
  padding: 1em 2rem;
  min-height: 5rem;
  width: 20rem;
  flex-shrink: 0;
}

.source__description p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.source__description .source__title {
  font-weight: 700;
  font-size: 1rem;
}

.source__title a {
  text-decoration: none;
}

.source__content {
  flex-grow: 1;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  overflow: scroll;
  max-height: 20rem;
}

.source__content::before {
  content: "";
  background: rgb(38, 38, 48);
  display: inline-block;
  width: 2.5rem;
  text-align: right;
  border-right: 1px solid #3b393f;
  padding: 0.25rem 0.25rem;
  margin: 0 0.5rem 0 0;
  position: absolute;
  top: 0;
  height: 100%;
}

.source__content--empty {
  color: #c3c3c5;
}

.line {
  width: 100%;
  display: inline-block;
}

.line::before {
  content: attr(data-line);
  background: rgb(38, 38, 48);
  display: inline-block;
  width: 2.5rem;
  text-align: right;
  border-right: 1px solid #3b393f;
  padding: 0.25rem 0.25rem;
  margin: 0 0.5rem 0 0;
  color: #c3c3c5;
}

.line:first-of-type::before {
  padding-top: 1rem;
}

.line:last-of-type::before {
  padding-bottom: 1rem;
}

.line--comment {
  color: #c3c3c5;
}

.line--allow {
  background: #4caf50;
}
.line--disallow {
  background: #c33837;
}

.contentWrapper {
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4rem 0;
}
.contentWrapper .wrapper {
  max-width: 50rem;
}
.contentWrapper h1,
.contentWrapper h2,
.contentWrapper h3,
.contentWrapper h4,
.contentWrapper h5,
.contentWrapper h6 {
  margin: 2em 0 0.5em 0;
  font-weight: 600;
}

.contentWrapper h1 {
  font-size: 2.5rem;
}
.contentWrapper h2 {
  font-size: 1.75rem;
}
.contentWrapper h3 {
  font-size: 1.5rem;
}
.contentWrapper h4 {
  font-size: 1.25rem;
}
.contentWrapper h5 {
  font-size: 1.15rem;
  border-left: 0.25rem solid rgba(255, 255, 255, 0.5);
  padding-left: 0.5rem;
  margin-left: -0.75rem;
}
.contentWrapper h6 {
  font-size: 1.1rem;
}

.contentBlock__lead {
  font-size: 1.25rem;
}

hr {
  border: 0;
  margin: 3rem 0;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
}

code {
  border: 1px solid #3b393f;
  padding: 0.1em 0.5rem 0.2rem;
  border-radius: 5px;
  font-size: 0.95em;
  top: -1px;
}

footer {
  padding: 3rem 0;
  display: flex;
  max-width: 100%;
  justify-content: space-between;
}

footer > div:first-child {
  width: 50%;
  margin-right: 5rem;
}
footer > div:last-child {
  width: 40%;
}

footer h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

footer p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.directive {
  border: 1px solid #3b393f;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0 2rem 0;
}

.directive dt {
  font-family: monospace;
  font-size: 1.25rem;
  padding: 1.25rem 1rem 0 1rem;
}

.directive .directive__description {
  padding: 0.5rem 1rem 0 1rem;
  color: rgba(255, 255, 255, 0.87);
  margin: 0;
}

.directive .directive__example {
  background: #1a1a25;
  padding: 1rem;
  margin: 1rem 0 0 0;
  border-top: 1px solid #3b383f;
  font-family: monospace;
}

.configuration input[type="radio"] {
  opacity: 0;
  position: absolute;
  left: -1000px;
}

.configuration {
  background: #4caf50;
  margin: 0 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
  gap: 0;
}

.configuration__inner {
  padding: 2rem;
  grid-template-columns: repeat(5, 1fr);
  display: grid;
}

.configuration--active {
  display: block;
}

.configuration__current {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
  margin-bottom: 1rem;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  grid-column: 1 / -1;
  box-sizing: border-box;
}

.configuration__current a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.configuration__option {
  padding: 1rem;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-block;
  border-right-width: 0;
}

.configuration__option:last-of-type {
  border-right-width: 1px;
}

.configuration__search,
.configuration__ai,
.configuration__social {
  display: none;
  justify-content: flex-start;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-top: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

#ua-search:checked ~ .configuration__search {
  display: flex;
}

#ua-ai:checked ~ .configuration__ai {
  display: flex;
}

#ua-social:checked ~ .configuration__social {
  display: flex;
}

.configuration__search label,
.configuration__ai label,
.configuration__social label {
  padding: 1rem;
  text-align: center;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  flex-grow: 1;
  flex-shrink: 0;
  border-left-width: 0;
  top: -1px;
}

.configuration input:checked + label {
  background: rgba(255, 255, 255, 0.1);
}

.configuration__custom {
  display: none;
  justify-content: space-between;
  grid-column: 1 / -1;
  margin-top: 1rem;
}

#ua-custom:checked ~ .configuration__custom {
  display: flex;
}

.configuration__custom input {
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  border-bottom: 1px solid white;
  font: inherit;
  font-weight: 300;
  line-height: 2.5em;
  width: 100%;
  font-size: 1.25rem;
  padding: 0 1rem;
  color: inherit;
}

.configuration__custom input:focus {
  outline: 0;
  background: rgba(255, 255, 255, 0.2);
}

.subscribe {
  text-align: left;
}

.subscribe__inputWrapper {
  display: flex;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid;
  color: white;
}

.subscribe__input {
  background: transparent;
  border: 0;
  flex-grow: 1;
  font: inherit;
  color: inherit;
  padding: 0.75rem;
}

.subscribe__button {
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  padding-right: 1rem;
  display: flex;
  cursor: pointer;
}

.subscribe__other {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.subscribe__other input {
  top: -1px;
  margin-right: 0.25rem;
}

.subscribe__message {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1rem;
  padding-top: 1rem;
}

@media only screen and (max-width: 65rem) {
  .header {
    font-size: 2rem;
    white-space: nowrap;
  }

  .header__input {
    flex-shrink: 1;
  }

  .header__input input {
    line-height: 2.5rem;
  }

  .header__question,
  .header__configuration {
    flex-basis: auto;
  }

  .header__button svg {
    margin: 0 0.25rem 0 0;
    transform: scale(0.8);
    top: 5px;
  }

  .configuration__option {
    padding: 0.75rem;
  }

  .configuration__search label,
  .configuration__ai label,
  .configuration__social label {
    min-width: 20%;
    flex-grow: 1;
    padding: 0.75rem;
  }

  .results__content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .results__titleIcon {
    margin-top: 5px;
  }

  .results__url {
    font-size: 1.5rem;
  }

  .results__table {
    flex-direction: column;
  }

  .results__tableCell {
    margin: 0 0 1rem 0;
  }

  .results__source {
    display: block;
  }

  .source__description {
    padding: 2em 1rem;
    min-height: 0;
    max-width: 30rem;
    width: 100%;
  }

  .source__content {
    border-top: 1px solid #3b3a3f;
  }

  .contentWrapper h2 {
    font-size: 1.5rem;
  }
  .contentWrapper h3 {
    font-size: 1.25rem;
  }
  .contentWrapper h4 {
    font-size: 1.15rem;
  }
  .contentWrapper h5 {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width: 50rem) {
  .wrapper {
    padding: 0 1.5rem;
  }

  .header {
    font-size: 1.5rem;
  }

  .header__input input {
    background: rgba(255, 255, 255, 0.2);
  }

  .configuration__inner {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .configuration__option {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-width: 0;
  }

  .configuration__option:last-of-type {
    border-bottom-width: 1px;
  }

  .configuration__search label,
  .configuration__ai label,
  .configuration__social label {
    min-width: 50%;
    flex-grow: 1;
    padding: 0.5rem;
  }

  .header__button svg {
    margin: 0 0.15rem 0 0;
    transform: scale(0.6);
    top: 6px;
  }

  footer {
    display: block;
  }

  footer > div:first-child {
    width: 100%;
  }

  footer > div:last-child {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media only screen and (max-width: 40rem) {
  .attribution {
    display: none;
  }

  .header {
    flex-direction: column;
    align-items: initial;
  }

  .header__question {
    text-align: left;
  }

  .header__input {
    margin: 0.5rem 0;
  }

  .header__input input {
    text-align: left;
  }

  .header__questionMark {
    display: none;
  }

  .header__button {
    margin-left: 0;
    padding: 0;
  }

  .configuration__option {
    width: 100%;
    border-width: 1px;
  }

  .configuration__search label,
  .configuration__ai label,
  .configuration__social label {
    min-width: 100%;
  }

  .configuration__current {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
  }
}
