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

html {
    font-family: 'Space Mono', monospace;
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

#hero {
    background-color: #CB1CB9;
    background-image:linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('/images/Rectangle.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0px;
    padding: 0 0 0 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 0.5em #CB1CB9, 0 0 0.5em #CB1CB9, 0 0 0.5em #CB1CB9;
}

#hero-content{
    display: flex;
    flex-direction: row;
    writing-mode: vertical-lr;
    text-orientation: upright;
    font-size: 12px;
    letter-spacing: -7px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: fit-content;
}

#hero-content h2 {
    height: 100%;
}

/* Animation */
.intro {
    white-space: nowrap;
    overflow: hidden; 
    /* animation: animated-text 5s steps(29,end) 1s 1 normal both,
               animated-cursor 600ms steps(29,end) infinite; */
}
  /* text animation */
  
  @keyframes animated-text{
    from{height: 0;}
    to{height: 26em;}
  } 
  
  /* cursor animations */
  
  @keyframes animated-cursor{
    from{border-right-color: #CB1CB9;}
    to{border-right-color: transparent;}
  } 


.first-intro { 
    transition: .5s ease all;
}

/* .first-intro:hover {
    font-size: 30px;
    text-decoration: none;
} */

.second-intro { 
    transition: .5s ease all;
    white-space: nowrap;
    overflow: hidden; 
} 

.third-intro {
    
    transition: .5s ease all;
}

.section-content {
    color: #CB1CB9;
    margin: 0px;
    padding: 0 10px 40px 10px;
    font-size: 15px;
    background-image: url('Rectangle2.png');
    background: #FDF7FF;
    background-size: cover;
    background-position: center;
    font-weight: bold;
    text-shadow: 0.075em 0.08em 0.1em white;
    flex: 1;
}

.content p {
    font-size: 15px;
}

.open-first-div {
    padding-left: 2em;
}
.open-projects {
    padding-left: 4em;
}

.text {
    display: flex; 
    padding-left: 6em;
}

.first-list {
    padding-left: 6em;
}

.close-projects {
    padding-left: 4em;
}
.close-first-div {
    padding-left: 2em;
}
.open-second-div {
    padding-left: 2em;
}
.close-second-div {
    padding-left: 2em;
}
.footer {
    background: #FFF0FE;
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* height: 100px;
    padding: 0px 400px; */
    color: #CB1CB9;
    font-size: 15px;
    padding: 20px;
  }
  .footer-links {
    display: flex;
    align-items: center;
  }
  .footer-links a {
    color: #CB1CB9;
    opacity: 0.40;
    text-decoration: none;
    font-size: 15px;
    padding: 0px 10px;
  }
  .footer-links a:hover {
    opacity: 1;
  }
  .footer .fa-heart {
    color: #CB1CB9;
    animation: beat .25s infinite alternate;
	transform-origin: center;
    font-size: 20px;
  }
  @keyframes beat{
	to { transform: scale(1.1); }
}

  
  a {
      text-decoration: none;
      outline: none;
      color: #CB1CB9;  
  }

  a:hover {
    text-shadow: 0 0 0.5em #CB1CB9, 0 0 0.5em #CB1CB9, 0 0 0.5em #CB1CB9;
    color: white;
  }

  /* .typing {
      position: relative;
      margin-left: 10px;
  }
  
  .typing::after {
    content:"";
    position: absolute;
    right: -5px;
    width: 1px;
    height: 40%;
    border-right: 2px solid white;
    animation: blink 0.5s infinite ease;
  }
  
  @keyframes blink {
      0%{
          opacity: 0;
      }
      100%{
          opacity: 1;
      }
  } */

  .parpadea { 
    animation-name: parpadeo;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  
    -webkit-animation-name:parpadeo;
    -webkit-animation-duration: 2s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
  }

  @-moz-keyframes parpadeo{
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
  }
  
  @-webkit-keyframes parpadeo {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
  }
  
  @keyframes parpadeo {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
  }



  /* Responsive Design */

@media screen and (min-width: 800px) {

    #hero {
        padding: 0 0 0 100px;
    }

    #hero-content{
        writing-mode: horizontal-tb;
        text-orientation: sideways;
        letter-spacing: 1px;
        font-size: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    #hero-content h2 {
        height: auto;
    }
    

    .first-intro {
        padding-left: 2em; 
    }

    .second-intro {
        padding-left: 2em;
        transition: .5s ease all;
        border-right: solid 3px #CB1CB9;
        white-space: nowrap;
        overflow: hidden; 
    }
    
    /* Animation */
    .second-intro {
        animation: animated-text 4s steps(29,end) 1s 1 normal both,
                   animated-cursor 600ms steps(29,end) infinite;
      }
      
      /* text animation */
      
      @keyframes animated-text{
        from{width: 0;}
        to{width: 24em;} 
      }
      
      /* cursor animations */
      
      @keyframes animated-cursor{
        from{border-right-color: #CB1CB9;}
        to{border-right-color: transparent;}
      }
    
    .third-intro {
        padding-left: 4em;
    }
      
    .section-content {
        padding: 0 10px 40px 100px;
    }
    
    .content {
        font-size: 25px;
    }

    .content p a {
        font-size: 35px;
    }

    .footer {
        font-size: 15px;
        padding: 10px;
    }

    .footer-links a {
        font-size: 25px;
    }
}
