:root {
  --link-color: rgb(109, 235, 109);
}

@font-face {
  font-family: Diatype;
  src: url(../fonts/ABC\ Diatype\ Regular.ttf);
}

body {
  font-family: Diatype;
  height: 100vh;
  display: flex;
  overflow-x: hidden;
  font-size: 4rem;
}

.wrapper {
  margin: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.img-container {
  display: flex;
  justify-content: right;
}

.image {
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
  margin: 1rem;
}

.image:hover {
  transform: scale(1.1);
}

.image {
  width: 50rem;
}

.footer {
  position: absolute;
  bottom: 0;

  width: 100%;
}

p {
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 800px) {
  .footer,
  .heading {
    font-size: 2rem;
  }

  .footer {
    position: relative;
    display: block;
  }

  .image {
    width: 20rem;
    display: block;
    position: relative;
  }
}

a {
  color: black;
  text-decoration: underline;
}

.text {
  animation: fadeIn 1s;
}

.img-container {
  transform-origin: center;
  animation: scaleFadeIn 1.5s;
}

@keyframes scaleFadeIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

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

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#toggle-projects-button {
  cursor: pointer;
  background-color: var(--link-color);
  border-radius: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
  transition-duration: 0.3s;
  display: inline-block;
  margin: 1rem;
}

#toggle-projects-button:hover {
  color: white;
  transform: scale(1.025);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
}

.projects-container-visible {
  opacity: 1 !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10 !important;
}

.projects-container-base {
  z-index: -1;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 150%;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
  transition-duration: 0.5s;
  overflow: scroll;
  display: flex;
  flex-direction: column;
}

.project-card {
  margin: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75em;
  letter-spacing: 2px;
  max-width: 88vw;
  cursor: pointer;
}

@media screen and (max-width: 800px) {
  .project-card {
    font-size: 0.5em;
    width: 100%;
  }
}

.project-card:hover {
  transform: scale(1.005);
  transition: ease-in-out 0.2s;
  transform-origin: left;
  color: whitesmoke;
}

.project-card::first-letter {
  text-transform: uppercase;
  font-weight: bold;
}
