@font-face {
  font-family: 'OldTimeyMono';
  src: url('/fonts/OldTimeyMono.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #a4fffa;
  --secondary-color: #ba3400;
  --background-dark: #222222;
  --background-medium: #383838;
  --background-light: #3b3b3b;
  --text-color-light: #FFFFFF;
  --overlay-bg: rgba(0, 0, 0, 0.75);
  --border-radius: 5px;
  --transition-speed: 0.3s;
}

body {
  font-family: 'OldTimeyMono', monospace;
  background-color: var(--background-dark);
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  justify-content: center;
  align-items: center;
}

a {
  color: var(--primary-color);
}

header,
footer,
.header-content,
.about-section,
.projects-container,
#social-links,
.computer-scene,
.welcome-box,
.title,
main {
  display: flex;
  justify-content: center;
  align-items: center;
}

header {
  width: 100vw;
  padding-top: 20px;
}

.header-content {
  flex-direction: column;
}

main {
  flex-direction: column;
}

footer {
  min-height: 10vh;
  min-width: 100vw;
  background-color: var(--background-dark);
}

#social-links {
  background-color: var(--background-medium);
  gap: 5vw;
  width: 100%;
}

.back-button img {
  width: 30px;
  height: auto;
}

.gallery-label {
  font-size: 30pt;
  text-align: center;
  margin: 0;
}

.hamburger-menu input[type="checkbox"] {
  display: none;
}

.hamburger-icon {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 101;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color-light);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease-in-out;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: var(--background-light);
  padding-top: 60px;
  transition: left var(--transition-speed) ease-in-out;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  color: var(--text-color-light);
}

.sidebar-menu a:hover {
  background-color: #777;
}

.hamburger-menu input[type="checkbox"]:checked~.hamburger-icon span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu input[type="checkbox"]:checked~.hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu input[type="checkbox"]:checked~.hamburger-icon span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.hamburger-menu input[type="checkbox"]:checked~.sidebar-menu {
  left: 0;
}

.title {
  font-size: 30pt;
}

.welcome-box {
  min-height: 50px;
}

.main-intro,
.carousel-container {
  font-size: 2em;
  width: 90%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}

.main-intro {
  margin: 5%;
}

.main-intro.is-visible,
.carousel-container.is-visible {
  opacity: 1;
  transform: scale(1);
}

.nested,
.nestedeven {
  clear: both;
  margin: 15px;
  border: 4px solid var(--text-color-light);
  max-width: 25vw;
  height: auto;
  float: none;
  display: block;
}

.nested {
  float: right;
}

.nestedeven {
  float: left;
}

#welcome_text {
  color: var(--primary-color);
  font-size: 24pt;
}

#cursor {
  font-weight: 100;
  font-size: 1em;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: inherit;
  }
}

.carousel-container {
  min-height: 25vh;
  font-size: x-large;
  margin-bottom: 10vh;
  position: relative;
}

.carousel {
  min-width: 90vw;
  border: 2px solid var(--text-color-light);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.carousel-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
}

.carousel-slides::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 400px;
  background-color: var(--background-light);
  color: var(--text-color-light);
  text-align: center;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
}

.carousel-slide:nth-child(even) {
  background-color: var(--background-medium);
}

.carousel-slide h2 {
  background-color: var(--overlay-bg);
  padding: 10px;
  border-radius: var(--border-radius);
  color: var(--text-color-light);
}

.carousel-slide a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-color-light);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  transition: background-color var(--transition-speed) ease;
  height: 100%;
  width: 8vw;
}

.carousel-arrow:hover {
  background-color: var(--overlay-bg);
}

.carousel-arrow-prev {
  left: 0px;
}

.carousel-arrow-next {
  right: 0px;
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-nav a {
  display: block;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color var(--transition-speed) ease;
}

.carousel-nav a:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-nav a.active {
  background-color: var(--text-color-light);
}

.fa-brands,
.fa-solid {
  color: var(--text-color-light);
  font-size: 50pt;
  margin: 15px;
  transition: text-shadow 0.15s ease-in;
  text-decoration: none;
}

.fa-brands:hover,
.fa-solid:hover {
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
}

.projects-container {
  flex-direction: column;
  width: 100vw;
  height: auto;
  overflow-y: auto;
}

.project-content {
  height: 100%;
  margin: 10px;
}

.computer-scene {
  flex-direction: column;
  position: relative;
  width: 100%;
}

#computer-image {
  height: 100vh;
  width: auto;
  display: block;
  z-index: 2;
}

#pc-screen {
  position: absolute;
  top: 10%;
  width: 520px;
  height: 48%;
  background-color: #1a1a1a;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: 'OldTimeyMono', monospace;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 5;
  text-align: left;
}

#cd-tower {
  display: none;
}

.disc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  justify-items: center;
  align-items: center;
}

.disc {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.disc img {
  width: 100px;
  height: auto;
  display: block;
}

.disc.is-dragging {
  opacity: 0.7;
  transform: scale(1.1);
}

.disc-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color-light);
  font-size: 0.8em;
  text-align: center;
  pointer-events: none;
  font-weight: bold;
  text-shadow: 1px 1px 3px black;
  width: 100%;
}

.back-button {
  cursor: pointer;
  color: var(--primary-color);
  font-size: 1.5rem;
  background-color: black;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  max-width: 1200px;
}

.gallery-item {
  position: relative;
  text-align: center;
  background-color: var(--background-medium);
  padding: 10px;
  border-radius: var(--border-radius);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  color: inherit;
  display: block;
  overflow: hidden;
  width: auto;
  height: 25vh;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-image,
.gallery-image-year {
  width: 100%;
  height: 75%;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

.gallery-image-year {
  height: 100%;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.year-label {
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--text-color-light);
  font-size: 24pt;
  font-weight: bold;
  text-shadow: 1px 1px 3px var(--overlay-bg);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: var(--border-radius);
}

.new-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  background: var(--secondary-color);
  color: var(--text-color-light);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: bold;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.gallery-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.gallery-modal-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: var(--transition-speed);
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.modal-info-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color-light);
  padding: 10px;
}

.modal-info-content {
  text-align: center;
  margin: 0 20px;
}

.comic-prev,
.comic-next {
  cursor: pointer;
  padding: 16px;
  color: var(--text-color-light);
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.comic-prev:hover,
.comic-next:hover {
  background-color: var(--overlay-bg);
}

.section-label {
  font-size: 40pt;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.button-container {
  position: relative;
  margin: 10px;
  text-align: center;
  width: 100%;
}

.image-button {
  cursor: pointer;
  border: 8px solid var(--background-dark);
  border-radius: var(--border-radius);
  background-color: var(--background-dark);
  transition: transform var(--transition-speed) ease;
  width: 80%;
  height: auto;
  object-fit: contain;
}

.image-button:hover {
  transform: scale(1.05);
}

.image-button-text-overlay {
  position: absolute;
  top: 0%;
  left: 15%;
  transform: translate(-50%, -50%);
  color: var(--text-color-light);
  font-size: 16pt;
  font-weight: bold;
  text-align: center;
  background-color: var(--overlay-bg);
  padding-inline: 5px;
  border: 2px solid var(--text-color-light);
  border-radius: var(--border-radius);
}

#fullImage {
  transition: opacity var(--transition-speed) ease-in-out;
}

#curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #292929;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

ul {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}

.about-section {
  flex-direction: column;
  max-width: 80vw;
  font-size: 20pt;
}

.black-hole {
  width: 100%;
  height: 100%;
  background-image: url('/images/galaxy.gif');
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
    overflow-x: hidden;
  }

  .title {
    font-size: 28pt;
  }

  .main-intro,
  .about-section {
    font-size: 12pt;
    max-width: 95vw;
  }

  #welcome_text {
    font-size: 18pt;
    text-align: center;
  }

  .section-label,
  .gallery-label {
    font-size: 24pt;
  }

  .nested,
  .nestedeven {
    float: none;
    display: block;
    max-width: 80%;
    margin: 20px auto;
  }

  #pc-screen {
    width: 95%;
    height: 82%;
    transform: none;
  }

  #computer-image {
    visibility: hidden;

  }

  .disc-text {
    font-size: 1em;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .gallery-item {
    height: 20vh;
  }

  .fa-brands,
  .fa-solid {
    font-size: 30pt;
  }

  ul {
    columns: 1;
    -webkit-columns: 1;
    -moz-columns: 1;
  }

  .carousel-arrow {
    width: 10vw;
  }
}