* {
  /* border: 1px dotted red; */
  box-sizing: border-box;
}

:root {
  --deepest: #016b61;
  --deep: #70b2b2;
  --light: #9ecfd4;
  --lighter: #e5e9c5;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  /* padding-bottom: 3rem; */
  /* background-color: var(--lighter); */
  /* overflow: clip; */
}

nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 4rem;
  top: 2rem;
  z-index: 60;
  height: 14%;
  /* border: 1px solid green; */
}

nav > a {
  all: unset;
  color: black;
  font-family: "Jetbrains Mono", monospace;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  width: fit-content;
  transition: color 0.3s ease;
  /* transition to inverted colors should be smooth*/
}

/* inverted nav should have white text */
nav.inverted > a {
  color: #fff;
  text-shadow: 2px 0px 6px #000, -1px -1px 0.1rem orangered;
}

nav > a:hover {
  font-weight: 800;
}

.snap-container {
  scroll-snap-type: y mandatory;
  /* enable snapping */
  height: 100vh;
  overflow-y: scroll;
  font-family: "Jetbrains Mono", monospace;
  font-size: 0.9rem;
}

.work,
.gallery,
.about{
  scroll-snap-align: start;
  /* define as snap point */
  height: 100vh;
}

/* ------------ Work Cube ----------- */
.work {
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-cube-layout {
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.scene-work {
  perspective: 500px;
  width: 15rem;
  height: 15rem;
  /* position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); */
}

.radio-group {
  display: flex;
  flex-direction: column;
  /* width: fit-content; */

  label {
    width: fit-content;
  }
}

/* may delete below */
input[type="radio"] {
  /* remove te default circular appearance */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* cursor: pointer; */

  /* margin: unset;
  margin-inline-end: 0.3rem;
  width: 10px;
  height: 10px;
  border: 1px solid #333;
  border-radius: 60%;
  cursor: pointer; */
}

.custom-radio-label {
  cursor: pointer;
}

.custom-radio-label:has(input[type="radio"]:checked) {
  font-weight: 700;
}

/* #work-title {
  
} */

.bottom-text {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  width: 30ch;
  display: flex;
  gap: 1rem;

  & > * {
    margin: unset;
    padding: unset;
  }
}

#work-cube {
  transform-style: preserve-3d;
  position: relative;
  /* transform: translateZ(7.5rem); */
  transition: transform 1s;
  width: 100%;
  height: 100%;
  /* transform-origin: center; */
}

.face-work {
  width: 15rem;
  height: 15rem;
  position: absolute;
  background-color: #70b2b2a1;
  display: flex;
  align-items: center;
  padding: 0.3rem;
  border: 1px solid #213636;
}

.top-work {
  transform: rotateX(90deg) translateZ(7.5rem);
}

.left-work {
  transform: rotateY(-90deg) translateZ(7.5rem);
}

.right-work {
  transform: rotateY(90deg) translateZ(7.5rem);
}

.front-work {
  transform: rotateY(0deg) translateZ(7.5rem);
}

.back-work {
  transform: rotateY(-180deg) translateZ(7.5rem);
}

.bottom-work {
  transform: rotateX(-90deg) rotateZ(180deg) translateZ(7.5rem);
}

label {
  margin-right: 10px;
}

.show-left-work {
  transform: rotateY(90deg);
}

.show-front-work {
  transform: rotateY(0deg);
}

.show-right-work {
  transform: rotateY(-90deg);
}

.show-back-work {
  transform: rotateY(-180deg);
}

.show-bottom-work {
  transform: rotateZ(-180deg) rotateX(90deg);
}

/* ----------- Gallery ------------- */
.gallery {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-text {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  width: 30ch;
}

.htiles {
  position: absolute;
  left: 2rem;
  width: 24rem;
  height: 100%;
  background-color: unset;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  z-index: 100;
  transform: rotateX(-90deg) translateZ(9rem);

  hr {
    border: 0.1rem solid rgba(217, 212, 212, 0.485);
    width: 100%;
    padding: unset;
    margin: unset;
  }
}

.vtiles {
  position: absolute;
  left: 2rem;
  width: 24rem;
  height: 100%;
  background-color: unset;
  display: flex;
  justify-content: space-evenly;
  z-index: 100;
  transform: rotateX(-90deg) translateZ(9rem);

  hr {
    border: 0.1rem solid rgba(217, 212, 212, 0.485);
    padding: unset;
    margin: unset;
  }
}

.scene-gallery {
  height: 28rem;
  width: 28rem;
  margin: 0 auto;
  /* overflow: clip; */
  /* background-color: #d9d9d9; */
  position: relative;
  perspective: 450px;
  transform-origin: center;
  /* box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.25); */
}

.room {
  position: absolute;
  /* left: 4rem; */
  transform: rotateX(3deg);
  transform-style: preserve-3d;
  /* top: 6rem; */
  transition: transform 1s;
  animation-timing-function: cubic-bezier(0.7, 0, 1, 0.5);
  width: 100%;
  height: 100%;
  /* z-index: 20; */
}

.gallery-face {
  position: absolute;
  width: 100%;
  height: 100%;
  /* border: 0.08rem solid rgb(0, 0, 0); */
  /* background-color: var(--deep); */
}

.wall {
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  flex-flow: row-reverse wrap;
  justify-content: center;
  align-items: center;
  /* align-content: stretch; */
  gap: 1rem;
  /* color: white; */
  background-color: unset;
  /* height: 100%; */

  img {
    height: 30%;
    width: auto;
    object-fit: cover;
    border: 3px solid black;
  }
}

.wall-print {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
}

#stool {
  position: absolute;
  height: 4rem;
  width: auto;
  transform: translateZ(3rem) translateY(18rem) translateX(6rem) scale(1.5);
}

#mailbox {
  position: absolute;
  height: 4rem;
  width: auto;
  transform: translateZ(-7.5rem) translateY(16.4rem) translateX(5rem) scale(2.5);
}

#chandelier {
  position: absolute;
  height: 4rem;
  width: auto;
  transform: translateZ(6rem) translateY(7.5rem) translateX(12.5rem) scale(2);
}

/* .face-hide {
  opacity: 0;
} */

.face-show {
  opacity: 1 !important;
}

/*------------ gallery -------------*/
/* .front {
  transform: rotateY(0) translateZ(9rem);
} */
.top-gallery,
.bottom-gallery {
  width: 24rem;
  height: 28rem;
  left: 2rem;
}

.left-gallery,
.right-gallery {
  width: 28rem;
  height: 18rem;
  top: 5rem;
  background-color: rgba(228, 227, 227, 0.734);
}

.top-gallery {
  background-color: #629c9c;
  transform: rotateX(90deg) translateZ(9rem);
}

.bottom-gallery {
  background-color: black;
  transform: rotateX(-90deg) translateZ(9rem);
}

.left-gallery {
  transform: rotateY(-90deg) translateZ(12rem) scaleX(-1);
  direction: rtl;
  color: black;
}

.right-gallery {
  transform: rotateY(90deg) translateZ(12rem) scaleX(-1);
  direction: ltr;
  color: black;
}

.back-gallery {
  width: 24rem;
  height: 18rem;
  left: 2rem;
  top: 5rem;
  background-color: var(--deep);
  /* border-block-start: 1px solid #2136363d; */
  transform: rotateY(180deg) translateZ(14rem) scaleX(-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

/* ------------- Bio --------------- */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block-start: 4rem;
  position: relative;
}

.bio {
  width: 30%;
  margin: 0 auto;
  gap: 4rem;
  text-align: center;
}

#orangeText {
  text-decoration: underline;
  color: var(--mint);
  display: inline-flex;
  align-items: center;

  &:hover {
    font-weight: 700;
  }
}

.bio-stack {
  border: 1px dashed black;
  margin: 2rem;
  height: 3rem;
  width: 10rem;
}

#restore-box {
  cursor: pointer;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: unset;
  text-align: center;
  font-weight: 300;
}

#restore-box:hover {
  background-color: rgba(255, 68, 0, 0.234);
  font-weight: 500;
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.about-pillar > a:hover {
  font-weight: 900;
}

/* .squeeze {
  display: flex;
  flex-direction: column;
  gap: 0;

  margin: 2rem;
  align-items: center;
} */

.bio-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
  color: inherit;
}

.draggable-image {
  position: absolute;
  background-color: black;
  border: 3px solid white;
  box-shadow: 8px 9px 25px -5px rgba(0, 0, 0, 0.17);
  -webkit-box-shadow: 8px 9px 25px -5px rgba(0, 0, 0, 0.17);
  -moz-box-shadow: 8px 9px 25px -5px rgba(0, 0, 0, 0.17);
  cursor: grab;
  touch-action: none;
  max-height: 14rem;
  /* transition: transform 0.4s; */
  /* Prevent default browser actions on touch devices */
}

/* .draggable-image: {
  transform: rotateY(-10deg);
} */

#bio-image1 {
  bottom: 6rem;
  left: 12%;
  transform: rotate(-8deg);
  z-index: 1;
}

#bio-image2 {
  bottom: 23rem;
  left: 20%;
  transform: rotate(3deg);
  z-index: 2;
}

#bio-image3 {
  bottom: 22rem;
  right: 10%;
  transform: rotate(-8deg);
  z-index: 3;
}

#bio-image4 {
  bottom: 10rem;
  right: 15%;
  transform: rotate(5deg);
  z-index: 4;
}

#posts-container {
  width: 60%;
  margin: 0 auto;
  position: relative;
  top: 8rem;
  padding-block-end: 3rem;

  h2 {
    font-family: "Jetbrains Mono", monospace;
    font-size: 1.5rem;
  }

  #posts-list {
    display: flex;
    flex-direction: column;
    /* gap: 0.1rem; */
  }

  .posts-date {
    font-weight: 700;
    font-family: "Jetbrains Mono", monospace;
  }

  .posts-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 0.9;
  }

  /* .posts-title:hover{
    font-weight: 900;
  } */

  a {
    text-decoration: none;
    color: black;
    font-family: "Epilogue", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    /* font-weight: 600; */
  }

  a:hover {
    color: var(--deepest);
    /* font-weight: 900; */
  }
}

#big-name {
  color: #354c4c;
  font-family: "Epilogue", sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 5rem;
  line-height: 0.86;
  text-align: center;
  margin: 0;
  /* margin-block: 2rem; */
}

.no-scrollbar {
  /* 1. For IE and Edge Legacy */
  -ms-overflow-style: none;

  /* 2. For Firefox */
  scrollbar-width: none;

  /* Ensure content is scrollable */
  overflow-y: scroll;
}

/* 3. For Chrome, Safari, and newer Edge */

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.story-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  margin: 0 auto;
  position: relative;
  top: 8rem;
  padding-block-end: 5rem;
  gap: 2rem;

  .story-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .story-date {
    font-weight: 700;
    font-family: "Jetbrains Mono", monospace;
  }

  .story-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 0.9;
    font-family: "Epilogue", monospace;
    text-transform: uppercase;
  }

  .displayImage {
    position: relative;
    width: 80vw;
    margin-left: calc((80vw - 100%) / -2);
    height: auto;
    max-width: unset;
    display: block;
    object-fit: cover;
  }

  .story-body {
    font-family: "Jetbrains Mono", monospace;
    font-weight: 500;
  }
}

.project-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  margin: 0 auto;
  position: relative;
  top: 8rem;
  left: 5%;
  padding-block-end: 5rem;
  gap: 2rem;

  .project-year {
    color: orangered;
    position: absolute;
    right: -6%;
    top: 0%;
    font-weight: 900;
    font-size: 1.1rem;
    font-family: "Epilogue", sans-serif;
    background: rgb(240, 241, 164);
    padding: 0.5rem;
    opacity: 0.65;
    border-radius: 0.1rem;
  }

  .project-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .project-summary {
    font-family: "Epilogue", sans-serif;
    line-height: 1.2;
  }

  .project-section {
    display: flex;
    position: relative;
    /* gap: 2rem; */
    justify-content: start;
    align-items: start;
  }

  .section-title {
    font-weight: 800;
    font-size: 1.2rem;
    position: absolute;
    left: -17.5%;
  }

  .project-date {
    font-weight: 700;
    font-family: "Jetbrains Mono", monospace;
  }

  .project-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 0.9;
    font-family: "Epilogue", monospace;
    color: orangered;
  }

  .project-body {
    font-family: "Jetbrains Mono", monospace;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .project-image {
    height: 7rem;
    max-width: auto;
    border-radius: 0.4rem;
    cursor: pointer;
  }
}

@media all and (max-width: 768px) {
  nav {
    left: 2rem;
  }

  .about, .work, .gallery{
    padding: 1rem;
  }

  .bio {
    width: 100%;
    top: 0;
  }

  .about {
    /* padding-block-start: unset; */
    justify-content: start;
    padding-block-start: 9rem;
  }

  #big-name {
    font-size: 3rem;
  }

  .draggable-image {
    max-height: 11rem;
  }

  #bio-image1 {
    bottom: 6rem;
    /* left: 2%; */
    transform: rotate(-8deg);
  }

  #bio-image2 {
    bottom: 6rem;
    left: 4%;
    transform: rotate(4deg);
  }

  #bio-image3 {
    bottom: 2rem;
    /* right: 5%; */
    transform: rotate(-8deg);
  }

  #bio-image4 {
    bottom: 11rem;
    /* right: 9%; */
    transform: rotate(5deg);
  }

  .work {
    /* position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column; */
    justify-content: start;
    padding: 1rem;
  }

  .work-cube-layout {
    position: relative;
    bottom: 3rem;
    flex-direction: column;
    gap: 2rem;
  }

  .bottom-text {
    position: static;

    /* bottom: 2rem;
    right: 4rem;
    width: 30ch; */
  }
}
