@import url("https://fonts.googleapis.com/css2?family=Playwrite+GB+J+Guides:ital@0;1&display=swap");

* {
  font-family: "Playwrite GB J Guides", cursive;
  font-weight: 400;
  font-style: normal;
}
body {
  margin: 0;
  padding: 48px 80px;
  font-family: system-ui, sans-serif;
  transition: background 0.8s ease;
  line-height: 1.6;
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: #eee;
}

* {
  box-sizing: border-box;
}

#curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #6b0000 0px,
    #8b0000 20px,
    #a52a2a 40px,
    #8b0000 60px,
    #6b0000 80px,
    #4b0000 100px,
    #6b0000 120px,
    #8b0000 140px,
    #a52a2a 160px,
    #8b0000 180px,
    #6b0000 200px
  );
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.8s ease;
}

pre {
  background: transparent;
  padding: 20px;
  user-select: text;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

button {
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

#copyBtn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  padding: 16px;
  background: ivory;
  border: 2px solid #6b0000;
  color: #6b0000;
  font-family: revert;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#copyBtn:hover {
  box-shadow: 0 2px 8px rgba(113, 113, 113, 0.3);
}

ol {
  margin-top: 16px;
}

::selection {
  background: #bbff00cc;
  color: #000;
}

::-moz-selection {
  background: #73ff00;
  color: #000;
}

#guide-box {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: ivory;
  border: 2px solid #6b0000;
  padding: 20px;
  font-family: revert;
  font-size: 12px;
  line-height: 1.6;
  color: #6b0000;
  z-index: 1000;
}
#guide-box * {
  font-family: revert;
}

#guide-box h2 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b0000;
  border-bottom: 2px solid #6b0000;
  padding-bottom: 8px;
}

#guide-box ol {
  margin: 0;
  padding-left: 20px;
}

#guide-box li {
  margin-bottom: 8px;
}

#guide-box strong {
  color: #8b0000;
}

#langLink,
#guideToggle {
  background: transparent;
  border: 1.5px solid #6b0000;
  color: #6b0000;
  font-family: revert;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

#langLink:hover,
#guideToggle:hover {
  background: #6b0000;
  color: ivory;
}
