.toggle-checked:not(:checked) ~ .toggle-target {
  display: none;
}
.toggle-checked:checked ~ .toggle-target {
  display: block;
}

.toggle-unchecked:not(:checked) ~ .toggle-target {
  display: block;
}
.toggle-unchecked:checked ~ .toggle-target {
  display: none;
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04) !important;
}

/* shadow-7 */

.aspect-ratio--third { padding-bottom: calc(100%/3); }
@media screen and (min-width: 50em) {
  .aspect-ratio--third-l { padding-bottom: calc(100%/3); }
}

.aspect-ratio--half { padding-bottom: calc(100%/2); }
@media screen and (min-width: 50em) {
  .aspect-ratio--half-l { padding-bottom: calc(100%/2); }
}

.previewWrapper {
  width: 360px;
  padding: 20px;
  margin: 0 auto;
  background-image: url(/assets/images/iphone-frame.png);
  background-size: contain;
  position: relative;
}

.previewNotch {
  width: 160px;
  height: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: black;
  border-radius: 0 0 12px 12px;
  border-radius: 0 0 12px 12px;
}

.previewWrapper * {
  transition: all 0.3s ease-out;
}

.previewWindow {
  color: #171717;
  width: 320px;
  height: 680px;
  overflow-y: scroll;
  font-size: 16px;
  background: currentColor;
  position: relative;
  z-index: 0;
  border-radius: 2.125rem;
}

.previewWindow::-webkit-scrollbar {
  display: none;
}

.previewCover {
  width: 320px;
  height: 320px;
  position: absolute;
  overflow: hidden;
  z-index: -1;
}

.previewCoverOverlay {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}

.previewCoverImage {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  height: auto;
  width: auto;
  left: 50%;
  background-size: cover;
}

.previewTitle {
  color: #ffffff;
  margin-top: 320px;
}

.previewDescription {
  white-space: pre-line;
  padding: 0.5em 1rem;
  color: #919191;
  line-height: 1.5;
  margin: 0;
}

.previewLink {
  padding: 0.3em 10px;
  margin: 0;
  font-weight: bold;
  text-decoration: none;
  color: #EC9C12;
  line-height: 24px;
  font-size: 12px;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 8px),
    calc(100% - 15px) calc(1em + 8px),
    calc(100% - 2.5em) 1em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

select:focus {
  background-image:
    linear-gradient(45deg, green 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, green 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 15px) calc(1em + 8px),
    calc(100% - 20px) calc(1em + 8px),
    calc(100% - 2.5em) 1em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  border-color: green;
  outline: 0;
}
