span, h1, h2, h4, h6, p {
    font-family: "Montserrat", sans-serif;
}

h5 {
    color: #2f89c4;
    margin-left: 5px;
    margin-right: 5px;
}

html, body {
    height: 100%;
    max-width: 2000px;
}

body {
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1 0 auto;
}

.jumbotron {
    background-size: cover;
    background-image: linear-gradient( rgba(255,255,255,0.0) 0%,rgba(255,255,255,0.9) 100%), 
    url(./pages/bluebutterfly.png);
    height: 400px;
    width: auto;
}

/* Typewriter effect */
.typewriter p {
    color: #000;
    width: 24em;
    font-family: monospace;
    font-size: 2rem;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid #FFA500; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives scrolling effect as typing occurs */
    letter-spacing: .15em; 
    animation: 
      typing 3.5s steps(33),
      blink-caret .5s step-end infinite normal;
}
  
/* Typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 24em }
}
  
/* Typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #FFA500 }
}

#highlight {
    background: url(./pages/cloudheart.png);
    background-repeat: no-repeat;
    background-size: 100% 95%;
    padding-top: 70px;
    padding-bottom: 40px;
    padding-right: 30px;
    padding-left: 20px;
    margin: -15px;
    font-size: 30px;
}

#highlightheart {
    background: url(./pages/heart.png);
    background-repeat: no-repeat;
    background-size: 100% 95%;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-right: 60px;
    padding-left: 50px;
    margin: -50px;
    font-size: 24px;
}

.summary {
    font-size: 17px;
}

a.onomatopoetica {
    color: #469ad2;
}

a.onomatopoetica:hover   {
    color: #82c5f2;
    text-decoration: none;
}

#projects {
    max-width:3000px;
    margin: auto; /* center aligned */
    padding:0;
    font-size:0; /* change to normal font size if have captions */
    list-style:none;
    background-color:#FFFFFF;
}

#projects li {
    display: inline-block;
    *display:inline; /* for IE6 - IE7 */
    width:50%;
    vertical-align:middle;
    box-sizing:border-box;
    margin:0;
    padding:0;
}
        
/* Wrapper for each item */
.cell, .item1, .item2, .item3, .item4 {
    margin: 10px;
    box-shadow:0 0 12px rgba(0,0,0,0.6);
    display:block;
    position: relative;
    overflow:hidden;
}
        
/* Image layer */
.img {
    display:block;
    width: 100%;
    height: auto;
    border:none;
    transform:scale(1);
    transition:all 1s;
}

#projects li:hover .img {
    transform:scale(1.05);
}
        
/* Overlay layer */
.overlay {
    position: absolute;
    display:block;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    background: #82c5f2;
    background-size:50px 50px;
    opacity:0;
    filter:alpha(opacity=0);/* For IE6 - IE8 */
    transition:all 0.6s;
}

#projects li:hover .overlay {
    opacity:1.0;
}

/* For captions */
.text {
    display:block;
    padding:0 30px;
    box-sizing:border-box;
    position:absolute;
    left:0;
    width:100%;
    text-align:center;
    font-size:18px;
    top:30%;
    color: #000;
    opacity:0;
    filter:alpha(opacity=0);/* For older IE */
    transform:translateY(-20px);
    transition:all .3s;
}
#projects li:hover .text {
    transform:translateY(0px);
    opacity:0.9;
}

/* Buttons on project overlay */
.buttonContainer {
    display: flex;
    justify-content: space-between;
}

/* All buttons */
.btn {
    background-color: #2f89c4;
    color: #FFFFFF;
    font-size: 17px;
}

.btn:hover {
    background-color: #4fa4dd;
    color: #FFFFFF;
}

/* Back to top */
.back-to-top, .back-to-top:focus, .back-to-top:visited {
    background-color: #2f89c4;
    color: #FFFFFF;
    opacity: 0;
    transition: opacity .6s ease-in-out;
    z-index: 999;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    box-shadow: 1px 1px #137bc0;
    box-sizing: border-box;
    border-radius: 8%;
}

a.back-to-top {
    font-weight: 1000;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.6;
    padding-left: 2px;
    padding-top: 14px;
}

.back-to-top:hover {
    color: #FFFFFF;
    background-color: #4fa4dd;
}

.back-to-top.show {
    opacity: 1;
}

.footer {
    flex-shrink: 0;
    color: #2f89c4;
}
  
/* Large screens */
@media (max-width: 2000px) and (min-width: 1535px) {
    p.lead.subTitle {
        margin-top: 150px;
    }
    
    #projects li {
        width:33%;
    }

    /* Overlay */
    span.text {
        font-size: 20px;
        color: #FFFFFF;
        text-align: center;
        top: 24%;
    }

    /* All buttons */
    .btn {
        background-color: #2f89c4;
        color: #FFFFFF;
        font-size: 20px;
    }
}

/* Large-smaller screens */
@media (max-width: 1534px) and (min-width: 1266px) {
    p.lead.subTitle {
        margin-top: 150px;
    }
    
    #projects li {
        width:33%;
    }

    /* Overlay */
    span.text {
        font-size: 17px;
        color: #FFFFFF;
        text-align: center;
        top: 20%;
    }

    /* All buttons */
    .btn {
        background-color: #2f89c4;
        color: #FFFFFF;
        font-size: 17px;
    }
}

/* Medium-larger screens */
@media (min-width: 930px) and (max-width: 1265px) {
    .jumbotron {
        max-height: 300px;
        max-width: auto;
    }

    p.lead.subTitle {
        margin-top: 100px;
    }

    /* Typewriter effect */
    .typewriter p {
        font-size: 1.75rem;        
    }
    
    #projects li {
        width:50%;
    }

    /* Overlay */
    span.text {
        font-size: 18px;
        color: #FFFFFF;
        text-align: center;
        top: 25%;
    }
}

/* Medium screens */
@media (min-width: 720px) and (max-width: 929px) {
    .jumbotron {
        max-height: 300px;
        max-width: auto;
    }

    p.lead.subTitle {
        margin-top: 100px;
    }

    /* Typewriter effect */
    .typewriter p {
        font-size: 1.75rem;        
    }
    
    #projects li {
        width: 50%;
    }

    /* Overlay */
    span.text {
        font-size: 16px;
        color: #FFFFFF;
        text-align: center;
        top: 10%;
    }

    /* Buttons on project overlay */
    .btn {
        display: flex;
        justify-content: space-between;
        font-size: 18px;
    }
}

/* Medium-small screens */
@media (min-width: 501px) and (max-width: 719px) {
    .jumbotron {
        max-height: 300px;
        max-width: auto;
    }

    p.lead.subTitle {
        margin-top: 100px;
    }

    /* Typewriter effect */
    .typewriter p {
        font-size: 1.75rem;        
    }
    
    #projects li {
        width: 100%;
    }

    /* Overlay */
    span.text {
        font-size: 18px;
        color: #FFFFFF;
        text-align: center;
        top: 30%;
    }

    /* Buttons on project overlay */
    .btn {
        display: flex;
        justify-content: space-between;
        font-size: 18px;
    }
}

/* Medium-Smaller screens */
@media (min-width: 436px) and (max-width: 500px) {
    .jumbotron {
        max-height: 150px;
        max-width: auto;
    }
    
    /* Typewriter effect */
    .typewriter p {
        font-size: .90rem;
    }
        
    #projects li {
        width:100%;
    }

    /* Overlay */
    span.text {
        font-size: 16px;
        color: #FFFFFF;
        text-align: center;
        top: 20%;
    } 

    /* Buttons on project overlay */
    .btn {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
    }
}

/* Small screens */
@media (min-width: 376px) and (max-width: 435px) {
    .jumbotron {
        max-height: 150px;
        max-width: auto;
    }
    
    /* Typewriter effect */
    .typewriter p {
        font-size: .90rem;
    }
        
    #projects li {
        width:100%;
    }

    /* Overlay */
    span.text {
        font-size: 16px;
        color: #FFFFFF;
        text-align: center;
        top: 18%;
    } 

    /* Buttons on project overlay */
    .btn {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
    }
}

/* smallest screens */
@media (max-width: 375px) {
    .jumbotron {
        max-height: 150px;
        max-width: auto;
    }
    
    /* Typewriter effect */
    .typewriter p {
        font-size: .90rem;
    }
        
    #projects li {
        width:100%;
    }

    /* Overlay */
    span.text {
        font-size: 14px;
        color: #FFFFFF;
        text-align: center;
        top: 17%;
    } 

    /* Buttons on project overlay */
    .btn {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }
}