/* Reset & Base */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

/* Text selection color */
::selection {
  background-color: #00ff00;
}
::-moz-selection {
  background-color: #00ff00;
}

::webkit-selection {
  background-color: #00ff00;
}

/* Base layout */
.body {
  position: relative;
  max-width: 100vw;
  height: 100%;
  overflow: hidden;
}
hr {
  border: none; /* Remove default border */
  height: 2px; /* Set desired height */
  background-color: black; /* Set background color */
  width: 50%;
  margin-left: auto;
  margin-right: 0;
}
/* Header */
header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  background-color: #eee;
  display: flex;
  padding-top: 0.4rem;
  padding-bottom: 0rem;
}

.container-fluid,
.row {
  display: flex;
  flex-wrap: wrap;
  width: 100vw;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 100%;
}

.site-title {
  padding-left: 1rem;
}

#clock {
  font-family: "TWK Continental", sans-serif;
  font-size: 1.4em;
  font-weight: 500;
  color: black;
  padding: 0.2rem 2.1rem 0 0;
  text-align: right;
}

.location {
  padding-left: 0;
  padding-top: 0.05rem;
}

.mail {
  text-align: right;
  padding-right: 1vw;
}

/* Table of content */
#text {
  font-family: "TWK Continental", sans-serif;
  font-size: 1.5em;
  font-weight: 500;
  color: black;
  line-height: 1;
  text-align: left;
  margin-top: 2.5rem;
  padding-left: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

/* Column Left */
#column-left {
  position: fixed;
  width: 47vw;
  max-height: 100vh;
  bottom: 0;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

#description-text {
  top: 0;
  max-width: 48vw;
  background-color: #eeeeee;
}

/* Project Layout */
.image-container,
.image-container-start {
  margin-top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 4rem 0 5rem 0;
}

.image-container-start {
  padding-top: 3rem;
}
.image-container-contact {
  padding: 4rem 0 0 0;
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.entry {
  margin-bottom: 0.2rem;
}

.title {
  font-weight: bold;
  width: 100%;
  padding-top: 0.1rem;
}

.subtitle {
  width: 100%;
}

.year {
  float: right;
  padding: 0;
}

.footer-credit {
  float: right;
}

/* Column Right */
#column-right {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: -1;
  scroll-snap-type: y proximity;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

#column-right img {
  z-index: -1;
  padding-left: 50vw;
  width: 49vw;
  padding-bottom: 0.4rem;
  margin: 0;
}

.caption,
.caption-center,
.caption-left,
.caption-type {
  padding-left: 50vw;
  width: 49vw;
  text-align: left;
}

.caption {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.title-caption {
  padding-top: 0.5rem;
}

.subtitle-head {
  font-family: "TWK Continental", sans-serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: black;
  line-height: 1;
  text-align: left;
  margin: 0;
  padding-bottom: 0.8rem;
}

.contact[src*="titles-13_eibxgd"] {
  padding-top: 4rem;
}

.footer-container-left {
  display: block;
  position: relative;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.footer-container-right {
  display: none;
}

/* ScrollSpy */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  width: 100%;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
  z-index: 10;
}

.nav-link {
  text-decoration: none;
  transition: opacity 0.3s ease;
  color: #545454 !important;
  display: block;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.nav-link:visited {
  opacity: 0.7;
}
.nav-link:hover,
.nav-link:active,
.nav-link.active {
  opacity: 1;
  color: #545454 !important;
}

.nav-link.active .title {
  color: #545454;
  opacity: 1;
}

.nav-link.active .contact {
  color: #545454;
  opacity: 1;
}

.contact {
  color: black;
}

/* Custom scrollbar */
#column-right::-webkit-scrollbar {
  width: 8px;
}

#column-right::-webkit-scrollbar-track {
  background: transparent;
}

#column-right::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  border: 2px solid transparent;
}

#column-right::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Add this before the media query section */

/* Responsive Styles */
@media screen and (max-width: 1080px) {
  html,
  body {
    width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
  }
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }
  main {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  header,
  .site-header {
    padding: 0 0.4rem;
    height: auto;
  }

  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .site-title {
    padding: 0rem;
  }

  .mail {
    text-align: right;
    margin-right: 0.4rem;
  }

  .col-time,
  .col-location {
    display: none;
  }

  #column-left {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding: 0 0.5rem 4rem 0.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 100;
  }

  #column-right {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0rem 0.5rem 0rem 0.5rem;
    order: 2;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
  }

  #column-right img {
    padding-left: 0.01rem;
    padding-right: 0.01rem;
    width: 100%;
    display: block;
  }

  .image-container-contact {
    padding: 1rem 0rem 0rem 0rem;
    margin: 0;
    width: 100%;
  }

  .image-container,
  .image-container-start {
    padding: 1rem 0rem 0.8rem 0rem;
    margin: 0;
    width: 100%;
  }

  .image-container img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
  }

  .section {
    padding: 0rem 0 0 0;
  }
  section {
    min-width: 100vw;
    min-height: 100vh;
    padding: 0rem 0 0 0;
    margin: 0;
  }

  .caption,
  .caption-center,
  .caption-left {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .subtitle-head {
    font-size: 1.2rem;
    padding: 0 0 0.4rem 0;
    text-align: center;
  }
  #description-text {
    background-color: #eeeeee;
    width: 100%;
    padding-top: 1rem;
  }
  #text {
    font-size: 1.2rem;
    margin: 0;
    padding: 0rem 1rem 0 0.3rem;
    line-height: 1.8rem;
    background-color: #eeeeee;
    position: fixed;

    width: 100%;
  }
  .entry {
    width: 100%;
    position: relative;
    overflow: hidden;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 0.42rem;
    line-height: 0.2rem;
    font-weight: 600;
    padding: 0.1rem 0;
    opacity: 1;
  }

  h3 {
    font-size: 1.2rem;

    line-height: 1.2rem;
    padding: 0.1rem 0;
    opacity: 1;
  }

  h4 {
    font-size: 0.8rem;
  }

  hr {
    border: none; /* Remove default border */
    height: 1px; /* Set desired height */
    background-color: black; /* Set background color */
    width: 100%;
  }

  .year {
    display: none;
  }

  #nav {
    padding: 0 0rem;
    width: 100%;
  }

  .nav-link {
    opacity: 1;
    padding-bottom: 0.1rem;
  }

  .nav-link.active {
    opacity: 1;
  }

  /* Email copy */
  .copy-email {
    cursor: pointer;
    position: relative;
    display: inline-block;
  }

  .copy-email:hover {
    opacity: 0.6;
  }

  #copy-message {
    color: #000;
    opacity: 0.9;
    transition: all 0.3s ease;
  }

  .footer-container-left {
    display: none;
  }

  .footer-container-left {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0.4rem 1rem 0.4rem;
    z-index: 9999;
    background-color: #eeeeee;
  }

  .footer-container-left h4 {
    position: relative;
    z-index: 2001;
  }

  .footer-container-left a {
    position: sticky;
    z-index: 2001;
  }

  .footer-container-left .location-link {
    color: inherit;
    text-decoration: none;
  }

  #column-left {
    padding-top: 4rem;
  }

  a[titles-13_udesbf] {
    padding-top: 4rem;
    padding-bottom: 0;
  }

  .section:first-of-type {
    margin-top: 2.5rem;
  }

  .section:first-of-type .image-container {
    padding-top: 0;
  }

  .section {
    scroll-snap-align: start;
    scroll-margin-top: 3rem;
  }

  #column-right {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    padding-top: 0;
  }

  #column-right .section {
    scroll-snap-align: end;
    scroll-margin-top: 3rem;
  }
  #column-right {
    scroll-behavior: smooth;
  }
  #column-right {
    will-change: scroll-position;
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  /* Scroll to top button */
  .scroll-to-top {
    display: block;
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
    z-index: 2000;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .scroll-to-top::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #eeeeee;
    border-left: 2px solid #eeeeee;
    transform: translate(-50%, -30%) rotate(45deg);
  }
}
