
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Roboto', sans-serif; */
    font-family: 'Roboto', sans-serif;
    /* background-color: #F8E8C0; */
    /* color: #DF582B; */
    min-height: 1500px;
    background-color: #F2EFE8;
    color: #2f4a73;
}

a {
    text-decoration: none;
    /* color: #DF582B; */
    color:  #2f4a73;
    cursor: pointer;
    font-weight: 300;
    outline: 0;
}
h1 {
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
}

a:hover {
    color: grey;
}
#goTop {
    transition: all 0.5 ease-in-out;  
}
.up {
    cursor: pointer;
    padding: 16px;
    color: #2f4a73;
    font-weight: bold;
    font-size: 28px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    margin-left: 87%;
    position: fixed;
    top: 100%;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    text-align: justify;
  }
  .up span {
    
    display: block;
    
  }
  .up span:nth-child(2n) {
    font-size: 16px;
    writing-mode: vertical-rl;
    padding-top: 78%;
    font-weight: lighter;
  
  }
.up-appears {
    top: 69%;
    visibility: visible;
    transition: all 0.5s ease-in-out;
    z-index: 2;
}
.up:hover {
      color: gray;
}

section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-imgs img {
    position: relative;
    top: 0;
    left: 0;
   
    object-fit: cover;
    pointer-events: none;
}
#text {
    position: relative;
    font-size: 2em;
    z-index: 2;
    margin-top: -60px;
    font-weight: 300;
    color: #F2EFE8;
    
}

/* SLIDER */
#slider {
    position: absolute;
    margin: 1em auto;
    width:100%;
    height: 100vh;
  }
  
 
 
 .slides {
    display: none;
    position: absolute;
    width:100%;
    height: 100vh;
    background-color: #2f4a73;
    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding:2rem 0;
  }
  .slide-1 {
    background-image:url('assets/home/slide-1-mov.jpg');
}
.slide-2 {
    background-image:url('assets/home/slide-2-mov.jpg');  
}
.slide-3 {
    background-image:url('assets/home/slide-3-mov.jpg');   
}
.slide-4 {
    background-image:url('assets/home/slide-4-mov.jpg');   
}
.slide-5 {
    background-image:url('assets/home/slide-5-mov.jpg');  
}
.slide-6 {
    background-image:url('assets/home/slide-6-mov.jpg');  
}
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 90%;
    width: auto;
    margin-top: -60px;
    padding: 16px;
    color: #F2EFE8;
    font-weight: bold;
    font-size: 28px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
  }
  .prev:hover, .next:hover {
      color: #2f4a73;
  }
  
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }

/* MAIN */
header {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: auto;
    position: sticky;
    top: 0px;
    height: 56px;
    align-items: center;
    z-index: 3; 
}
nav {
    display: flex;
    width: 25%;
    justify-content: space-between;
}
#main {
    width: 100%;
    z-index: 2; 
    position: absolute;
}
.intro, .projects, .hero-imgs{
    scroll-snap-align: start;
}

.subtitle, .intro-text, .content-text{
    padding-right: 5%;
    padding-left: 5%;
    margin-top: 10%;
}
.subtitle {
    width: 30%;
}
.intro-text {
    width: 90%;
    font-size: 1.3rem;
    text-align: center;
    padding-top: 10%;
}
.intro {
    flex-direction: column;
}
.intro > a{
    
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin-top: 2rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    background: transparent;
    color: #2f4a73;
    border: 1px solid #2f4a73;
    border-radius: 5px;
    
}
.intro > a:hover {
    background: #2f4a73;
    color: #F5F5F5;
}
.content-text, .content-container{
    width: 80%;
}

.content-container {
    padding-left: 5%;
}
.content-text {
    margin-top: 400px;
}



/* PROJECTS */
#index {
    height: 80px;
}

section.projects {
    display: block;
    min-height: 100%;
    width: 80%;
    margin: auto;
    padding-top: 2%;
    background-color:#F2EFE8;

}
section.projects__filters {
    height: auto;
    
}
.projects__grid {
    margin-bottom: 10%;
    width: 90%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* height: 100%; */
    align-items: flex-start;
}

.projects__grid__img {
    max-width: 450px;
}


.projects__grid__image--item {
    width: 100%; 
}



.projects__grid__img--text {
    color:  #2f4a73;
    margin-top: 15px;
    transition: 0.5s ease-in-out; 
    margin-bottom: 15%;
}
.projects__grid__img--text-hover {
    margin-top: 15px;
    transition: 0.5s ease-in-out;
    color:  grey;
}



.not-visible {
    display: none;
    max-width: 100%;
    transition: all 0.4 ease-in-out;  
}
.visible{
    visibility: visible;
    max-width: 100%;
}


.projects__filters {
    display: flex;
    margin-bottom: 15%;
    
    justify-content: space-between;
}


.projects__filters__list__item__point {
    width: 13px;
    height: 13px;
    background-color: #F5F5F5;
    border-radius: 50%;
    border: 1px solid #423e37;
    margin-right: 5px;
    margin-top: 3px; 
}
.projects__filters__list__item__point-checked {
    width: 13px;
    height: 13px;
    background-color: #423e37; 
    border-radius: 50%;
    border: 1px solid #423e37;
    margin-right: 5px;
    margin-top: 3px; 
}
.category__item {
    /* padding: 0 20px;
    font-size: 1.75rem; */
    
    font-size: 1rem;
  }
  .category__item:hover {
    color: gray;
    cursor: pointer;
  }



  /* INFO */
.info {
    
    height: 100vh;
    width: 100%;
    background-color: #F2EFE8;
    transition: 0.6s ease-in-out; 
    position: fixed;
    left: 100%;
    top: 0;
    transition: 1s ease-in-out;
    z-index: 3;
    
}
.info-appears {
    left: 0;
    transition: 1s ease-in-out;
}
.info-content {
    height: 100vh;
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;   
}
.info-content-link {
    display: flex;
    margin-top: 15%;
}
.info-content-link a:nth-child(2n) {
    margin-left: 8%;
}



.in-viewport {
    opacity: 1;
    transition: 0.6s ease-in-out;
}
.close {
    width: 90%;
    margin: auto;
    margin-top: 5%;
}
.close-x {
    margin-left: 95%;
    transform: rotate(45deg);
    cursor: pointer;
    opacity: 0;    
}

.project-pop-up__close {
    width: 24px;
    height: 24px;
    position: fixed;
    right: 5%;
    top: 5%;
    cursor: pointer;
    display: none;
    z-index: 4;
}
.animationClose {
   margin-left: 95%;
   transform: rotate(0deg);
   cursor: pointer;
   animation-name: rotateClose;
   animation-duration: 0.5s;
   animation-delay: 0.3s;
   animation-fill-mode: backwards;
   opacity: 1;
}
/* animacion onscroll */
.animated {
    opacity: 0;
    transition: all 1s;
}
.showTop {
    animation: showTop 1s;
}

@keyframes showTop {
    0% {
        transform: translateY(70px);
        
    }
    100% {
        transform: translateY(0px);
        
    }
}



/* EACH SHOW */
   



@media only screen and (min-width: 500px) {
   .projects__filters {
       justify-content: center;
   }
   .category__item {
       font-size: 1.5rem;
       padding: 0 10px;
   }
 }
@media only screen and (min-width: 768px) {
    nav {
        width: 18%;
    }
    #text {
        font-size: 3em;
    }
    .prev, .next {
        top: 50%;
        font-size: 35px;
      }
    .intro-text {
        width: 90%;
        font-size: 1.5rem;
        padding-top: 0;
    }
    .projects__filters {
        margin-bottom: 10%;
    }
   
    .projects__grid__img {
        margin-bottom: 30px;
    }
    .projects__grid {
        width: 85%;
        justify-content: space-between;
        flex-direction: row;
    }
    .projects__grid__img {
       max-width: 46%; 
    }

 }
 @media only screen and (min-width: 900px) {
    html {
        scroll-behavior: smooth;
        scroll-snap-type: y proximity;
      }
    nav {
        width: 15%;
    }
    #text {
        font-size: 3.5em;
    }
    .prev, .next {
        font-size: 45px;
      }

    .projects__grid__img {
        margin-bottom: 80px;
    }

    .projects__grid__img--text {
        margin-left: -35px;
        opacity: 0;
        margin-top: 15px;
        transition: 0.5s ease-in-out; 
    }
    .projects__grid__img--text-hover {
        margin-left:0;
        opacity: 1;
        margin-top: 15px;
        transition: 0.5s ease-in-out;
        color:  #2f4a73;
    }
    .info-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;   
    }
    .info-content-link {
        padding-right: 10%;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
        margin-top: 0;
    }
    .info-content-link a:nth-child(2n) {
        padding-top: 5%;
        margin-left: 0;
    }
    .info-content-text {
        width: 50%;
    }
    .close {
        width: 95%;
        margin: auto;
        margin-top:0;
        height: 90px;
        display: flex;
        align-items: center;
    }

    .slide-1 {
        background-image:url('assets/home/slide-1.jpg');
    }
    .slide-2 {
        background-image:url('assets/home/slide-2.jpg');  
    }
    .slide-3 {
        background-image:url('assets/home/slide-3.jpg');   
    }
    .slide-4 {
        background-image:url('assets/home/slide-4.jpg');   
    }
    .slide-5 {
        background-image:url('assets/home/slide-5.jpg');  
    }
    .slide-6 {
        background-image:url('assets/home/slide-6.jpg');  
    }

    .up-appears {
        top: 80%;
    }
 
 }
 @media only screen and (min-width: 1100px) {
    header {
        height: 100px;
    }
    nav {
        width: 10%;
    }
    #text {
        font-size: 4em;
    }
    .intro-text {
        width: 80%;
        font-size: 1.8rem;
    }
    .category__item {
        font-size: 2rem;
        padding: 0 20px;
    }
    .projects__grid {
        width: 75%;
    }
 }
 @media only screen and (min-width: 1300px) {
    .intro-text {
        width: 75%;
        
    }
    .projects__grid {
        width: 65%;
    }
 }
 @media only screen and (min-width: 1700px) {
    .intro-text {
        width: 70%;
        font-size: 2.5rem;
        padding-top: 0%;
    }
    .projects__grid {
        width: 60%;
    }
 }
 @media only screen and (min-width: 1800px) {
    .projects__grid {
        width: 55%;
    }
 }
/* @media only screen and (min-width: 600px) {
    .projects__grid{
        width: 90%;
   }
   .projects__grid__img {
    max-width: 500px; 
    }
}


@media only screen and (min-width: 850px) {
    .projects__grid__img {
       max-width: 320px; 
    }
}
@media only screen and (min-width: 1020px) {
    .projects__grid {
        width: 70%;
   }
    .projects__grid__img {
       max-width: 350px; 
    }
}

@media only screen and (min-width: 1230px) {
    .projects__grid {
        width: 70%;
   }
    .projects__grid__img {
       max-width: 500px; 
    }
}
@media only screen and (min-width: 1060px) {
    .projects__grid__img {
       max-width: 350px; 
    }
} */


/* @media only screen and (max-width: 600px) {
   
    .intro, .content {
        flex-direction: column;
        top: 0;
    }
    .subtitle {
        width: 70%;
    }
    .content-text, .last-content {
        margin-top: 0;
    }
  } */
  .projects__grid__img--size--container {
    width: 100vw;
    height: 100vh;
    background-color: #F2EFE8;
    position: fixed;
    z-index: 3;
  }
  .image-background {
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
  }

  .transition--image-size-opacity {
    animation: opacityImageLinkProject;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
.projects__grid__img--size {
    display: block;
    position: fixed;
    top:0.5%;
    right: 0;
    z-index: 5;
    left: 0;
    margin: 5% auto;
    transition: all 2s ease-in-out;
} 
  .transition-page-project {
    visibility: visible;
    opacity: 1;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    background-color: #F2EFE8;
    transition: all 1s ease-in-out;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}


@keyframes opacityImageLinkProject {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 1;
    }
    80%{
        opacity: 1; 
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}