html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
}

body * {
  box-sizing: border-box;
}

.dark header {
  background-color: #121212;
  color: white;
}

.dark header a {
  color: white;
  border-bottom: 1px solid silver;
}

.dark .logo-wrap {
  filter: invert(1) grayscale(1) brightness(2.5);
  box-shadow: inset 0 0 0 1px black;
}

header {
  background-color: #efefef;
  color: black;
  z-index: 1000;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  display: flex;
  margin-bottom: 50px;
}

header,
header a,
header h1,
.setup main {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.logo-block {
  top: 38px;
  padding: 0;
  width: 55px;
}

.logo-wrap {
  padding-bottom: 0;
  height: 55px;
  margin-right: 0;
  flex-shrink: 0;
  margin-bottom: 0;
  cursor: pointer;
  margin-left: 0;
  background: no-repeat center/contain url(../img/stylitics_logo_for_web_2018.svg);
}

.setup main {
  max-width: 960px;
  margin: 60px auto 0;
  font-weight: 400;
  padding-bottom: 200px;
}

.setup code {
  padding-left: 20px;
}

.setup .code-inline {
  background: #f0f0f0;
  padding: 0 8px !important;
}

.setup pre {
  margin: 5px 0;
}

.setup main h1 {
  margin-bottom: 70px;
  text-align: center;
  font-weight: 500;
}

.setup ol {
  width: calc(100% - 80px);
}

.setup ol li {
  margin-top: 35px;
  font-size: 16px;
  line-height: 1.25;
}

.setup ol li code {
  font-size: 14px;
}

div#stylitics-featured-shops-target {
  max-width: 1220px;
  margin: auto;
}

.dropdown {
  position: relative;
  width: 400px;
  margin-left: auto;
  display: block;
}

@media (max-width: 550px) {
  header {
    flex-direction: column;
  }

  .dropdown {
    margin: 30px auto 0;
    width: 90%;
  }
}

.dropbtn {
  color: #0f0f0f;
  padding: 12px 16px;
  font-size: 18px;
  line-height: 24px;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  transition: border-radius 0.15s ease-out 40ms;
  position: relative;
  background: #f9f9f9;
  box-shadow: 6px 6px 12px #cccccc;
  outline-offset: -4px;
}

.dropbtn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease-in-out;
  border: solid #e2e2e2;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.dropbtn a {
  font:
    16px Arial,
    sans-serif;
}

.dropdown-content {
  position: absolute;
  background: #f9f9f9;
  z-index: 198;
  max-height: 0;
  width: 100%;
  transition: max-height 0.15s ease-out;
  overflow: hidden;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 6px 6px 12px #cccccc;
}

.dropdown-content a {
  color: black;
  background-color: #f9f9f9;
  padding: 8px 12px;
  margin: 4px;
  text-decoration: none;
  display: block;
  font:
    16px Arial,
    sans-serif;
  text-align: left;
  border-bottom: 1px solid #efeeee;
}

a.nav-active {
  text-decoration: underline;
}

.dropdown:where(:hover, :focus-within) .dropdown-content {
  max-height: 600px;
  transition: max-height 0.25s ease-in;
}

.dropdown-content a:where(:hover, :focus, :active, :focus-within),
.dropbtn:where(:hover, :focus, :active) ~ .dropdown-content a:where(:hover, :focus, :active) {
  background-color: #e2e2e2;
}

.dropdown:where(:hover, :focus-within) .dropbtn {
  background-color: #f9f9f9;
  transition: max-height 0.25s ease-in;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  text-decoration: underline;
}

.dropbtn:where(:hover, :focus-within)::after {
  transform: translateY(-50%) rotate(225deg);
}
