* {
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    font-family: var(--primary-font-family);
}

:root {
    --primary-font-family: 'Poppins', Sans-Serif;
    --secondary-font-family: 'Abril Fatface', Cursive;
    --primary-color: #314777;
    --secondary-color: #ffd89b;
    --dark-color: rgb(29, 43, 72);
    --dark-color-opacity: rgba(29, 43, 72, 0.5);
    --light-color: #ffffff;
    --dark-bg-color: #bdb4c6;
    --light-bg-color: #f3f0f3;
    --gradient-color: linear-gradient(to left, #314777, #666890, #948caa, #bdb4c6, #e3dee4);
    --shadow-text: 2px 1px 6px hsl(221, 42%, 15%), 4px 3px 3px hsl(221, 42%, 20%);
    --shadow-box: 3px 1px 10px hsl(221, 42%, 10%), 5px 3px 10px hsla(221, 42%, 30%, 0.50);
}

html {
    font-size: 16px;
    height: 100%;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

p {
    margin: 0.5rem 0px;
}

h1 {
    font-family: var(--secondary-font-family);
    font-weight: lighter;
    font-size: 3.5rem;
    margin-top: 1.5rem;
}

h2 {
    color: var(--light-color);
    font-weight: lighter;
    font-size: 2rem;
}

h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bolder;
}

img {
    width: 100%;
}

nav {
    z-index: 2;
    position: fixed;
    display: flex;
    height: 3rem;
    width: 100%;
    background-image: var(--gradient-color);
    box-sizing: border-box;
    box-shadow: var(--shadow-box)
}

nav ul {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    list-style: none;
}

nav ul li {
    font-size: 0.8rem;
    text-align: center;
    padding: 1.6rem;
}

nav ul li a {
    text-transform: uppercase;
    color: var(--light-color);
} 

nav ul li a:hover {
    color: var(--secondary-color);
    text-shadow: var(--shadow-text);
    transition: text-shadow ease 0.5s, color ease 0.5s;
}

section:nth-of-type(2) {
    background: var(--light-bg-color);
}

header {
    min-height: 100vh;
    background-image: var(--gradient-color);
}

header .flex-section{
    padding-top: 3rem;
}

footer {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    align-content: center;
    text-align: right;
    padding-right: 2rem;
    background: var(--dark-bg-color);
    min-height: 20vh;
}

header span {
    font-family: var(--secondary-font-family);
    color: var(--light-color);
    text-shadow: var(--shadow-text);
    font-size: 3.5rem;
    line-height: 2.5rem;
}

.flex-section {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    min-height: calc(100vh - 3rem);
    padding: 1.5rem;
}

.content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 53%;
    padding: 0 2rem;
    word-break: break-word; 
    box-sizing: border-box;
}

.image-container {
    display: flex;
    align-content: center;
    width: 32%;
}


#projects .content-container {
    width: 70%;
}

.links-container a {
    color: var(--light-color);
}

.links-container a:hover {
    color: var(--primary-color);
    transition: color ease 0.5s;
}

.link:hover, .link:hover > i {
    color:  var(--secondary-color);
    transition: color ease 0.2s;
}

.button-download {
    align-self: flex-end;
    font-size: 1rem;
    font-weight: 200;
    text-align: center;
    padding: 0.3rem 0.5rem;
    width: 25%;
    color: var(--light-color);
    border: 0.1rem solid var(--light-color);
    border-radius: 1.2rem;
}

.button-download:hover {
    color: var(--dark-color);
    background-color: var(--light-bg-color);
    transition: background-color, font-weight, color ease-in-out 0.7s;
}

.links-container {
    display: flex;
    align-items: center;
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    box-sizing: border-box;
}

.gallery-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 1rem;
}

.gallery-container > div {
    position: relative;
    width: 45%;
}
  
.gallery-img {
    width: 100%;
    opacity: 1;
    transition: .5s ease;
    backface-visibility: hidden;
}
  
.gallery-icon-container {
    background-image: var(--gradient-color);
    position: absolute;
    display: flex;
    left:0px;
    top: 0px;
    width: 100%;
    height: 100%;
    transition: .5s ease;
    opacity: 0;
}

.gallery-icon-container:hover  {
    opacity: 0.8;
}

.gallery-icon {
    margin: auto auto;
    color: var(--light-color);
}
  
.mt-2 {
    margin-top: 2rem;
}
  
.mr-1 {
    margin-right: 1rem;
}

.mr-2 {
    margin-right: 2rem;
}

.ml-1 {
    margin-left: 1rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


@media only screen and (max-width: 1000px) {
    html {
        font-size: 14px;
    }

    h2 {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 980px) {
    h1 {
        font-size: 3rem;
    }
}


@media only screen and (max-width: 870px) {
    header {
        align-content: center;
        justify-content: center;
    }

    .button-download {
        width: 50%;
        margin-bottom: 1rem;
    }
}

@media only screen and (max-width: 700px) {
    header span {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    header .content-container {
        text-align: center;
    }

    .button-download {
        align-self: center;
    }

    nav ul {
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        padding: 0;
    }

    .flex-section {
        flex-flow: column wrap;
        padding-top: 3rem;
    }
    
    .content-container {
        width: 100%;
    }
    
    #projects .content-container {
        width: 100%;
    }
    
    .image-container {
        align-self: center;
        width: 70%;
    }
    
    header .image-container{
        width: 60%;
    }
    
    .links-container {
        justify-content: center;
        margin: 1rem 0;
        position: relative;
        left: auto;
        bottom: auto;
    }

    .gallery-container > div {
        margin-top: 1rem;
        width: 100%;
    }
}

@keyframes moveHorizontally {
    0%, 100% {
            bottom: 0rem;
    }
    50% {
        bottom: 0.5rem;
    }
} 
    
#img-about {
    position: relative;
    animation: moveHorizontally 2s ease infinite;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto;
    background-color: var(--dark-color); 
    background-color: var(--dark-color-opacity);
  }
  
  .modal-content {
    cursor: zoom-out;
    margin: auto;
    display: block;
    width: 80%;
  }
  
  .modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    0% {
        transform: scale(0)
    }
    100% {
        transform: scale(1)
    }
  }