@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One:wght@400');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');

/* Base Styles */
body {
  margin: 0;
  overflow: hidden;
  height: 100dvh;
  width: 100dvw;
  overscroll-behavior: none;
  touch-action: manipulation;
  position: relative;
}

#transform-root {
  height: 100%;
  width: 100%;
  transform-origin: left top;
}

#player-root {
  overflow: hidden;
  position: relative;
  height: 100%;
  overscroll-behavior: none;
  width: 100%;
}

/* Root View Container */
.root-view-container {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: 646px;
  height: 1077px;
  flex-flow: column;
  place-content: center;
  align-items: center;
  gap: 0px;
  padding: 0px;
  user-select: auto;
  opacity: 1;
  overflow: visible;
  clip: auto;
}

/* Page */
.page {
  position: relative;
  display: flex;
  outline: none;
  flex-direction: column;
  top: 0px;
  left: 0px;
  user-select: auto;
  background: transparent;
  opacity: 1;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 20px;
  padding-top: 50px;
}

main {
  height: 100%;
}


/* Main Section */
.main-section {
  position: relative;
  display: flex;
  outline: none;
  width: 100%;
  height: 1077px;
  justify-content: center;
  align-items: center;
  align-content: unset;
  gap: 0px;
  padding: 0px;
  order: 0;
  user-select: auto;
  background-color: transparent;
  opacity: 1;
  overflow: visible;
  clip: auto;
}

.section-inner {
  height: 100%;
  width: 646px;
  position: relative;
}

.section-box {
  background: rgb(255, 255, 255);
  border: 10px solid rgb(148, 168, 255);
  border-radius: 20px;
  position: relative;
}

.button {
  position: absolute;
  width: 229px;
  height: 38px;
  font-family: 'Bowlby One';
  font-size: 24px;
  font-weight: 400;
  border: 0.5px solid rgb(175, 175, 175);
  border-radius: 7px;
  background-color: rgb(255, 255, 255);
  color: rgb(76, 76, 76);
  cursor: pointer;
  --black-a1: rgba(0, 0, 0, 0.05);
  --black-a2: rgba(0, 0, 0, 0.1);
  --white-a2: hsla(0, 0%, 100%, 0.1);
  --white-a3: hsla(0, 0%, 100%, 0.15);
  --white-a4: hsla(0, 0%, 100%, 0.2);
  --white-a5: hsla(0, 0%, 100%, 0.3);
  --white-a7: hsla(0, 0%, 100%, 0.5);
  --white-a9: hsla(0, 0%, 100%, 0.7);
  --white-a3-p3: color(display-p3 1 1 1/0.15);
  --white-a9-p3: color(display-p3 1 1 1/0.7);
  --black-a2-p3: color(display-p3 0 0 0/0.1);
  --gray-a3: color(display-p3 0 0 0/0.063);
  --gray-a4: color(display-p3 0 0 0/0.09);
  --gray-a5: color(display-p3 0 0 0/0.122);
  --gray-a7: color(display-p3 0 0 0/0.192);
  --base-button-classic-box-shadow-top: inset 0 0 0 1px var(--gray-a4), inset 0 -2px 1px var(--gray-a3);
  --base-button-classic-box-shadow-bottom: inset 0 4px 2px -2px var(--white-a9), inset 0 2px 1px -1px var(--white-a9);
  --base-button-classic-after-inset: 2px;
  --accent-9: rgb(255, 255, 255);
  --accent-10: color-mix(in srgb, rgb(255, 255, 255) 80%, white);
  --accent-contrast: #fff;
  filter: none !important;
  position: absolute;
  background-color: var(--accent-9);
  z-index: 0;
  background-image: linear-gradient(to bottom, transparent 50%, var(--gray-a4)), linear-gradient(to bottom, transparent 50%, var(--accent-9) 80%);
  box-shadow: var(--base-button-classic-box-shadow-top), inset 0 0 0 1px var(--accent-9), var(--base-button-classic-box-shadow-bottom);
  --base-button-classic-active-padding-top: 2px;
}

.button::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  inset: 0;
  z-index: -1;
  border: var(--base-button-classic-after-inset) solid transparent;
  background-clip: content-box;
  background-color: inherit;
  background-image: linear-gradient(var(--black-a1), transparent, var(--white-a2));
  box-shadow: inset 0 2px 3px -1px var(--white-a4);
}

.button:hover::after {
  background-color: var(--accent-10);
  background-image: linear-gradient(var(--black-a2) -15%, transparent, var(--white-a3));
}

.button:active:not([data-state="open"], [data-disabled], :disabled) {
  background-color: var(--accent-9);
  background-image: linear-gradient(var(--black-a1), transparent);
  padding-top: var(--base-button-classic-active-padding-top);
  box-shadow: inset 0 4px 2px -2px var(--gray-a4), inset 0 1px 1px var(--gray-a7), inset 0 0 0 1px var(--gray-a5), inset 0 0 0 1px var(--accent-9), inset 0 3px 2px var(--gray-a3), inset 0 0 0 1px var(--white-a7), inset 0 -2px 1px var(--white-a5);
}

.button:active:not([data-state="open"], [data-disabled], :disabled)::after {
  box-shadow: none;
  background-color: inherit;
  background-image: linear-gradient(var(--black-a2), transparent, var(--white-a3));
}

.button:disabled {
  opacity: 50%;
  cursor: not-allowed;
}

.button {
  text-decoration: none;
  text-align: center;
}

.inline-project {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #3366FF;
  border-radius: 8px;
  padding: 2px 6px;
  font-family: 'Nunito';
  font-size: 14px;
  font-weight: 400;
  color: rgb(255, 255, 255);
  transition: transform 0.2s ease;
  transform: rotate(5deg);
}

.inline-project:hover {
  transform: rotate(-5deg);
}

#inline-project-link {
  text-decoration: none;
  color: inherit;
}

.transition-overlay {
    position: fixed;
    top: -45vh;
    left: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%);
    transform: translateY(100%);
    z-index: 9999;
    transition: transform 0.5s ease-in-out;
}

/* Header Styles */
#header-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#header-safe-zone {
    position: absolute;
    top: 0;
    left: 50%;
    width: 646px;
}

#header {
    height: 144px;
    box-sizing: border-box;
    position: relative;
}

#back-button {
    text-decoration: none;
    color: black;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    position: absolute;
    top: 20px;
    left: 15px;
}

#portfolio-title {
    font-size: 58px;
    font-family: 'Bagel Fat One', cursive;
    position: absolute;
    bottom: 10px;
    left: 15px;
}