body{
    font-family: 'Roboto';
    font-size: 1.1em;
    color: rgb(28, 96, 223);
    background-color:rgb(235, 245, 238);
}

html {
    scroll-padding-top: 200px;
  }

::selection {
    background: rgb(227,150,223); /* WebKit/Blink Browsers */
  }
::-moz-selection {
    background:rgb(227,150,223); /* Gecko Browsers */
  }

p{
    margin-bottom: 12.5px;
    line-height: 1.3em;
}

ul > li{
    margin-left: 5px;
}

a:active, a:visited{
    color: rgb(27, 81, 45);
    
}
nav > a, nav > a:visited, nav > a:active{
    color: rgb(28, 96, 223);
}

ul{
    list-style-type: circle;
    margin-left: 12.5px;
    padding-bottom: 15px;
}

h1 {
    font-size: 2.1em;
    text-transform: uppercase;
    font-weight: bold;
}


h2{
    font-size: 1.6em;
    font-weight: bold;
    text-decoration: overline solid 5px;
    margin-bottom: 10px;
    text-decoration-style: wavy;
    -webkit-text-decoration-style: wavy; /* Safari/Chrome */ 
}

@-moz-document url-prefix() {
    h2 {
        text-decoration: overline underline solid 5px;
        text-underline-offset: 10px;
    }
  }

.highlighted {
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 100% auto;
    transition: background-size .5s;
  }
  
  .highlighted.yellow {
    background-image: linear-gradient(to top, yellow 60%, transparent 0);
  }
  .highlighted.yellow {
    background-image: linear-gradient(to top, yellow 60%, transparent 0);
  }



h3{
    font-style: italic;
    font-size: 1.25em;
}

header{
    margin-left: 5%; 
    margin-top: 5%;
    padding: 15px 0 0 0;
    background-color: rgb(235, 245, 238);
    max-width: 90%;
    position:sticky;
    top: 0;
    z-index: 1;
}
footer{
    margin-bottom: 20px;
}

nav{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

nav > a{
    margin-top: 10px;
    margin-right: 15px;
    text-transform: underline;
}

.quick-link{
        height: 100%;
        margin-left: 5%;
        margin-top: 25px;
        max-width: 90%;
}

.container_quick{
    height: 100%;
    margin-left: 5%;
    margin-top: 45px;
    max-width: 90%;
}

.container{
    height: 100%;
    margin-left: 5%;
    margin-top: 65px;
    max-width: 90%;
}

.data, .design, .writing{
    display: grid;
    grid-gap: 10px;
}

.data{
    grid-template-columns: 2fr 5fr;
}

.design{
    grid-template-columns: 1fr 1fr;
}

.data-img{
    /* max-width: 250px; */
    width: 100%;
    border: 2px solid rgb(28, 96, 223);
    margin: 10px 0px;
}

.data-div{
    margin: 10px 0px 15px 10px;
}

.photo-gallery{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 5px;
    max-width: 650px;
}

.gallery-img{
    width: 100%;
    height: 100%;
    border: 2px solid rgb(28, 96, 223);
}

.gallery-img::after {
    content: attr(title); /* Display the title as a pseudo-element */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    font-size: 14px;
    opacity: 0; /* Start with 0 opacity, will be visible on hover */
    transition: opacity 0.3s;
}

.gallery-img:hover::after {
    opacity: 1; /* Show the title on hover */
}

#books, #articles, #jobs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 30px;
}

.job-h3{
    margin-bottom: 7.5px;
}

.review-h3{
    margin-bottom: 7.5px;
}

.review{
    font-size: 0.9em;
}
.horizontal-line::before {
    border-bottom-width: 10px;
    content: "";
    display: block;
    width: 100px; /* Adjust the width as needed */
    height: 5px; /* Adjust the height as needed */
    background-color: rgb(28, 96, 223); /* Adjust the color as needed */
    margin: 20px 0 10px 0; /* Align the line to the left and add space above it */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

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

    .container,.container_quick, #header{
        max-width: 80%;
    }

    footer{
        height: 50px;
    }

}
.header-container {
    display: inline-block;
}

.shuffle-font {
    /* Existing styles */
    position: relative;
    display: inline-block;
    transition: font-family 0.3s ease;
    height: 10vh;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2.1em;
    white-space: nowrap;
    overflow: hidden;
}
  
  .typewriter:hover h1 {
    overflow: hidden;
    border-right: .15em solid rgb(227,150,223);
    white-space: nowrap;
    animation:
      typing 2s steps(15, end) forwards, /* Full animation for 2 seconds on hover */
      blink-caret .5s step-end 2.5s infinite, /* Blinking cursor with delay */
      hide-caret 0s 5s forwards;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 50% }
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    30% { border-color: rgb(227,150,223); }
  }
  
  @keyframes hide-caret {
    from, to { border-color: transparent }
  }
  
  /* #wrapper {
    padding: 0px;
    width: 820px;
    height: auto;
    margin: auto;
    overflow: hidden;
  }
  
  .image-container {
    float: left;
    width: 250px;
    height: 200px;
    position: relative;
    margin: 10px;
    cursor: pointer;
    display: table;
  }
  
  .image-container img {
    width: 250px;
    height: 200px;
    position: absolute;
  }
  
  .image-caption {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    opacity: 0;
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
  }
  
  .image-caption h1 {
    padding: 45px 0px 5px 0px;
    text-align: center;
    margin-left: -15px;
    text-transform: uppercase;
    font-family: 'Roboto';
    font-size: 25px;
    color: #00bfb6;
  }
  
  .image-caption p {
    margin-top: 35%;
    text-align: center;
    font-family: 'Overpass Mono', monospace;
    color: #fff;
  }
  
  .image-container:hover .image-caption {
    opacity: 1;
  }
  

  
  @media all and (min-width: 0px) and (max-width: 520px) {
    #wrapper {
      width: 100%;
      height: 100%;
      padding: 0px 70px
    }
  }
  
  @media all and (min-width: 521px) and (max-width: 700px) {
    #wrapper {
      width: 100%;
      height: 100%;
    }
    .image-container {
      float: left;
      width: 48%;
      margin: 5px;
      overflow: hidden;
      position: relative;
    }
    .image-caption {
      width: 250px;
      height: 200px;
    }
  } */