body {
  margin: 0;
  background-color: #3d3e3f;
  color: #dff3e3;
  overflow-x: hidden;
}

header {
  background: #010f16;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #eeeeee;
  position: sticky;
  top: 0;
  z-index: 2;
  font-family: sans-serif;
  text-align: center;
}

.home-button {
  background: none;
  border: none;
  margin-left: 1rem;
  cursor: pointer;
  width: 5%;
}

.home-button img {
  width: 32px;
  height: 32px;
  filter: invert(1);
}

header h1 {
  margin: 1rem;
  font-size: 2rem;
  width: 15%;
}

.portfolio-main {
  padding: 3rem;
  max-width: 1000px;
  margin: auto;
}

.project {
  background-color: #010f16;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.project h2 {
  margin-top: 0;
  color: #dff3e3;
  font-family: sans-serif;
}

.project-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-content img,
.project-content video {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  object-fit: cover;
}

.project-description {
  flex: 1 1 300px;
  font-family: sans-serif;
}

@media (max-width: 768px) {
  .project-content {
    flex-direction: column;
  }
}

#content {
  display: flex;
  height: 25rem;
  align-items: center;
  margin: 5rem;
}

.scroll {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly;
  align-items: center;
  width: 60%;
  height: 25rem;
  gap: 5%;
  overflow-x: visible;
  animation: xscroll 200s ease-out infinite;
}

@keyframes xscroll {
  0% {
    transform: translateX(0%);
  }
  50% {
    transform: translateX(-550%);
  }
  99% {
    transform: translateX(-1%);
  }
  100% {
    transform: translateX(0%);
  }
}

.square {
  display: flex;
}

.pic {
  width: auto;
  height: auto;
  max-height: 25rem;
  border-radius: 25%;
}
