@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  padding: 0;
  margin: 0;
}

html {
  background-color: rgb(15, 15, 15);
  font-family: "Josefin Sans";
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
}

.flecha a {
  text-decoration: none;
  color: white;
}

@keyframes moveup {
  from {
    bottom: 0.5vw;
  }
  to {
    bottom: 1vw;
  }
}

@keyframes scaleup {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.div-logo {
  position: fixed;
  top: 0;
  left: 0;
  padding: 1vw;
  transition: 0.2s ease;
  z-index: 3;
}

.div-logo:hover {
  transform: scale(1.1);
}

.div-logo:active {
  transform: scale(0.9);
}

.logo {
  position: fixed;
  width: 1.5vw;
}

.main-header {
  z-index: 2;
  position: fixed;
  margin: 0;
}

nav {
  z-index: 1;
  position: fixed;
  display: flex;
  align-items: center;
  right: 0;
  top: 0;
  width: 20%;
  height: 100%;
  font-weight: bold;
  font-size: 1.5vw;
  transform: translateX(100%);
  background-color: rgba(20, 20, 20, 0.8);
  transition: 0.4s ease-in-out;
}

.navigation li {
  list-style: none;
  padding-top: 7.5%;
  padding-bottom: 7.5%;
}

.navigation a {
  color: white;
  display: block;
  padding: 1vw;
  text-decoration: none;
  transition: 0.2s ease;
}

.navigation a:hover {
  transform: scale(1.1);
}

.navigation a:hover {
  color: rgba(220, 20, 60, 0.75);
  transform: scale(1.1);
}

.navigation a:active {
  transform: scale(0.9);
}

#btn-nav {
  display: none;
}

#btn-nav:checked ~ nav {
  transform: translateX(0);
}

.btn-nav {
  z-index: 2;
  color: white;
  position: fixed;
  font-size: 1.5vw;
  right: 0;
  top: 0;
  cursor: pointer;
  padding: 1vw;
  transition: 0.2s ease;
}

.btn-nav:hover {
  transform: scale(1.1);
}

.btn-nav:active {
  transform: scale(0.9);
}

.portfolio-portada {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.img-portada {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: scaleup 7.5s;
}

.flecha {
  position: absolute;
  bottom: 1vw;
  color: white;
  font-size: 3vw;
  animation: moveup 1s ease-in-out;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

.image-gallery {
  display: flex;
  flex-direction: row;
  margin-top: 0.1vw;
  margin-bottom: 0.1vw;
  gap: 0.1vw;
}

.image-gallery .column {
  display: flex;
  flex-direction: column;
  gap: 0.1vw;
}

.image-item {
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-item img {
  width: 100%;
  border-radius: 0.2vw;
  height: 100%;
  object-fit: cover;
  transition: 5s;
}

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

.pie {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1vw;
  bottom: 0;
  font-size: 1vw;
}

.pie-child {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 1vw;
  width: 100%;
}

.div-logo-pedro {
  text-align: center;
  margin-bottom: -0.1vw;
}

.logo-pedro {
  width: 10vw;
  transition: 0.3s;
}

.logo-pedro:hover {
  transform: scale(1.05);
}

.social-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.facebook {
  color: gray;
  text-decoration: none;
  font-size: 1vw;
  margin-right: 1.5vw;
  transition: 0.4s;
}

.youtube {
  color: gray;
  text-decoration: none;
  font-size: 1vw;
  margin-left: 1.5vw;
  margin-right: 1.5vw;
  transition: 0.4s;
}

.flymovie {
  width: 2.5vw;
  transition: 0.4s;
  margin-left: 1.5vw;
  margin-right: 1.5vw;
}

.instagram {
  color: gray;
  text-decoration: none;
  font-size: 1vw;
  margin-right: 1.5vw;
  margin-left: 1.5vw;
  transition: 0.4s;
}

.google {
  color: gray;
  text-decoration: none;
  font-size: 1vw;
  margin-left: 1.5vw;
  transition: 0.4s;
}

.facebook:hover {
  color: #3b5998;
}

.youtube:hover {
  color: rgb(255, 49, 49);
}

.flymovie:hover {
  color: black;
}

.instagram:hover {
  color: #c32aa3;
}

.google:hover {
  color: green;
}

.div-facebook,
.div-youtube,
.div-flymovie,
.div-instagram,
.div-google {
  transition: 0.5s;
}

.div-facebook:hover,
.div-youtube:hover,
.div-flymovie:hover,
.div-instagram:hover,
.div-google:hover {
  transform: scale(1.1);
}

.div-footer-p {
  font-size: 0.6vw;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  color: #818386;
  letter-spacing: 0.05vw;
}

ul {
  padding: 1vw;
}

.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  animation: fadein 0.1s;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(0.5vw);
  -webkit-backdrop-filter: blur(0.5vw);
  background-color: hsla(0, 0%, 0%, 0.75);
}

.mySlides img {
  border-radius: 0.5vw;
  width: 100%;
  height: 90vh;
  object-fit: contain;
}

/* Modal Content */
.modal-content {
  position: absolute;
  width: 90%;
}

/* The Close Button */
.close {
  position: absolute;
  z-index: 1;
  top: 0.5%;
  right: 1%;
  color: white;
  font-size: 2vw;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 1vw;
  margin-top: -2vw;
  color: white;
  font-weight: bold;
  font-size: 1.5vw;
  transition: 0.6s ease;
  border-radius: 0 0.1vw 0.1vw 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 0.1vw 0 0 0.1vw;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 767px) and (orientation: portrait) {
  .logo-central {
    width: 15rem;
  }
  .h1-central {
    font-size: 1.5rem;
  }
  .btn-nav {
    font-size: 1.5rem;
    padding: 0.5rem;
  }
  .logo {
    width: 1.9rem;
    padding: 0.25rem;
  }
  .flecha {
    font-size: 2rem;
  }
  nav {
    width: 60%;
  }
  nav li {
    font-size: 1rem;
    padding: 1rem;
    line-height: 3rem;
  }
  .image-gallery {
    flex-direction: column;
  }
  .logo-pedro {
    width: 8rem;
  }
  .facebook {
    font-size: 1rem;
    margin-right: 1.25rem;
  }
  .youtube {
    font-size: 1rem;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
  .flymovie {
    width: 2rem;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
  .instagram {
    font-size: 1rem;
    margin-right: 1.25rem;
    margin-left: 1.25rem;
  }
  .google {
    font-size: 1rem;
    margin-left: 1.25rem;
  }
  .div-footer-p {
    font-size: 0.5rem;
  }
  .pie-child {
    padding: 0.5rem;
    gap: 0.75rem;
  }
}
