/********
GENERAL 
*********/
body {
    font-family: 'Montserrat Alternates', sans-serif;
    text-decoration: none;
    font-style: normal;
    margin: 0;
    font-size: 17px;
    transition: font-size .5s;
}

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.title {
    color: #4A98F2;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 4px;
}


img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    transition: transform .5s cubic-bezier(.32,-0.39,.07,1.37);
}

    img:hover {
        transform: scale(1.1);
    }


a, a:visited {
    text-decoration: none;
}

.p {
    font-family: "Muli", sans-serif;
}



/********
HEADING 
*********/

header {
    text-align: center;
    margin: 0;
    background-image: url("headerbg.png");
    background-color: #CCC;
    color: #FFF;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    animation: fadein 1s;
}

.header-text {
    padding: 0 10px;
}

header h1 {
    animation: fadein 1s forwards;
    animation-delay: 1s;
    opacity: 0;
}

header h2 {
    animation: fadein 1s forwards;
    animation-delay: 2s;
    opacity: 0;
}

header h3 {
    animation: fadein 1s forwards;
    margin-bottom: 60px;
    animation-delay: 3s;
    opacity: 0;
}

header a {
    animation: fadein 1s forwards;
    animation-delay: 3s;
    opacity: 0;
}


@media(min-width: 768px) {
    header {
        position: relative;
        min-height: 800px;
    }
}

header a.button, footer a.button {
    font-size: 15px;
    font-weight: 600;
    background-color: #4A98F2;
    color: #FFF;
    margin: 0 auto;
    border-color: #4A98F2;
    border-style: solid;
    padding: 2%;
    border-width: thin;
}


header a.button {
    padding: 5%;
}

    header a.button:hover, footer a.button:hover {
        color: #4A98F2;
        background-color: #FFF;
        transition: color .5s ease-out;
        transition: background-color .5s ease-out;
    }

    header a.button:active, footer a.button:active {
        text-transform: uppercase;
    }

h1, h2 {
    margin: 0;
    font-weight: 800;
    font-size: 40px
}

h2 {
    margin-bottom: 5%;
}

.button {
    display: inline-block;
}

/********
INTRO
*********/

#intro section p {
    max-width: 575px;
    margin: 10px auto;
    text-align: justify;
    padding: 10px 2.5%;
    transition: none;
    transform: none;
    animation: fadein 1.5s;
}


#intro {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
    margin-top: 50px;
}

    #intro section {
        padding: 0 10px;
    }


    #intro img {
    }

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#intro div {
    overflow: hidden;
    margin: 0 auto;
}



/********
T AND P
*********/

#tandp {
    margin: 10% auto;
    max-width: 1200px;
    border-top: solid;
    border-color: #CACACA;
    border-width: 1px;
}

    #tandp a {
        max-width: 30.8333%;
        margin: 1.25%;
        float: left;
        color: #000;
    }

    #tandp a, #tandp p {
        text-align: center;
    }

    #tandp p {
        padding: 0 1.5%;
    }

    #tandp a p {
        opacity: 0;
        transition: opacity .5s;
    }

    #tandp img:hover + p {
        opacity: 1;
    }



/********
EXPERIENCE AND EDUCTION
*********/

#xp, #education {
    border-top: solid;
    border-color: #CACACA;
    border-width: 1px;
    clear: left;
    padding-top: 5%;
    padding-bottom: 5%;
}

    #xp p, #education p {
        /*
	text-align: center;
	margin: 0 auto;
        */
    }

    #xp section p, #education section p {
        /*
	margin: 5% 0;
        */
    }

    #xp .sub, #education .sub {
        font-weight: 600;
    }

    #xp section:after, #education section:after {
        /*
	content: ""; 
    display: block; 
    margin: 0 auto; 
    width: 10%; 
    padding-top: 10px; 
    border-bottom: 4px solid #4A98F2;
        */
    }

    #xp div, #education div {
        /*
	display: flex;
	align-items: center;
	flex-direction: column;
	margin: 10px auto;
	max-width: 700px;
        */
    }


.xp-flex {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-top: 80px;
}

    .xp-flex p {
        margin: 0;
        font-family: 'muli';
        font-size: 18px;
        margin-bottom: 5px;
        max-width: 70%;
        margin: 0 auto;
    }

    .xp-flex .date {
        font-weight: bold;
        margin-bottom: 20px;
    }

    .xp-flex h4 {
        margin: 0;
        margin-bottom: 5px;
    }

.xp-flex-content {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}



#xp div section, #education div section {
    width: 100%;
}

#education {
    clear: left;
}



/********
PORTFOLIO
*********/

#port {
    border-top: solid;
    border-color: #CACACA;
    border-width: 1px;
    padding: 5% 0;
}

    #port section {
        margin: 0 auto;
        background-color: blue;
    }

    #port p {
        text-align: center;
    }

#gallery {
    margin: 0;
    padding: 0;
    list-style: none;
}

    #gallery li {
        float: left;
        margin: 2.5%;
        background-color: #f5f5f5;
        color: #bdc3c7;
        position: relative;

    }

    #gallery li a{

    }



    #gallery li a:after{
        position: absolute;
        content: "";
        width: 100%;        
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        background-color: rgba(255,255,255,.8);
        z-index: 4;
        height: 0;
        transition: all .2s linear;
    }

    #gallery li a:hover:after{
        height: 100%;
    }



.grey {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    opacity: 0;
    color: black;
}

#gallery img {
    transform: none;
}


#gallery li p {
    margin: 0;
    padding: 5% 0;
    color: #bdc3c7;
    font-size: 25px;
}


#gallery li:hover .grey {
    opacity: 1;
    transition: opacity .4s ease-in;
}

#galllery li div {
    position: relative;
}

#gallery li div p.grey {
    color: #666;
    text-align: justify;
    padding: 5%;
    width: 90%;
    font-size: 25px;
}



/********
QUOTE
*********/

#quote .sub {
    text-align: center;
    margin: 0 5%;
    font-family: "Muli", sans-serif;
}

#quote .title {
    margin-left: 5%;
    margin-right: 5%;
}

#quote {
    border-top: solid;
    border-color: #CACACA;
    border-width: 1px;
    clear: left;
    padding-top: 5%;
    padding-bottom: 5%;
}



/********
FOOTER
*********/


footer {
    text-align: center;
    padding: 5%;
    color: #ddd;
    background-color: #000;
}

    footer a.button:hover {
        color: #000;
        border-color: #000;
    }

    footer p, footer p a:hover {
        font-weight: 800;
        padding: 0;
    }

    footer #small {
        margin-top: 5%;
    }


    footer #mail {
        font-size: 15px;
    }

    footer p a, footer section a {
        background-color: #000;
        padding: 0;
        color: #FFF;
    }

    footer .social-icon {
        float: left;
    }

    footer section {
        margin: 0 calc(50% - 38.5px);
    }

    footer p a:active {
        text-transform: uppercase;
    }

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {

    .header-text {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-right: -50%;
        transform: translate(-50%, -50%);
    }
}
