/* DEFAULT STYLES */
@import url('https://fonts.googleapis.com/css?family=Barlow');

html {
    box-sizing: border-box;
    font-family: "Barlow", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 16pt;
    scroll-behavior: smooth;
 }
 
 *,
 *::before,
 *::after {
    box-sizing: inherit;
 }

body {
    background-color: #605154;
    color: #fffcfc;
    margin: 0;
    padding: 0;
}

#skipToMain:focus {
    position: relative;
    left: 0;
 }

/* Header */

#header {
    height: 50px;
    padding: 10px;
}

h1 {
    font-weight: normal;
    margin:0;
    padding-bottom: 12px;
    font-size: 18pt;
    float: left;
}

#name {
    color: #9CDCFE;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    float: right;
}

ul li {
    display: inline-block;
    margin: 0 12px;
}

nav a {
    text-decoration: none;
    color: #9CDCFE;
}

#title-img {
    display: block;
    padding-bottom: 95vh;
    background: url(./../images/IMG_8123.jpg) no-repeat center center;
    -moz-background-size: cover;
    background-size: cover;
}

.hidden {
    position: absolute;
    left: -10000px;
 }


/* Intro section */
#intro, #contact {
    background-color: #fffcfc;
    color: #605154;
    margin: 0;
    padding: 100px;
}

/* Portfolio section */

#portfolio, #contact {
    text-align: center;
}

#portfolio > h2 {
    color: #d9c8c0;
}

a {
    color: #b9a89e;
}

a:hover {
    color: #f5f5dc;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.slides {
    display: none;
}

.screenshot {
    margin-top: 20px;
    width: 80%;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: #d9c8c0;
    background-color: rgba(0,0,0,0.8);
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: -25px;
    border-radius: 3px 0 0 3px;
}

.next {
    right: -25px;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 10px 16px;
    margin-top: 20px;
    /* position: absolute;
    top: 50px; */
    width: 100%;
    text-align: center;
}

.text a {
    color: #f7d8d8;
}

.text a:hover {
    color: #b69d9d;
}

.project-name {
    color: #f2f2f2;
    background-color: #292526;
    font-size: 30px;
    padding: 8px 12px;
    /* position: absolute; */
    width: 100%;
    /* top: 0; */
    border-radius: 3px 3px 3px 3px;
}

#slide-dots {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 5px 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot-hover {
    background-color: #717171;
}

/* Fading animation for slideshow */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}

/* Case Study Modal */

.case-study-link {
    cursor: pointer;
}

#modal-case-study {
    display: none;
    position: fixed;
    z-index: 1;
    padding: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

#case-study {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: left;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }

/* Footer */


/* Responsiveness */
@media all and (max-width:1366px) {
    #header {
        height: 50px;
    }

    #title-img {
        height: 93vh;
    }

    h1 {
        font-size: 16pt;
    }

    ul li {
        font-size: 16pt;
    }
}

@media all and (max-width:570px) {
    nav ul {
        display: none;
    }
}

@media all and (max-width:480px) {
    h1 {
        font-size: 12pt;
    }

    h2 {
        font-size: 12pt;
    }

    ul li {
        font-size: 12pt;
    }

    #portfolio p {
        font-size: 10pt;
    }

    .project-name {
        font-size: 14pt;
    }

    .text {
        display: none;
    }
    
    .prev {
        left: 0px;
        border-radius: 3px 0 0 3px;
    }
    
    .next {
        right: 0px;
        border-radius: 3px 0 0 3px;
    }

    #intro, #contact {
        font-size: 10pt;
        padding: 25px;
    }

    #footer p {
        font-size: 10pt;
    }
    
}

@media all and (max-width:320px) {
    h1 {
        padding-top: 4px;
    }

    #name {
        display: none;
    }
}