@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Geist Mono', sans-serif;
  font-size: 100%;
  background-image: url('/static/images/backgrounds/background.png');
  background-color: rgba(5, 7, 11, 0.9);
  background-blend-mode: multiply;
  color: #fffefe;
}

a {
  color: inherit;
  text-decoration: none;
}

#intro .title {
  display: inline-block;
  position: fixed;
  margin: 1em 1em;
  font-size: 1.75em;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 2px;
}

.title .hover-underline {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background-color: #fffefe;
  transition: width 0.5s ease;
}

.title:hover .hover-underline {
  width: 95%;
}

.navbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9em;
  padding-top: 2em;
  z-index: 1000;
}

.navbar-items {
  color: #979796;
  display: flex;
  align-items: center;
  gap: 2em;
}

button {
  font-family: inherit;
  background-color: inherit;
  color: inherit;
  border: none;
  font-size: 1em;
}

button:hover {
  cursor: pointer;
  color: #fffefe;
}

section {
  height: auto;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  overflow: visible;
}

.active {
  color: #fffefe;
}

.container {
  position: relative;
  font-weight: 500;
  width: 28em;
  margin: 0 auto;
  font-size: 2em;
  padding: 3em 0;
}

.changing-textbox {
  width: 85%;
  font-size: 1.5em;
  margin: 1em auto;
  text-align: center;
  font-weight: 400;
  height: 5em;
  margin-bottom: 6em;
  line-height: 1.4;
}

.changing-text {
  font-family: 'Space Grotesk', sans-serif;
  display: block;
  width: 100%;
  transition: transform 1s ease, opacity 1s ease;
  font-weight: 500;
}

.info-buttons {
  margin: -4em 5em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
}

.github-btn,
.resume-btn,
.linkedin-btn {
  border: 1px solid #979796;
  padding: 1em;
  font-size: 0.5em;
  cursor: pointer;
  color: #979796;
  width: 8em;
  text-align: center;
}

.github-btn:hover,
.resume-btn:hover,
.linkedin-btn:hover {
  color: #fffefe;
  border: 1px solid #fffefe;
}

.triangle-arrow {
  position: absolute;
  width: 0;
  height: 0;
  bottom: -5em;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #fefeff; /* color of the triangle */
  cursor: pointer;
  animation: moveUpDown 1s ease-in-out infinite alternate;
}

@keyframes moveUpDown {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.section-title {
  font-size: 1.5em;
}

.project-cards,
.work-cards {
  margin: 0 3em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 2em;
}

.project-card {
  position: relative;
  display: flex;
  gap: 1em;
  padding: 0.75em 0.1;
  height: 7em;
  border: 1px solid #979796;
  border-radius: 0.35em;
  width: 24em;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.game-title {
  font-size: 0.7em;
  padding-top: 0.3em;
}

.game-img {
  width: 9em;
  height: 100%;
  border: 1px solid #fefeff;
  border-radius: inherit;
  object-fit: cover;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding-top: 0.25em;
}

.game-description {
  color: #fefeff;
  font-size: 0.95rem;
  font-weight: 200;
  padding-top: 1em;
  padding-right: 0.5em;
}

.game-tag {
  display: inline;
  color: #979796;
  font-size: 0.85rem;
  font-weight: 200;
}

.tool-div {
  display: flex;
  padding-top: 0.75em;
  gap: 0.25em;
}

.game-tag {
  border: 1px solid #979796;
  border-radius: 0.5em;
  padding: 0.5em;
  color: #fefeff;
  cursor: pointer;
}

.game-tag:hover {
  font-weight: bold;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 6em;
}

.professional-btn,
.personal-btn {
  margin-right: 1.5em;
  font-size: 0.5em;
  color: #979796;
}

.professional-btn:hover,
.personal-btn:hover {
  text-decoration: underline;
  color: #fefeff;
}

.footer {
  font-size: 0.7em;
  color: #979796;
  padding-bottom: 2em;
  text-align: center;
}

.work-img {
  width: 3.5em;
  background-color: transparent;
}

.work-company-name {
  display: block;
  font-size: 0.425em;
  color: #969696;
  margin-top: 2em;
}

.work-role {
  margin-top: 0.4em;
  font-weight: bold;
}

.work-term {
  display: flex;
  gap: 0.2em;
  margin-top: 0.4em;
}

.work-year,
.work-location {
  color: #fffefe;
  font-size: 0.4em;
  font-weight: 300;
}

.work-description {
  margin-top: 1.5em;
  font-size: 0.45em;
  font-weight: 400;
  color: #fefeff;
  margin-bottom: 4em;
  line-height: 2em;
}
