* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: #fff;
  color: #333;
  font-family: Helvetica, sans-serif;
  font-variant-ligatures: common-ligatures;
  word-break: break-all;
  overflow-wrap: anywhere;
}

body.detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: opacity .5s ease-out;
}

a {
  color: #333;
  text-decoration: none;
  transition: opacity .2s ease-out;
}

a:hover {
  opacity: .75;
}

.thankyou {
  position: absolute;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1.5em;
  width: fit-content;
  top: 0;
  left: 0;
  font-size: 0.75rem;
  line-height: 1;
  z-index: 1;
}

.thankyou .remembering {
  padding: 1em 3em;
  background-color: #f00;
  color: #fff;
  border-bottom-right-radius: .3em;
}

.thankyou .remembering span {
  font-family: "Damion", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2em;
}

.thankyou strong {
  padding-left: 0.5em;
  display: inline-block;
  font-family: Helvetica, monospace;
  font-size: 3.2em;
}

.thankyou .tagline {
  color: #f00;
  font-weight: bold;
  font-style: normal;
  font-size: 1.5em;
  line-height: 1.1;
}


header {
  padding: 20em 6em 0 6em;
}

.indicator {
  position: relative;
  width: .5em;
  height: 12em;
  margin: 5em auto 0 auto;
  overflow: hidden;
}

.indicator div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #f00;
  animation: 2s infinite anim-indicator ease-out;
  
}

@keyframes anim-indicator {
    0% { transform: translate(0, -100%); opacity: 0; }
    1% { transform: translate(0, -100%); opacity: 1; }
   49% { transform: translate(0,  100%); opacity: 1; }
  100% { transform: translate(0,  100%); opacity: 0; }
}

.top h1 {
  display: flex;
  flex-direction: column;
  gap: 2em;
  font-size: min(.50vw, 16px);
}

.line {
  display: block;
  letter-spacing: -0.03em;
  line-height: 1;
  text-indent: -0.075em;
}

.line span {
  vertical-align: middle;
}

.line strong {
  color: #f00;
}

.line1 {
  font-size: 16em;
}

.line2 {
  margin-top: -0.3em;
  font-size: 12em;
}

.line3 {
  font-size: 6em;
}

.top main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20rem;
  padding: 6rem;
}

footer {
  padding: 16rem 0;
  border-bottom: 4rem solid #f00;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5em;
  text-align: center;
}

.avatar img {
  width: 20em;
  height: 20em;
  margin-bottom: 2em;
  border-radius: 10em;
  overflow: hidden;
}

.id {
  font-size: 5em;
}

.id a {
  display: inline-block;
  text-indent: -0.1em;
}

.id span {
  vertical-align: middle;
}

.profession {
  font-size: 2em;
}

.list section {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.list h2 {
  display: flex;
  flex-direction: column;
  gap: 6em;
  font-size: min(.50vw, 16px);
}

.list h2 span {
  font-size: 10em;
  letter-spacing: -0.03em;
  text-indent: -0.075em;
}

.list h2::after {
  content: '';
  display: block;
  width: 8em;
  height: .75em;
  background-color: #f00;
}

.back2top {
  font-size: 1rem;
}

.back2top a {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 0.5em;
  font-size: 3em;
  font-weight: bold;
  line-height: 1;
}
.back2top strong {
  color: #f00;
}

.back2top span {
  color: #333;
}

.list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 8rem 2rem;
}

.list li {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 14rem;
  padding-bottom: 3em;
  list-style-type: none;
  transition: transform .2s ease-out;
}

.list li:hover {
  transform: scale(1.05, 1.05);
}

.list li a {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: opacity .2s ease-out;
}

.list li a:hover {
  opacity: .75;
}

.list li a::after {
  content: 'View Code';
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 7em;
  padding: .2em 0;
  background-color: #f00;
  color: #fff;
  border-radius: .2em;
  line-height: 1;
  text-align: center;
}

.list time {
  color: #aaa;
  font-size: 0.75em;
  line-height: 1;
}

.list img {
  width: 100%;
  height: auto;
  margin-bottom: 1em;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

.list li a span {
  line-height: 1.25;
  font-size: 1.2em;
}

.detail main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1em;
  min-height: 100%;
  padding: 1em;
}

.preview {
  display: flex;
  flex-direction: row;
  gap: 3em;
}

.overview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2em;
}

.overview h1 {
  margin-bottom: .1em;
  font-size: 2.5em;
  line-height: 1.25;
}

.overview time {
  margin-bottom: 0.5em;
  color: #aaa;
}

.generatedby {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  background-color: #333;
  color: #ccc;
  border-bottom-right-radius: .3em;
  font-size: 1rem;
}

.generatedby span,
.generatedby strong {
  font-size: 1em;
  line-height: 1;
  font-weight: normal;
}

.generatedby span {
  padding: .3em 1em;
  background-color: #f00;
  color: #fff;
}

.generatedby strong {
  padding: 0 1em;
  letter-spacing: .04em;
}

.forkedfrom {
  margin-bottom: 3rem;
  font-size: 1.4rem;
  color: #aaa;
}

.description {
  max-width: 720px;
  font-size: .8rem;
}

.copyright,
.all,
.license {
  font-size: .75rem;
  color: #aaa;
}

.fullscreen {
  display: inline-block;
  width: fit-content;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: .5em 2em;
  background-color: #f00;
  color: #fff;
  border-radius: .25em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.iframe {
  margin: 3em 0;
}

.iframe iframe {
  background-color: #fff;
  border-style: none;
  border: 1px solid #aaa;
  border-radius: .5em;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, .2);
}

.editor {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 1px;
  height: 100%;
  min-height: 600px;
  padding-bottom: 1em;
}

.editor div {
  position: relative;
  width: 33%;
  height: 100%;
}

.label {
  position: absolute;
  top: -0.2em;
  left: -0.2em;
  padding: 0.2em 1em;
  background-color: #f00;
  color: #fff;
  border-radius: 0 .2em .2em 0;
  font-family: monospace;
  font-size: 100%;
  line-height: 1;
}

textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10em;
  margin: 1px;
  padding: 1.25em .5em;
  background-color: #212;
  color: #ccc;
  border-style: none;
  border-radius: .5em;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, .2);
  font-family: Menlo, "Roboto Mono", "Droid Sans Mono", "Lucida Sans Typewriter", "Courier New", Courier, monospace;
  tab-size: 4;
  outline: none;
}

.detail .list {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  display: none;
  flex-direction: column;
  gap: 20rem;
  padding: 8rem;
  background-color: #fff;
  overflow: auto;
  opacity: 0;
  z-index: 1;
  transition: opacity .2s ease-out;
}

.detail[data-nav-show='1'] .list { display: flex; }
.detail[data-nav-fade='1'] .list { opacity: 1;    }

.hamburger {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  width: 4em;
  height: 4em;
  padding: 1.3em 1.2em;
  background-color: #f00;
  color: #fff;
  border-bottom-left-radius: .3em;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background-color: #fff;
  transition: width .2s ease-out;
}

.hamburger span {
  height: .2em;
}

.hamburger::before,
.hamburger::after {
  height: .22em;
}

.hamburger::before,
.hamburger::after {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center center;
  width: 0;
}

.hamburger::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.hamburger::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger span:nth-of-type(1) { width: 100%; }
.hamburger span:nth-of-type(2) { width:  60%; }
.hamburger span:nth-of-type(3) { width:  80%; }

.hamburger:hover span:nth-of-type(1) { width:  80%; }
.hamburger:hover span:nth-of-type(2) { width: 100%; }
.hamburger:hover span:nth-of-type(3) { width:  60%; }

.hamburger:active span:nth-of-type(1) { width: 100%; }
.hamburger:active span:nth-of-type(2) { width: 100%; }
.hamburger:active span:nth-of-type(3) { width: 100%; }

[data-nav-show='1'] .hamburger span,
[data-nav-show='1'] .hamburger:hover span,
[data-nav-show='1'] .hamburger:active span {
  width: 0;
}

[data-nav-fade='1'] .hamburger span,
[data-nav-fade='1'] .hamburger:hover span,
[data-nav-fade='1'] .hamburger:active span {
  width: 0;
}

.hamburger::before,
.hamburger::after {
  width: 0;
}

[data-nav-show='1'] .hamburger:hover::before,
[data-nav-show='1'] .hamburger:hover::after {
  width: 0;
}

[data-nav-fade='1'] .hamburger::before,
[data-nav-fade='1'] .hamburger::after {
  width: 2em;
}

[data-nav-fade='1'] .hamburger:hover::before,
[data-nav-fade='1'] .hamburger:hover::after {
  width: 2.3em;
}

[data-nav-fade='1'] .hamburger:active::before,
[data-nav-fade='1'] .hamburger:active::after {
  width: 2.5em;
}

@media screen and (max-width: 1280px) {
  .overview .title {
    font-size: 2em;
  }
  .overview .forkedfrom {
    font-size: 1em;
  }
}

@media screen and (max-width: 768px) {
  .indicator {
    width: .2em;
    height: 10em;
    margin: 3em auto 0 auto;
  }
  .thankyou {
    font-size: 1.8vw;
  }
  header {
    padding: 50vw 6vw 8vw 6vw;
  }
  .top h1 {
    font-size: .64vw;
  }
  .detail main {
    min-height: auto;
    padding: 5vw;
  }
  .top .list,
  .detail .list {
    gap: 40vw;
    padding: 6vw;
  }
  .list h2 {
    font-size: .9vw;
  }
  .list section {
    gap: 10vw;
  }
  .list ul {
    gap: 16vw 6vw;
  }
  .list li {
    width: 40vw;
    font-size: 3vw;
  }
  .back2top {
    font-size: 2vw;
  }
  footer {
    padding-top: 50vw;
    padding-bottom: 60vw;
    border-bottom-width: 6vw;
    font-size: 2vw;
  }
  .preview {
    flex-direction: column;
    gap: 0;
  }
  .iframe {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
  }
  .iframe iframe {
    transform-origin: 0 0;
    transform: scale(var(--iframe-scale), var(--iframe-scale));
  }
  .generatedby {
    font-size: 3vw;
  }
  .overview {
    padding-right: 0;
  }
  .overview .title {
    font-size: 2em;
  }
  .overview .forkedfrom {
    font-size: 1em;
  }
  .editor {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0.5em;
  }
  .editor div {
    width: 100%;
    height: 50vw;
  }
  .hamburger {
    font-size: 3vw;
  }
}
