:root {
  --active-dot-color: #000000;
  --font-system: -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body,
div {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  line-height: 1;
  scroll-behavior: smooth;
}

.page {
  width: 100%;
  height: 50%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

/* Page Visibility */
.page[hidden] {
  display: none !important;
}

/* Global Styles */
body {
  width: 100vw;
  height: 100vh;
  background-color: #F5F5F7;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  text-rendering: optimizeLegibility;
  font-family: var(--font-system);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Page Content */
.content-container {
  width: 90vw;
  height: 90vh;
  max-width: max(680px, 90vw);
  border-radius: 8px;
  overflow: visible;
  opacity: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translateY(0);
  filter: none;
  visibility: hidden;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

.content-container.loading {
  opacity: 0;
  transform: translateY(10px);
  filter: grayscale(100%) blur(4px);
}

.js-loading .content-container {
  visibility: hidden;
}

.top-content {
  width: 100%;
  height: 15%;
  display: flex;
}

/* Page Content */
.main-content {
  width: 100%;
  max-height: 20%;
  height: 20%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  cursor: default;
}

.main-content a {
  text-decoration: none;
  color: inherit;
}

.sub-content {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: row;
  gap: 10%;
}

.subsection2 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

@media (max-width: 640px) {

  html,
  body {
    width: 100%;
    min-height: 100%;
  }

  html {
    scroll-snap-type: y mandatory;
  }

  body {
    height: auto;
    min-height: 100svh;
    display: block;
    overflow-x: hidden;
  }

  .content-container {
    width: 100%;
    min-height: 100svh;
    height: auto;
    max-width: none;
    border-radius: 0;
    align-items: stretch;
  }

  .top-content {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    height: auto;
    min-height: 120px;
    padding: 24px 24px 0;
    background: #F5F5F7;
  }

  .main-content {
    height: auto;
    max-height: none;
  }

  .sub-content {
    width: 100%;
    height: auto;
    min-height: calc(100svh - 120px);
    display: block;
  }

  .subsection2 {
    width: 100%;
    min-height: calc(100svh - 120px);
    height: auto;
    display: block;
  }

  .page {
    width: 100%;
    min-height: calc(100svh - 120px);
    height: auto;
    scroll-snap-align: start;
    scroll-margin-top: 120px;
  }
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}