* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

html {
    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 1s; /* Firefox < 16 */
        -ms-animation: fadein 1s; /* Internet Explorer */
         -o-animation: fadein 1s; /* Opera < 12.1 */
            animation: fadein 1s;
    font-family: "Montserrat", sans-serif;
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: white;
    height: 100%;
    width: 100%;
    z-index: 0; 
    text-align: center; 
    color: #757575;
}

#front-page {
    display: block;
    width: 100%;
    min-height: 105vh;
    padding-top: 10%;
    background-image: url("resources/front-bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.wrapper {
    display: block;
    width: 100%;
    text-align: left;
    padding: 4rem 0;
    background-color: rgba(20,20,20,0.8);
    border-top: 1px solid #606060;
    border-bottom: 1px solid #606060;

}

.intro {
    display: block;
    margin: 0 auto;
    padding: 0 2rem;
    max-width: 960px;
    font-size: 1.5rem;
    color: white;
}

.intro h1 {
    font-size: 3.5rem;
    text-align: left;
    font-weight: bolder;
}

.intro h1 span {
    background-color: #0055B1;
    color: white;
    padding: 0 1rem;
}

.intro h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.intro p {
    text-align: left;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.1rem;
    margin-bottom: 3rem;
}

.intro a {
    background-color: #0055B1;
    text-align: center;
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border-bottom: 3px solid #0055B1;
    border-top: 3px solid #0055B1;
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.1rem;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
}

.intro a:link, a:visited {
    background-color: #0055B1;
    color: white;
    
}

.intro a:hover, a:active {
    background-color: white;
    padding: 0.5rem 2rem;
    border-bottom: 3px solid #0055B1;
    border-top: 3px solid white;
    color: #0055B1;
}

#portfolio {
    margin: 0 auto;
    padding: 20px 30px;
    background-color: #F0F0F0;
    color: #757575;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3.5rem 0;
}

.sec-title {
    letter-spacing: 0.1rem;
    color: #0055B1;
    font-size: 3rem;
    text-align: center;
    font-weight: bolder;
}

.container > p {
    padding-top: 20px;
    font-size: 1.2rem;
    padding-bottom: 1rem;
}

article {
    width: 100%;
    background-color: #F0F0F0;
    text-align: left;
    padding: 20px;
    overflow: hidden;
    padding: 3rem 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #D1D1D1;
}

article:nth-of-type(even) .pic {
    float: right;
}

article:nth-of-type(odd) .description {
    float: right;
}

article:last-of-type {
    border-bottom: none;
}

.pic {
    max-width: 40%;
    float: left;
}

.pic img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.description {
    max-width: 60%;
    padding: 0 2rem;
    text-align: left;
}

.description h2 {
    padding-bottom: 1rem;
    color: #0055B1;
}

.description p {
    padding-bottom: 1rem;
}

.description span a {
    margin-top: 2em;
}

.description span a {
    background-color: #0055B1;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: white;
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid #0055B1;
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.1rem;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}


.description span a:hover, .description span a:active {
    background-color: white;
    border: 1px solid #0055B1;
    color: #0055B1;
}

#skillset {
    padding-bottom: 1rem;
    border-top: 3px solid #0055B1;
    border-bottom: 3px solid #D6D6D6;
}

#skillset a {
    color:#0055B1;
    text-decoration: none;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #0055B1;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

#skillset a:hover, #skillset a:active {
    background-color: #0055B1;
    border-bottom: 1px solid #0055B1;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    color: white;
}

#skillset .sec-title {
    padding-bottom: 2rem;
}

#skillset i {
    font-size: 4rem;
    color: #0055B1;
    padding-bottom: 1rem;
}

.skills {
    display: table-cell;
    text-align: center;
    padding: 1rem;
    border-right: 1px solid #0055B1;
}

#skillset .container > p {
    padding-top: 3rem;
    padding-bottom: 0;
    color: #0055B1;
    font-weight: bold;
}

.skills:last-of-type {
    border: none;
}

.skills h2 {
    color:#0055B1;
    padding-bottom: 1.5rem;
}

#contact {
    clear: both;
    background-color: #0055B1;
    border-top: 3px solid #003D80;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

#contact h1 {
    letter-spacing: 0.1rem;
    font-size: 3rem;
    text-align: center;
    font-weight: bolder;
}

#contact p {
    padding-bottom: 2rem;
}

#contact a {
    text-decoration: none;
    font-size: 1.2rem;
    color: white;
    padding: 0.5rem 1rem;
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.1rem;
    margin-bottom: 2rem;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
}

#contact a:hover, #contact a:active {
    font-size: 1.3rem;
    background-color: white;
    border-radius: 50px;
    color: #0055B1;
}

footer {
    background-color: #272822;
    color: #757575;
    text-align: center;
    vertical-align: middle;
    padding: 20px 0;
}


@media all and (max-width:800px) {
    
   #front-page h1, #skillset h1, #portfolio h1, #contact h1 {
        font-size: 2.5rem;
    }

    #front-page h2, #skillset h2, #contact h2 {
        font-size: 2rem;
    }

    #skillset * {
        display: block;
        border: 0;
    }

    #skillset {
        padding-top: 2rem;
    }

    #skillset .sec-title {
        padding: 0; 
        margin: 0;
    }

    #skillset i:last-of-type {
        margin-top: 2rem;
    }

    #skillset a {
        width: 60%;
        margin: 0.2rem auto;
        background-color: #0055B1;
        padding: 0.3rem;    
        border-radius: 50px;    
        color: white;
    }

    #portfolio * {
        float: none;
        max-width: 100%;
    }

    #portfolio .container {
        padding-bottom: 0;

    }

    .description {
        padding: 0.5rem 0;
        text-align: center;
    }

    .description span a {
        margin: 0.2rem auto; 
    }

    #contact {
        padding: 1.5rem auto;
    }

    #contact .container {
        width: 95%;
        padding: 1.5rem 0
    }

    #contact .container h1 {
        padding: 0;
    }

    #contact .container a {
        font-size: 0.9rem;
        background-color: white;
        border-radius: 50px;
        color: #0055B1;
    }

    #contact .social a {
        margin: 0.5rem;
    }
}
 

/*
-- FADE IN ON PAGE LOAD
*/
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
