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

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

/* Regular */
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-SemiBold-32863c23.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Italic */
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-Italic-067cc3a5.ttf") format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Thin */
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-Thin-612b6db2.ttf") format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-ThinItalic-5dad66e4.ttf") format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* ExtraLight */
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-ExtraLight-b95de9d0.ttf") format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-ExtraLightItalic-07a7ca4f.ttf") format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-Light-682f1b40.ttf") format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url("/assets/Barlow-LightItalic-ad34efb8.ttf") format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-Medium-f7b0acdc.ttf") format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-MediumItalic-7561fefc.ttf") format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* SemiBold */
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-SemiBold-32863c23.ttf") format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-SemiBoldItalic-e2dc1859.ttf") format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-Bold-8cede6c0.ttf") format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-BoldItalic-62fe9622.ttf") format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ExtraBold */
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-ExtraBold-43a65ab2.ttf") format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-ExtraBoldItalic-a0ac5375.ttf") format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Black */
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-Black-1c92e33e.ttf") format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: font-url("/assets/Barlow-BlackItalic-6127e0a3.ttf") format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

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;

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

  --animate: 200ms;
}

.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;
}

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

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  height: 100%;
  font-family:
    Barlow,
    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;
  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);
}

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: 1.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: 1.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);
}

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-dark);
  opacity: 0.8;
}

.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-light);
  fill: none;
  stroke-width: 30px;
}

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

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

.hidden {
  display: none;
}

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

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

.button:hover {
  opacity: 0.8;
}

.danger {
  background: #F08080;
}
