/* styles.css */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #385d86;
  color: #aedbff;
}

header {
  display: flex;
  flex-direction: row;
  background-color: #1f3a5f;
  align-content: center;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 10px 0;
}

header img {
  padding: 2%;
}

header a {
  padding: 2%;
  color: #aedbff;
  text-decoration: none;
  margin: 0 10px;
}

main {
  width: 100%;
  margin: 0;
}

h2 {
  color: #00ccff;
  text-align: center;
}

h3 {
  color: #a1cde7;
}

ul {
  list-style-type: none;
  padding: 0;
  width: 100%;
}

a {
  color: #50d8c1;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

section#projects {
  background-color: #385f96;
  width: 100%;
}

section#tools {
  background-color: #1f3a5f;
}

.projects-types-container {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: auto;

  width: 85%;
  height: 80vh;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 1rem 1rem 0 0;

  padding-left: 2%;
  padding-right: 2%;

  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  
  transition: 0.9s;
}

.projects-type-title {
  text-align: center;
}
.projects-type-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.projects-type{
  scroll-snap-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 1rem;

  background-color: #385d86;
  padding: 1rem;
  margin: 1rem;
}

.project {
  display: flex;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  height: auto;
  transition: 1s ease;
  * {
    margin: 0;
  }
  p {
    padding: 1rem;
  }
}

.project:hover {
  background-color: #1f3a5f;
  transform: scale(1.05);
}

.project-card {
  perspective: 1000px;
  width: 20rem;
  height: 24rem;
  margin: 0 auto;
  backface-visibility: hidden;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1.5s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

img.project-image {
  border-radius: 1rem;
  width: 20rem;
  height: 15rem;
  padding: 0;
  margin: 0;
}

.project-card.flipped .project-card-inner {
  transform: rotateY(180deg);
}

.project-card-face {
  position: absolute;
  backface-visibility: hidden;
  align-items: center;
  justify-items: center;
}

.project-card-front {
  z-index: 2;
}

.project-card-back {
  transform: rotateY(180deg);
  z-index: 1;
  h2{
    text-align: center;
    margin-top: 3rem;
  }
}

img.tech-logo {
  width: 5rem;
  height: 5rem;
  margin: 0.5rem;
}

img#itch-io{
  width: 10rem;
  height: 3rem;
}

footer {
  background-color: #1f3a5f;
  width: 100%;
  padding: 10px 0;
  text-align: center;
}

section#contact {
  flex-direction: row;
  justify-content: space-around;
  box-shadow: none;
  border-radius: 0;
}

.contact-logo{
  width: 5rem;
  height: 5rem;
  margin: 0.5rem;
}

/* *{
  border: solid 2px red;
} */