:root {
  --size-1: .25rem;
  --size-2: .5rem;
  --size-3: 1rem;
  --size-4: 1.25rem;
  --cyan-0: #e3fafc;
  --cyan-1: #c5f6fa;
  --cyan-2: #99e9f2;
  --cyan-3: #66d9e8;
  --cyan-4: #3bc9db;
  --cyan-5: #22b8cf;
  --cyan-6: #15aabf;
  --cyan-7: #1098ad;
  --cyan-8: #0c8599;
  --cyan-9: #0b7285;
  --gray-1: #f1f3f5;
  --gray-2: #e9ecef;
  --gray-3: #dee2e6;
  --gray-4: #ced4da;
  --gray-5: #adb5bd;
  --gray-6: #868e96;
  --gray-7: #495057;
  --gray-8: #343a40;
  --clr-neutral-900: hsl(210, 11%, 7%);
  --clr-neutral-800: hsl(210, 11%, 12%);
  --clr-neutral-200: hsl(210, 30%, 85%);
  --clr-neutral-100: hsl(210, 30%, 95%);
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  margin: 0 auto;
  background-color: var(--clr-neutral-900);
  color: var(--clr-neutral-200);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, h2, h3 { font-weight: 900 }

h2 {
  color: var(--clr-neutral-100);
  font-size: 1.5rem;
}

.avatar {
  display: flex;
  justify-content: center;
}

.avatar img {
  height: 10rem;
  width: 10rem;
}

.card-body {
  display:flex;
  flex-direction:column;
  padding: 0 0 0.5rem 0;
  border-radius: 20px;
  margin-bottom: 1rem;
  background-color: hsl(220, 100%, 25%);
}

.card-title {
  border-radius: 20px;
  margin: 0.5rem 0.5rem 0 0.5rem;
  background-color: blue;
}

.card-body img {
  width: 250px;
  margin: 0.5rem auto;
  cursor: pointer;
}

.card-title button {
  height: 50px;
  border: none;
  border-radius: 20px;
  margin: auto 0.5rem;
  background-color: hsl(240, 100%, 80%);
}

.card-title h2 {
  margin: 0.75rem;
}

.contact {
  display:flex;
  flex-direction:column;
  align-items:center;
}

.modal {
  max-width: 80vw;
  border-radius: 20px;
  background-color: blue;
  overflow: unset;
}

.modal > * {
  margin: 0 0 0.5rem 0;
}

.modal a {
  all: unset;
}

.modal img {
  cursor: pointer;
}

.modal p {
  /* margin: 0 0 1rem; */
  color: var(--clr-neutral-100);
  font-size: var(--size-3);
  font-weight: 900;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.social {
  display: flex;
  justify-content: space-between;
  width: 16rem;
  margin-top: 2rem;
}

.subheader {
  display: flex;
  flex-direction: column;
}

.subtitle-container {
  margin: 1rem;
}

/*** DIV flipping styles ***/

.hide-in {
  animation: hide-flip 0.25s ease-in;
}

.show-out {
  animation: show-flip 0.25s ease-out;
}

.flex-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 5rem auto;
}

#content-1, #content-2, #content-3 {
  /* The position: absolute is there to make the size of the parent element */
  /* match the size of its first child element. */
  position: absolute;
  grid-area: 1 / 1 / 2 / 2;
  width: 300px;
  padding: 1em;
  border-radius: 20px;
  padding-top: 80px;
  background-color: yellow;
  text-align: center;
  transform: rotateY(90deg);
}

#content-1 {
  background-color: #c800ff;
  background-image: url("../images/about-me-back.png");
  background-repeat: no-repeat;
  background-size: auto;
}

#content-2 {
  background-color: #0059ff;
  background-image: url("../images/projects-back.png");
  background-repeat: no-repeat;
  background-size: auto;
}

#content-3 {
  background-color: #ff0000;
  background-image: url("../images/technologies-back.png");
  background-repeat: no-repeat;
  background-size: auto;
}

@keyframes hide-flip {
  0% { transform: rotateY(0deg) }
  100% { transform: rotateY(90deg) }
}

@keyframes show-flip {
  0% { transform: rotateY(90deg) }
  100% { transform: rotateY(0deg) }
}

/* Media quieries */

@media (min-width: 960px) {
  .avatar img {
    width: 20rem;
    height: 20rem;
  }
  
   .flex-container {
    flex-direction: row;
    gap: 1rem;
  }

  .subheader {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 60rem;
  }
  
  .subtitle {
    font-size: 3rem;
  }
  
  .title {
    font-size: 5rem;
  }
}
