*,
::before,
::after {
  border: 0 solid #e5e7eb;
  box-sizing: border-box;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

section {
  margin-top: 1rem;
}

input:focus-visible,
form:focus-visible,
a:focus-visible {
  outline: 4px solid var(--blue);
  filter: none;
}

input:not([type="radio"]):not([type="checkbox"]) {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

:root {
  --black-light: #080808;
  --blue-light: #224f83;
  --grey-light: #cbd5e0;
  --hakuji-light: #f8f8f8;
  --sunglow-light: #ff7017;
  --white-light: #ffffff;
  --language-text-light: #ff7017;
  --language-text-border-light: #1a416e;

  --black-dark: #d5d5d5;
  --blue-dark: #ff7017;
  --grey-dark: #3f3f3f;
  --hakuji-dark: #181514;
  --sunglow-dark: #224f83;
  --white-dark: #f8f8f8;
  --language-text-dark: #224f83;
  --language-text-border-dark: #eb6410;

  --animate: 200ms;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  font-family:
    arial,
    ui-sans-serif,
    system-ui,
    sans-serif,
    Apple Color Emoji,
    Segoe UI Emoji,
    Segoe UI Symbol,
    Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 16px;
  line-height: 1.5;
  -moz-tab-size: 4;
  tab-size: 4;

  --black: var(--black-light);
  --blue: var(--blue-light);
  --grey: var(--grey-light);
  --hakuji: var(--hakuji-light);
  --sunglow: var(--sunglow-light);
  --white: var(--white-light);
  --language-text: var(--language-text-light);
  --language-text-border: var(--language-text-border-light);
}

.dark {
  --black: var(--black-dark);
  --blue: var(--blue-dark);
  --grey: var(--grey-dark);
  --hakuji: var(--hakuji-dark);
  --sunglow: var(--sunglow-dark);
  --language-text: var(--language-text-dark);
  --language-text-border: var(--language-text-border-dark);
}

html.dark svg.theme-icon {
  fill: #ffffff;
}

body {
  line-height: inherit;
  transition:
    background-color 0.5s ease,
    color 0.5s ease; /* Apply transition */
  margin: 0;
  background: var(--hakuji);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 1rem 1rem 1rem;
    z-index: 1;
}

svg {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
}

a {
  text-decoration: none;
}

a,
a:active,
a:visited {
  color: var(--black);
}

img,
video {
  height: auto;
  max-width: 100%;
  display: block;
}

p {
  font-size: 1rem;
  margin: 0;
  color: var(--black);
}

p:not(:first-child) + p:not(:last-child) {
  margin: 0.5rem 0;
}

code,
kbd,
pre,
samp {
  font-feature-settings: normal;
  font-size: 1em;
  font-variation-settings: normal;
  padding: 1rem;
  border-radius: 5px;
}

menu,
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row:hover {
  text-decoration-color: black;
}

.row a {
  padding: 5px 0;
  position: relative;
  transition: border-color 0.5s ease;
  width: 100%;
}

.row a:hover {
  color: var(--white);
}

.row a::before {
  background: var(--blue);
  bottom: 0;
  content: "";
  height: 100%;
  position: absolute;
  transition: all 0.2s ease;
  width: 0;
  z-index: -1;
}

.row a:hover::before {
  width: 100%;
}

.underline {
  text-decoration-line: underline;
  text-decoration-color: var(--black);
}

.underline:hover {
  text-decoration-color: var(--white);
}

html.dark .underline {
  text-decoration-color: var(--white);
}

html.dark .underline:hover {
  text-decoration-color: var(--white);
}

footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__content {
  display: flex;
  gap: 1rem;
}

.box-shadow {
  box-shadow: 8px 8px 0 var(--black);
  position: relative;
  width: calc(100% - 8px);
}

.back-link {
  font-weight: bold;
  text-decoration-line: underline;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  height: 60px;
  width: 100%;
  background: var(--hakuji-light);
  border-bottom: solid var(--hakuji-dark) 3px;
}

.lightbox.is-active {
  display: flex;
  flex-direction: column;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
}

.lightbox-counter {
  color: var(--hakuji-dark);
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 10px;
}

.lightbox-close {
  cursor: pointer;
}

.arrow-container {
  display: flex;
  gap: 20px;
}

.lightbox-arrow {
  cursor: pointer;
  user-select: none;
}

.lightbox-svg {
  stroke: var(--hakuji-dark);
  fill: var(--hakuji-light);
  stroke-width: 50px;
}

.lightbox-arrow-left {
  left: 20px;
}

.lightbox-arrow-right {
  right: 20px;
}

.hidden {
  display: none;
}

.button-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

.button {
  padding: 5px;
  border: 5px solid var(--black);
  background: var(--grey);
}

.button:hover {
  opacity: 0.8;
}

.danger {
  background: #F08080;
}
