:root {
  --white: #ffffff;
  --black: #000000;
  --border: rgb(255, 255, 255, 0.1);
  --background: #0f0f0f;
  --inactive: #9d9d9d;
  --hover: rgb(32, 32, 32, 0.85);
  --active: rgb(32, 32, 32, 0.65);
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.woff') format('woff'),
  url('../fonts/Inter-Light.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff') format('woff'),
  url('../fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter';
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
}

body {
  color: var(--white);
  background: var(--black);
}

li {
  list-style-type: none;
}

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

header {
  position: fixed;
  display: flex;
  justify-content: center;
  height: 70px;
  width: 100vw;
  border-bottom: 1px solid var(--border);
  background: rgb(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  z-index: 999;
}

.h-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  padding: 0 20px;
}

nav {
  display: flex;
  gap: 24px;
  user-select: none;
}

.link {
  color: var(--inactive);
  transition: 0.2s;
}

.link:hover {
  color: inherit;
}

.link.active {
  color: inherit;
}

.c-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.error {
  height: calc(100dvh - 70px);
}

#hero {
  display: flex;
  justify-content: center;
  padding-top: 134px;
  padding-bottom: 96px;
}

.hero-content {
  width: 450px;
  animation: fadeIn 2s forwards;
}

h1 {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  color: var(--inactive);
  text-align: center;
  margin-bottom: 20px;
}

.mobile-container {
  display: none;
  justify-content: center;
}

.m-copy-button {
  height: 46px;
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  transition: 0.2s;
  cursor: pointer;
  transform: scale(1);
}

.m-copy-button:active {
  background: rgb(32, 32, 32, 0.65);
  transform: scale(0.98);
}

.copy-button {
  height: 52px;
  width: 100%;
  max-width: 450px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  transition: 0.2s;
  cursor: pointer;
  transform: scale(1);
}

.copy-button:hover {
  background: var(--hover);
}

.copy-button:active {
  background: rgb(32, 32, 32, 0.65);
  transform: scale(0.98);
}

.overflow-container {
  height: 22.4px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  overflow: hidden;
  user-select: none;
}

.copy-button:hover span {
  transform: translateY(-100%);
  transition: 0.4s;
}

.copy-button:not(:hover) span {
  transform: translateY(0);
  transition: 0.4s;
}

#content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-bottom: 96px;
  animation: fadeIn 2s forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.filter {
  display: flex;
  gap: 2px;
  cursor: pointer;
  width: fit-content;
  user-select: none;
}

.filter-tag {
  padding: 10px 12px;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid var(--black);
  color: var(--inactive);
  background: none;
  transition: 0.2s;
  cursor: pointer;
}

.filter-tag:hover {
  color: var(--white)
}

.filter-tag.active {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--white)
}

.content-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.item {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 calc(50% - 16px);
  max-width: calc(50% - 16px);
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 16px;
  box-sizing: border-box;
  transition: 0.2s;
}

.item:hover {
  background: var(--hover);
}

.item:active {
  background: var(--active);
  transform: scale(0.98);
}

.item img {
  width: 100%;
  border-radius: 8px;
}

.description {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.type {
  font-size: 14px;
  color: var(--inactive);
}

footer {
  display: flex;
  justify-content: center;
  height: 70px;
  width: 100vw;
  border-top: 1px solid var(--border);
}

.f-wrapper {
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.f-wrapper a {
  user-select: none;
}

#project {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding-bottom: 96px;
  animation: fadeIn 2s forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.block-one {
  display: flex;
  gap: 32px;
}

.block-two {
  display: flex;
  justify-content: center;
}

.block-two p {
  width: 100%;
  max-width: 700px;
  padding: 64px 0;
  text-align: center;
  font-size: 20px;
}

.block-two p a {
  font-size: 20px;
  text-decoration: underline;
}

.block-three {
  display: flex;
  gap: 32px;
}

.small-image {
  width: calc(33.333% - 21.333px);
}

.medium-image {
  width: calc(50% - 16px);
}

.large-image {
  width: 100%;
}

.large-image.default {
  display: block;
}

.large-image.mobile {
  display: none;
}

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  padding-bottom: 96px;
  animation: fadeIn 2s forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

#about p {
  width: 100%;
  max-width: 700px;
  text-align: center;
  font-size: 20px;
}

#about a {
  font-size: 20px;
  text-decoration: underline;
}

.about-container {
  display: flex;
  max-width: 600px;
  width: 100%;
  gap: 32px;
}

.about-container div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
}

.about-number {
  font-size: 56px;
  font-weight: 500;
  line-height: 100%;
}

.about-text {
  color: var(--inactive);
}

.error-container {
  display: flex;
  justify-content: center;
}

.error-button {
  height: 52px;
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  transition: 0.2s;
  cursor: pointer;
  transform: scale(1);
}

.error-button:hover {
  background: var(--hover);
}

.error-button:active {
  background: rgb(32, 32, 32, 0.65);
  transform: scale(0.98);
}

@media only screen and (max-width: 480px) {
  .item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #hero {
    padding-bottom: 64px;
  }

  #project {
    gap: 16px;
    padding-bottom: 64px;
  }

  .block-one {
    flex-direction: column;
    gap: 16px;
  }

  .block-three {
    gap: 16px;
  }

  .small-image {
    width: calc(33.333% - 10.666px);
  }
  
  .medium-image {
    width: 100%;
  }

  .large-image.default {
    display: none;
  }

  .large-image.mobile {
    display: block;
  }

  #about {
    padding-bottom: 64px;
  }

  #content {
    padding-bottom: 32px;
  }
}

@media only screen and (max-width: 768px) {
  .mobile-container {
    display: flex;
  }
  
  .copy-button {
    display: none;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .about-container div {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: none;
    text-align: center;
  }

  .about-number {
    font-size: 32px;
  }

  .about-br {
    display: none;
  }
}

@media only screen and (min-width: 1024px) {
  .h-wrapper {
    padding: 0 32px;
  }

  nav {
    gap: 32px;
  }

  .c-wrapper {
    padding: 0 32px;
  }

  .item {
    flex: 1 1 calc(33.333% - 21px);
    max-width: calc(33.333% - 21px);
  }

  .f-wrapper {
    padding: 0 32px;
  }
}

@media only screen and (min-width: 1280px) {
  .c-wrapper {
    padding: 0 96px;
  }
}