html {
  scroll-behavior: smooth;
}
body {
  background: #000;
  overflow-x: hidden;
}
.wrapper {
  min-height: 100vh;
  font-family: 'Roboto Slab', serif;
  font-weight: 300;
  color: #fff;
  position: relative;
}

.nav__wrapper {
  max-height: 100vh; /* Ensure nav does not exceed the viewport height */
  overflow-y: auto; /* Enables vertical scrolling when necessary */
}

span.fadein {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.socials img {
  color: #fff;
  width: 56px;
  height: 80px;
  padding: 10px;
}

section {
  height: 100vh;
  font-size: 40px;
  font-weight: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.section1 {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}
.section1 h2 {
  font-size: 32px;
  font-weight: 300;
  display: block;
  width: 100%;
  text-align: center;
}

section img {
  width: auto;
  padding-top: 40px;
  height: 64vh;
}
.nav__wrapper {
  position: fixed;
  height: 100vh; /* Adjust this */
  padding: 30px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  overflow-y: auto; /* Enable scrolling */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
  transition: transform 0.2s ease; /* Smooth transition for the transform */
}
.nav__wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome, Safari, and Opera */
}

.nav {
  margin: 0 0 0 30px;
}
.nav__counter {
  font-size: 24px;
  transition: all 0.15s ease-out;
}
.nav__title {
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 0.25em;
  width: 300px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.3s ease-out, opacity 0.2s ease-out;
}
.nav__body {
  font-weight: 100;
  font-size: 18px;
  font-size: 18px;
  width: 300px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.3s ease-out, opacity 0.2s ease-out;
}
.nav li {
  position: relative;
  transition: all 0.3s ease-out;
  margin-bottom: 1em;
}
.nav li:after {
  content: '';
  display: block;
  border-left: 2px solid white;
  border-top: 2px solid white;
  height: 250px;
  width: 20px;
  position: absolute;
  left: -30px;
  top: 15px;
}
.nav li a {
  display: block;
  padding: 0;
  color: #fff;
  transition: all 0.15s ease-out;
}
.nav li a:hover {
  background-color: transparent;
  padding-left: 1em;
}
.nav li a:focus {
  background-color: transparent;
}
.nav li.active {
  pointer-events: none;
  padding-left: 1em;
}
.nav li.active:after {
  width: 35px;
  height: 400px;
  top: 35px;
}
.nav li.active .nav__counter {
  font-size: 48px;
}
.nav li.active .nav__title {
  height: 40px;
  opacity: 1;
  overflow: visible;
}
.nav li.active .nav__body {
  height: 100px;
  opacity: 1;
  overflow: visible;
}
.typing {
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}
@keyframes fadeanimate {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
p {
  font-size: 24px;
  font-weight: 200;
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.typing {
  animation: typing 2s steps(40) 5s;
}
.fadein {
  opacity: 0;
  animation: fade-in 2s ease-in 3s forwards;
}
.fadeinlong {
  opacity: 0;
  animation: fade-in 2s ease-in 3s forwards;
}
.fadeinlonglong {
  opacity: 0;
  animation: fade-in 2s ease-in 5s forwards;
}
.fadeinfast {
  animation: fade-in 1s ease-in-out;
}
a,
a:focus,
a:active,
a:hover,
object,
embed {
  outline: none;
}
:-moz-any-link:focus {
  outline: none;
}
input::-moz-focus-inner {
  border: 0;
}

/* carousel */
.hero-section {
  display: flex;
  position: relative;
  width: 50%;
  height: 100vh;
  overflow: visible;
  z-index: 0;
}
.gd-hero {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 80vh;
  width: 100%;
}

.carousel-controls {
  width: 120%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: -1;
}
.carousel-controls a {
  width: 80px;
  height: 100%;
  display: block;
}
.carousel-controls a.prev {
  padding-left: 15px;
  text-align: left;
  float: left;
  opacity: 0.6;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}
.carousel-controls a.prev:hover,
.carousel-controls a.prev:active {
  padding-left: 0;
  opacity: 1;
}
.carousel-controls a.next {
  padding-right: 15px;
  text-align: right;
  float: right;
  opacity: 0.6;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}
.carousel-controls a.next:hover,
.carousel-controls a.next:active {
  padding-right: 0;
  opacity: 1;
}
.carousel-controls .hero-section i {
  font-size: 52px;
  font-size: 5.2rem;
  color: #fff;
}
.hero-section .carousel-controls i {
  font-size: 52px;
  font-size: 5.2rem;
  color: #fff;
}
@media only screen and (min-width: 768px) {
  .aboutme {
    text-align: right;
    font-weight: 300;
    width: 500px;
  }
}
@media only screen and (max-width: 767px) {
  body {
    overflow-x: hidden !important;
    width: 100vw !important;
  }
  div {
    max-width: 100vw !important;
  }
  h2 {
    font-size: 24px !important;
  }
  p {
    font-size: 16px !important;
  }
  .carousel-controls {
    width: 100%;
    z-index: 2;
    max-width: 100vw !important;
  }
  span .fadein {
    width: 90vw;
    display: flex;
    flex-wrap: wrap;
  }
  div#imageModal {
    padding-right: 0 !important;
  }
  #expandedImage {
    width: 100% !important;
    height: auto;
    border-radius: 0;
  }
  .overlay-text {
    position: relative;
    bottom: -40vh !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 12px;
  }
  .nav {
    display: none;
    max-width: 100vw !important;
  }
  .hero-section {
    width: 100%;
    height: 100vh;
    max-width: 100vw !important;
  }
  .nav2 {
    z-index: 1;
  }
  .nav2 ul {
    text-align: left;
    padding: 20px !important;
  }
  .aboutme {
    text-align: right;
    font-weight: 300;
  }
  div.imgreverse {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column !important;
    text-align: left !important;
    margin: 0 !important;
  }
  div.imgreverse .text {
    text-align: left !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .imgreverse figure {
    display: none;
  }
}

.rando {
  background-size: cover;
  background-position: center;
  transition: opacity 2s ease-out; /* Smooth opacity transition */
  width: 80vh; /* Adjust as needed */
  height: 80vh; /* Adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  opacity: 0; /* Initially hidden */
  z-index: -10;
}

/* Fade to black */
div .fade-to-black {
  opacity: 1;
  animation: fade-out 2s ease-in forwards;
}

/* modal bootstrap */
.carousel-image {
  cursor: pointer;
}
#imageModal {
  background: rgba(0, 0, 0, 0.8);
}
.modal-content {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
}

.modal-body {
  padding: 0;
  display: flex;
}

#expandedImage {
  width: 80%;
  height: auto;
  border-radius: 0;
  margin: 0 auto;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  width: 110%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  font-size: 16px;
  padding: 4px;
}
.overlay-text a {
  color: #fff;
  text-decoration: underline;
}
.overlay-text a:hover {
  color: #c3c3c3;
}
/* Custom tooltip styling */
.nav .tooltip-inner {
  max-width: 100px; /* Allow large content */
  padding: 0; /* Remove default padding */
  position: absolute;
  left: -100px;
  top: -80px;
}

.nav .tooltip-image {
  max-width: 100px; /* Set the maximum width of the tooltip image */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Display as block to ensure proper layout */
}
/* Apply cursor: pointer to carousel images */
.carousel-inner .item figure {
  cursor: pointer;
}

.carousel-indicators {
  position: absolute !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  bottom: 0 !important;
  left: unset !important;
  z-index: 15 !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  overflow-y: visible;
}
.carousel-indicators li img {
  display: block;
  width: 80px;
  height: 100%;
  padding: 0;
}

.carousel-indicators li.indicators {
  width: auto;
  height: auto;
  margin: 0 1px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #000 \9;
  border: 0;
  border-radius: 0;
  font-size: 0;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
  opacity: 0.5;
  scale: 0.8;
}
.carousel-indicators li.indicators.active {
  margin: 0;
  opacity: 1;
  scale: 1;
  position: relative;
  bottom: 0;
  transition: all 300ms ease;
}
.indiwrap {
  position: absolute;
  bottom: -40px;
  z-index: 15;
  width: 60vw;
  height: 20%;
  overflow-x: scroll;
  overflow-y: visible;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.indiwrap::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.indiwrap {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Menu Toggle */

.menu-toggle {
  width: 40px;
  height: 30px;
  position: fixed;
  top: 20px;
  right: 25px;
  cursor: pointer;
}
div.menu-toggle.on {
  z-index: 2 !important;
}
.menu-toggle.on .one {
  opacity: 1;
  -webkit-transform: rotate(45deg) translate(7px, 7px);
  -ms-transform: rotate(45deg) translate(7px, 7px);
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.on .two {
  opacity: 0;
}

.two {
  position: absolute;
  z-index: 100;
  top: 0;
  right: 0;
}
.aboutme {
  width: 200px;
  transition: opacity 0.5s ease-in-out !important;
}
.menu-toggle.on .three {
  opacity: 1;
  -webkit-transform: rotate(-45deg) translate(-3px, 3px);
  -ms-transform: rotate(-45deg) translate(-3px, 3px);
  transform: rotate(-45deg) translate(-3px, 3px);
}

.one,
.three {
  width: 100%;
  height: 5px;
  background: white;
  backface-visibility: hidden;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.one,
.three {
  opacity: 0;
}

.nav2 ul {
  list-style: none;
  margin: 1em auto;
  text-align: left;
  z-index: 0;
  position: relative;
  top: 0;
}

.hidden {
  visibility: hidden;
}

.nav2 ul {
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
  text-decoration: none;
  color: white;
  font-size: 3em;
  line-height: 1.5;
  width: 100%;
  display: block;
  padding: 0;
}

.nav2 ul a:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.menu-section.on {
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: left;
  background-color: rgba(0, 0, 0, 1);
  align-items: flex-start;
  height: 1000vh;
}
.nav2 p {
  font-size: 16px;
  font-weight: 300;
  transition: opacity 2s;
}

div#overlayText {
  bottom: -12vh;
}

.imgreverse {
  display: flex;
  margin: 48px;
  justify-content: space-between;
  align-items: center;
}
.imgreverse .text {
  width: 48%;
}
.imgreverse figure  {
  width: 48%;
}
.imgreverse figure img {
  width: 100%;
}
.imgreverse:nth-child(odd) {
  flex-direction: row-reverse;
}

.imgreverse:nth-child(odd) div.text {
  text-align: right;
}
figcaption {
  font-size: 16px;
}
.tiledrawing {
  scale: 125%;
  margin: 40px;
}