@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --purple-dark: #231942;
  --purple-light: #5e548e;
  --purple-pink: #9f86c0;
  --pink-w: #ffd6ff;
  --orange-prueba: #ffa200;
  --primary-text-color: #ffd000;
  --primary-button: #ffd966;
  --purple-very-dark: #3c1642;
  --complementary-color: #1c4216;
  --blue-dark: #001524;
  --afor-dig: #110714;
  --font-max: 2rem;
  --font-med: 1.8rem;
  --font-sm: 1.6rem;
}

* {
  box-sizing: border-box;
  font-family: "Rubik", serif;
  margin: 0 auto;
  padding: 0;
  text-decoration: none;
}
html {
  background-color: var(--afor-dig);
  font-size: 62.5%;
}

.nav__link {
  text-decoration: none;
  color: var(--primary-text-color);
  font-weight: 600;
  font-size: var(--font-med);
}

a > img,
span {
  color: black;
  font-weight: 500;
  padding: 5px;
  font-size: 1.4rem;
}
a > img {
  height: 36px;
}
a > span {
  align-self: center;
}

/* Seccion de proyectos */
.container-proyectos {
  max-width: 880px;

  flex-direction: column;
  font-size: var(--font-med);

  color: var(--primary-text-color);
  font-size: var(--font-med);
  justify-self: center;
}
.proyectos__title {
  margin-top: 40px;
  margin-bottom: 20px;
}
.proyectos__subtitle {
  padding-top: 20px;
  margin-bottom: 30px;
  font-weight: 500;
}

.container__playProjects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px 40px;
  place-content: center;
  display: grid;
}

.apply-tech > ul {
  display: flex;
  padding: 12px 0;
}
.apply-tech > ul > li {
  text-decoration: none;
  list-style: none;
}
.html {
  background-color: rgb(255, 81, 0);
  color: white;
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 6px;
  margin: 5px;
  font-weight: 600;
}
.css {
  background-color: rebeccapurple;
  color: white;
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 6px;
  margin: 5px;
  font-weight: 600;
}
.js {
  background-color: yellow;
  color: black;
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 6px;
  margin: 5px;
  font-weight: 600;
}

.flask {
  background-color: white;
  color: black;
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 6px;
  margin: 5px;
  font-weight: 600;
}
.mysql {
  background-color: rgb(0, 106, 255);
  color: white;
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 6px;
  margin: 5px;
  font-weight: 600;
}

.project-info p {
  font-size: var(--font-sm);
  padding: 5px 0;
  min-height: 140px;
  align-content: center;
}

.btn-contact,
.btn-projects {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  align-content: center;
}
.btn-contact > a {
  background-color: white;
  text-decoration: none;
  border-radius: 20px;
  padding: 0 5px;
  margin: 0 5px;
  display: flex;
}
a > img,
span {
  color: black;
  font-weight: 500;
  padding: 5px;
  font-size: 1.6rem;
}
a > img {
  height: 36px;
}
a > span {
  align-self: center;
}

.btn-to-see {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  align-content: center;
}
.btn-to-see > a {
  background-color: white;
  text-decoration: none;
  border-radius: 20px;
  padding: 0 5px;
  margin: 5px;
  display: flex;
  width: 140px;
}

/* aplicando y jugando */
.play-project {
  border-radius: 40px;
  background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
  border: solid var(--primary-text-color) 2px;
  color: var(--primary-text-color);
  padding: 25px;
}
.play-project-img {
  max-width: 180px;
  height: 130px;

  margin: 20px;
  justify-self: center;
}
.play-project-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* max-width: 280px;
  max-height: 100px; */
  width: 100%;
  /* object-fit: fill; */
  object-fit: fill;
  border-radius: 40px;
}

/* seccion contatame */
.container-contact {
  display: grid;
  max-width: 880px;
  grid-template-columns: 1fr;
  margin: 30px;
  padding: 20px;

  border-radius: 40px;
  background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
  border: solid var(--primary-text-color) 2px;
  color: var(--primary-text-color);

  align-items: center;
  justify-self: center;
  font-size: var(--font-med);
}
.container-contact h3 {
  font-size: var(--font-max);
  padding: 10px;
}

.contact-me {
  align-items: center;
}
.contact-me > a {
  margin: 0 40px;
  padding: 0 10px;
}
.contact-me a span {
  height: 36px;
  align-content: center;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100px;
}
.final-note {
  width: 420px;
}
footer span {
  color: var(--primary-text-color);
  font-size: var(--font-med);
  align-content: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  /* o puede ser 920px*/
  /* .container__playProjects {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
  } */

  .btn-contact {
    flex-direction: column;
    justify-self: center;
  }
  .btn-contact a {
    margin: 8px;
    justify-content: center;
  }
  .btn-contact a span {
    font-size: 1.2rem;
    font-weight: 500;
  }
  .btn-to-see {
    display: flex;
    flex-direction: column;
  }
  .container-proyectos {
    margin: 20px 0;
    padding: 30px;
    justify-self: auto;
  }

  .container-proyectos > article {
    display: flex;
    flex-direction: column;

    width: 100%;
  }
  .project .project-img {
    text-align: center;
  }
  .project-img img {
    width: 90%;
  }
  .play-project-img img {
    width: 90%;
  }
  .play-project-img {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .nav__menu {
    display: none;
  }

  .navbar {
    padding: 15px 0;
    display: flex;
    justify-content: center;
  }
  .nav__list {
    position: static;
    background: var(--afor-dig);
    padding: 0;

    display: flex;
    gap: 2rem;

    list-style: none;

    transform: unset;
    transition: none;
  }

  .nav__list--show {
    transform: unset;
  }

  .nav__link {
    color: var(--primary-text-color);
    display: block;
  }
  .navbar ul li a:hover {
    background: #555;
    border-radius: 5px;
    padding: 5px;
  }
}

@media (max-width: 450px) {
  .project-info {
    width: 100%;
  }
  .apply-info {
    width: 100%;
  }
  .apply-tech ul {
    flex-flow: wrap;
    justify-content: center;
  }
  .btn-to-see {
    flex-direction: column;
    justify-self: center;
  }
  p,
  .experiencia > p,
  .about-me > p {
    font-size: 1.6rem;
    padding: 10px 20px;
  }
}
