html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  color: white;
  font-family: var(--main-font);
  /* box-sizing: border-box; */
}

:root {
  --main-font: "Nippo", system-ui, -apple-system, sans-serif;
  --accent-color: #dc4644;
  --blue-grey: #8ba3ab;
}

@font-face {
  font-family: "Nippo";
  src: url("fonts/Nippo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nippo";
  src: url("fonts/Nippo-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nippo";
  src: url("fonts/Nippo-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Array-Bold";
  src: url("fonts/Array-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Tiny5";
  src: url("fonts/Tiny5-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body {
  /* width: 100%; */
  max-width: 100%;
  overflow-x: hidden;
  /* overflow: hidden; */
}

h1 {
  color: var(--accent-color);
  font-family: "Array-Bold", system-ui, -apple-system, sans-serif;
  font-size: 4rem;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 400;
  /* letter-spacing: 0.05rem; */
}

p {
  font-family: var(--main-font);
  color: white;
  font-size: 0.9rem;
  /* font-weight: 400; */
}

ul {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  list-style-position: inside;
  font-size: 1rem;
  /* list-style-type: square; */
  /* font-weight: 300; */
}

/* li::marker {
  font-size: 0.4rem;
} */

main {
  background-color: black;
  padding-top: 9rem;
  padding-bottom: 2rem;
  /* padding: 9rem 7rem 2rem; */
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6rem;
}

section {
  width: 70%;
  margin: 0 7rem;
}

header {
  width: 100%;
  background: black;
  position: fixed;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

nav {
  display: flex;
  width: 70%;
  gap: 3rem;
  justify-content: end;
  /* margin-right: 8rem; */
  padding: 1rem;
  /* border-bottom: 3px solid white; */
}

a {
  text-decoration: none;
  font-family: var(--main-font);
  color: white;
  font-size: 0.9rem;
}

/* correct jumping position of section from nav */
#home,
#projects,
#films,
#learning,
#contact {
  scroll-margin-top: 6rem;
}

#home {
  margin-left: 11rem;
}

#bio {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#projects {
  display: flex;
  gap: 2rem;
}

.proj-container.active {
  display: block;
  margin-top: 3rem;
}

.proj-container {
  display: none;
}

.proj-container p {
  color: var(--blue-grey);
}

.thumbnail {
  width: 700px;
  height: auto;
  margin-bottom: 1rem;
}

.spec-title {
  margin-bottom: 0.5rem;
}

.specifications-grid {
  display: grid;
  /* align-items: center; */
  width: 100%;
  grid-template-columns: 1fr auto auto auto;
  grid-template-rows: auto auto;
  border: 3px solid var(--blue-grey);
  /* gap: 1rem; */
}

.specifications-grid > * {
  border-left: 3px solid var(--blue-grey);
  border-top: 3px solid var(--blue-grey);
  padding: 0.2rem 0.5rem;
}

.specifications-grid > *:first-child {
  border-left: none;
  border-top: none;
}

.specifications-grid > p:nth-child(2) {
  border-left: none;
}

.specifications-grid .flex-row {
  gap: 0.5rem;
}

.specifications-grid a {
  color: var(--blue-grey);
}

.description {
  grid-column: 1 / -1;
}

.tools {
  grid-column: 1;
}

.tools,
.proj-type {
  display: flex;
  align-items: center;
}

#proj-list-container {
  display: flex;
  gap: 1rem;
}

#proj-selection {
  display: flex;
  gap: 0.6rem;
  flex-direction: column;
}

#proj-selection ul {
  align-items: flex-start;
  gap: 0.7rem;
}

#proj-list {
  list-style-type: none;
  flex-direction: column;
}

#proj-num-bar {
  background-color: var(--accent-color);
  /* padding: 0.2rem; */
  padding-top: 2.3rem;
  display: flex;
  /* gap: 0.3rem; */
  flex-direction: column;
  align-items: center;
  height: 50%;
}

.proj-num-btn {
  padding: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  width: 100%;
}

.proj-num-btn.active {
  background: black;
}

.proj-title-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
}

.moving-led-separator {
  border-top: 3px solid #141414;
  border-bottom: 3px solid #141414;
  padding: 1rem 0;
  /* width: 100%; */
  overflow: hidden;
  display: flex;
  gap: 2rem;
}

.led-content {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100%;
  gap: 2rem;
  animation: marquee 35s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 2rem));
  }
}

.led-text {
  z-index: 1;
  font-family: "Tiny5";
  font-size: 1rem;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px var(--accent-color);
}

#learning {
  display: flex;
  gap: 2rem;
}

.side-marker {
  background-color: var(--accent-color);
  width: 1rem;
  height: 2rem;
}

#learning-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
}

/* #learning-container > :first-child {
  margin-bottom: 0.5rem;
} */

#contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  border: solid 3px var(--blue-grey);
  padding: 0.2rem 0.5rem;
}

#contact li {
  font-size: 0.9rem;
}

#contact ul {
  list-style-type: none;
}

#contact ul * {
  font-weight: 700;
  color: var(--blue-grey);
  /* font-size: 1rem; */
}

#copyright {
  color: var(--blue-grey);
  font-size: 0.8rem;
}

.flex-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flex-row a {
  display: inline-flex;
}

.sketch-container {
  max-width: 100%;
  max-height: 960px;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--blue-grey);
}

#films {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#films p {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--blue-grey);
}

#films-header {
  width: 80%;
}

.img-wrapper {
  position: relative;
  display: inline-block;
}

.img-wrapper img:first-child {
  display: block;
  transition: opacity 0.3s ease;
}

.external-link-icon {
  position: absolute;
  bottom: 8%;
  right: 8%;

  opacity: 0;
  transition: opacity 0.3s ease;

  font-size: 20px;
  color: white;
  pointer-events: none;
  z-index: 2;
}

.img-wrapper:hover img:first-child {
  opacity: 0.5;
}

.img-wrapper:hover .external-link-icon {
  opacity: 1;
}

.wrapper {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1200px) {
  .thumbnail {
    width: 500px;
  }
}

@media (min-width: 1600px) {
  html {
    font-size: 125%;
  }
  .thumbnail {
    width: 900px;
  }
}
