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

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/pastelbutterfly.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 }
}

#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;
}

#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;
}

.summary {
    font-size: 17px;
}

a.onomatopoetica {
    color: #469ad2;
}

a.onomatopoetica:hover   {
    color: #82c5f2;
    text-decoration: none;
}
        
/* Wrapper for each item */
.item1, .item2, .item3, .item4 {
    margin: 5px;
    box-shadow:0 0 12px rgba(0,0,0,0.6);
    display:block;
    position: relative;
    overflow:hidden;
}
                
/* All buttons */
.btn {
    background-color: #2f89c4;
    color: #FFFFFF;
}

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

/* Modal padding */
.pupContainer {
    padding: 0;
}
  
.buttonText {
    font-size: 1.25rem;
    padding-left: 70px;
    padding-right: 70px;
}
  
/* Freelance work panel */
button.accordion {
    background-color: #2f89c4;
    border-color: #2f89c4;
}

.accordion {
    background-color: #2f89c4;
    border-color: #2f89c4;
    color: #FFFFFF;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    outline: none !important;
}
   
.accordion:after {
    content: '\002B'; /* Unicode character for "plus" sign (+) */
    font-size: 20px;
    color: #FFFFFF;
    float: right;
    margin-left: 5px;
    padding-bottom: 5px;
    padding-right: 5px;
}
  
.active:after {
    content: '\2212'; /* Unicode character for "minus" sign (-) */
    background-color: #2f89c4;
} 
  
div.panel {
    background-color: #FFFFFF;
}
  
.active, .accordion:hover {
    border-color: #2f89c4;
    outline: none !important;
}

.panel {
    padding: 0 18px;
    background-color: #FFFFFF;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
    padding: 30px;
    grid-template-rows: 300px 300px;
}
  
.grid-container > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
.item1 {
    grid-column-start: 1;
    grid-column-end: 3;
}
  
.item2 {
    grid-row-start: 2;
    grid-row-end: 3;
}
  
.item3 {
    grid-row-start: 2;
    grid-row-end: 3;
}
  
.item4 {
    grid-row-start: 1;
    grid-row-end: 3;
}

/* 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;
}
  
/* Larger screens */
@media (max-width: 2000px) and (min-width: 1300px) {
    p.lead.subTitle {
        margin-top: 150px;
    }
    
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        grid-gap: 20px;
        padding: 100px;
        grid-template-rows: 300px 300px;
    }
}

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

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

    /* Typewriter effect */
    .typewriter p {
        font-size: 1.75rem;        
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        grid-gap: 20px;
        padding: 100px;
        grid-template-rows: 300px 300px;
    }
    
}

/* Smaller screens */
@media (max-width: 799px) {
    .jumbotron {
        max-height: 150px;
        max-width: auto;
    }
    
    /* Typewriter effect */
    .typewriter p {
        font-size: .90rem;
    }
        
    .grid-container {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 40px;
        grid-template-rows: 300px 300px 300px 300px;
    }
  
      .item1 {
        grid-column-start: 1;
        grid-column-end: 2;
    }
      
      .item2 {
        grid-row-start: 2;
        grid-row-end: 3;
    }
      
      .item3 {
        grid-row-start: 3;
        grid-row-end: 4;
    }
  
      .item4 {
        grid-row-start: 4;
        grid-row-end: 5;
    }
}