html {
  /* border: 10px solid #eee; */
  min-height: 100%;
}

body {
  font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
    Bitstream Vera Sans Mono, Courier New, monospace, serif;
  text-rendering: geometricPrecision;
  background: #fcfcfc;
  color: #222;
}

section {
  overflow: scroll;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

.content {
  max-width: 1065px;
  padding-top: 10vh;
  padding-bottom: 10vh;
  margin: auto;
}

header {
  border-right: 2px solid #eee;
  position: fixed;
  width: 185px;
  height: 100%;
  padding-right: 30px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  top: 0px;
}

header a {
  transition: transform 0.3s ease, color 0.3s ease;
}

header a:hover {
  color: #0070f3 !important;
}

article a {
  transition: transform 0.3s ease, color 0.3s ease;
}

article a:hover {
  color: #0070f3 !important;
}

header label {
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.checkbox-container:hover {
  color: #0070f3;
}

footer {
  border-left: 2px solid #eee;
  position: fixed;
  width: 185px;
  height: 100%;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  top: 0px;
  right: 14vw;
}

footer a {
  display: block ruby;
  text-decoration: none;
  margin-bottom: 5px;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer a:hover {
  color: #0070f3 !important;
}

footer ul {
  list-style: disclosure-closed;
  padding-left: 15px;
}

@keyframes scaleUp {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  0.1% {
    opacity: 1;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    width: 200vmax;
    height: 200vmax;
  }
}

@keyframes scaleDown {
  from {
    transform: translate(-50%, -50%) scale(1);
    width: 200vmax;
    height: 200vmax;
    opacity: 1;
  }

  99.9% {
    opacity: 1;
  }

  to {
    transform: translate(-50%, -50%) scale(0);
    width: 0;
    height: 0;
    opacity: 0;
  }
}

.showcasemode-overlay {
  position: fixed;
  /* background: rgb(109, 108, 108); */
  /* border: 45px solid #000000; */
  /* transition: all 2.3s ease; */
  z-index: 1000;
  pointer-events: none;
  border-radius: 8px;
  transform: translate(-50%, -50%) scale(0);
  width: 0;
  height: 0;
  opacity: 0;
}

.overlay-1.expand {
  background: rgba(141, 141, 141, 0);
  border: 45px solid #8a8a8a;
  animation: scaleUp 2.3s ease forwards;
  animation-delay: 0s;
}

.overlay-2.expand {
  background: rgba(255, 255, 255, 0);
  border: 45px solid #faf8f8;
  animation: scaleUp 2.3s ease forwards;
  animation-delay: 0.2s;
}

.overlay-3.expand {
  background: rgb(28, 28, 28);
  animation: scaleUp 2.3s ease forwards;
  animation-delay: 0.4s;
}

.overlay-1.shrink {
  background: rgba(141, 141, 141, 0);
  border: 45px solid #8a8a8a;
  animation: scaleDown 2.3s ease forwards;
  animation-delay: 0.8s;
}

.overlay-2.shrink {
  background: rgba(255, 255, 255, 0);
  border: 45px solid #faf8f8;
  animation: scaleDown 2.3s ease forwards;
  animation-delay: 0.5s;
}

.overlay-3.shrink {
  background: rgb(28, 28, 28);
  animation: scaleDown 2.3s ease forwards;
  animation-delay: 0s;
}

.showcasemode-overlay.expand {
  /* left: 50% !important;
  top: 50% !important; */
  width: 200vmax !important;
  height: 200vmax !important;
  transform: translate(-50%, -50%) scale(1);
}

img {
  max-width: 420px;
  border-radius: 5px;
  width: 75vw;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center;
}

img:hover {
  transform: scale3d(1.04, 1.04, 1);
}

.image-container {
  max-width: 420px;
  border-radius: 5px;
  width: 75vw;
  display: block;
  overflow: hidden;
}

.about {
  box-sizing: border-box;
}

header h2 {
  font-size: 20px;
  letter-spacing: 1px;
  color: rgb(112, 128, 216);
  margin-top: 10px;
}

header h1 {
  margin-top: 0px;
  font-size: 36px;
  margin-bottom: -4px;
  display: inline-block;
  transition: letter-spacing 0.3s ease, transform 0.3s ease;
  cursor: default;
  user-select: none;
}

header h1:hover {
  letter-spacing: 1.8px;
  transform: translateX(-0.2em);
}

p {
  font-size: 14px;
  line-height: 1.3em;
  margin-bottom: 25px;
}

article {
  margin-left: 21vw;
  border-bottom: 3px solid #eee;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 30px;
  padding-right: 30px;
  max-width: 425px;
}

.whoops {
  margin-left: 285px;
  margin-top: 30%;
  padding-left: 30px;
  padding-right: 30px;
  max-width: 425px;
}

.hidden {
  display: none;
}

.mid-footer {
  padding-left: 5px;
}

.small-footer {
  display: none;
}

.small-article {
  max-width: none;
  margin-left: 0px;
  text-align: center;
}

.small-header {
  position: relative;
  width: auto;
  text-align: center;
  border-right: none;
  border-bottom: 2px solid #eee;
}

.small-header-projects {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
}

.small-whoops {
  margin-left: 0px;
  padding-right: 0px;
  max-width: none;
  margin-top: 12%;
  text-align: center;
}

.shiny-text {
  color: #ccc; /* Fallback color */
  background: linear-gradient(
    120deg,
    #cccccc 20%,
    #ffffff 40%,
    #cccccc 60%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 12s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  10% {
    background-position: -100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
