/* Main CSS file for mikematter.com */

/* Color */
/*
RED : #703030;
DARK GREY : #2F343B
/*
/* Typography */

h1 {font-size: 4em; line-height: 1.25em; padding-bottom: .5em;}
h2 {font-size: 3.5em; line-height: 1.25em; padding-bottom: .25em; font-weight: 400;}
h3 {font-size: 2em; font-weight: 400; line-height: 1.25em; padding-bottom: .25em;}
p {font-size: 1.25em; font-weight: 200; line-height: 1.5em;}


/* Container */

html {font-family: helvetica; background: #2F343B;}
section {clear: both; }

#container { margin: 0 auto; overflow: hidden;}

/* Loading screen overlay */

@keyframes loading-animation {
    0% {transform: rotate(0deg)}
    40% {transform: rotate(360deg)}
    100% {transform: rotate(360deg)}
}


.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #272B30;
    left: 0;
    top: 0;
    z-index: 8999;
}

/* Header and logo */

header {
    margin: 0;
    padding: 0;
    width: 100%;
    background: #2F343B;
}


/* Menu */

.nav-title {
    position: fixed;
    z-index: 8001;
    color: #fff;
    font-size: .5em;
}

.menu-btn {
    position: fixed;
    z-index: 8001;
    right: 40px;
    top: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.menu-btn .top, .menu-btn .middle, .menu-btn .bottom {
    position: absolute;
    width: 100%;
    height: 15%;
    background: #fff;
    -webkit-transition: all .25s ease;
    transition: all .25s ease;
    box-shadow: 0px 0px 8px -1px #000;
}

.menu-btn .top, .menu-btn .middle {
    margin-bottom: 15%;
}

.menu-btn .top {top: 0;}

.menu-btn .middle {top: 30%;}

.menu-btn .bottom {top: 60%;}

.rotate-top {
    top: 30% !important;
    transform: rotate(45deg);
}

.rotate-bottom {
    top: 30% !important;
    transform: rotate(-45deg);
}

.btn-hide {opacity: 0;}

.menu-overlay{
    position: fixed;
    left: -100%;
    z-index: 8000;
    width: 100%;
    height: 100%;
    background: #2F343B;
    opacity: .99;
    -webkit-transition: all .25s ease-in;
    transition: all .25s ease-in;
}

.menu-overlay ul {
    position: relative;
    top: 50%;
}

.menu-overlay li {
    font-size: 4em; 
    padding: 1em 0;
    text-align: center;
}

.menu-overlay li a {
    text-decoration: none;
    color: #fff;
}

.menu-show {
    left: 0;
}

/* Arrow */

.arrow {
    position: relative; 
    z-index: 8000;
    height: 48px;
    top: 50%;
    margin-top: -200px;
    opacity: .5;
}

.arrow.right .arrow-top, .arrow.right .arrow-bottom {
    right: 10px;
}

.arrow-top, .arrow-bottom {
    position: absolute;
    height: 12px;
    background: #fff;
    width: 50px;
}

.arrow-top {
    transform: rotate(-45deg);
}

.arrow-bottom {
    bottom: 8px;
    transform: rotate(45deg);
}

.arrow.right .arrow-top {
    transform: rotate(45deg);
}
.arrow.right .arrow-bottom {
    transform: rotate(-49deg);
}

/* Slider */

.slider {
    position: relative;
    overflow: hidden;
}

.slider-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    
    filter: blur(6px);
    -webkit-transform: translateZ(0);
    -webkit-transition: all .75s;
    transition: all .75s;
}

.slider-shader {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 2;
    padding-top: 150px;
    padding-bottom: 75px;
    background: 75px;
    background: #333;
    opacity: .5;
}

.slider .previous-btn .previous-button, .slider .next-btn .next-button {
    position: relative;
    position: absolute;
    z-index: 3000;
    z-index: 1000;
    height: 100%;
    margin-top: 200px;
    cursor: pointer;
}

.slider .previous-btn .previous-button {
    
    width: 25%;
    padding-left: 5%;
    transition: all .1s ease;
}

.slider .next-btn .next-button {
    top: 0;
    right: 0;
    padding-right: 4%;
    width: 25%;
    text-align: right;
    transition: all .1s ease;
}

.cards {
    position: relative;
    width: 60%;
    height: 100%;
    margin: 0 auto;
}

.card {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 100%;
    color: #fff;
}

.card p {
    font-size: 1.5em;
}

@keyframes slideRight {
    0% {
        left: 0;
    }
    100% {
        left: 175%;
    }
}

@keyframes slideLeft {
    0% {
        left: 0;
    }
    100% {
        left: -175%;      
    }
}

@keyframes slideIn {
    100% {
        left: 0;
    }
}

.card-animate-right {
    animation: slideRight .75s ease-in-out;
    animation-fill-mode: forwards;
}

.card-animate-left {
    animation: slideLeft .75s ease-in-out;
    animation-fill-mode: forwards;
}

.card-animate-in {
    animation: slideIn .75s ease-in-out;
    animation-fill-mode: forwards;
}

.card img { display: none; }
.active { display: block; }
.hidden { display: none; }


.section-header {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 40px;
    color: #fff;
    text-align: center;
}

/* About Section */

#about {
    margin: 0 auto;
    color: #fff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.group {
    display: flex;
    align-items: center;
    align-content: center;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 75px;
}



.group .photos {
    position: relative;
    width: 60%;
}

.group .photos .photo-selector {
    position: absolute;
    width: 100%;
    bottom: -30px;
    display: flex;
    justify-content: center;
    height: 15px;
}

.group .photos .photo-selector .selector {
    height: 100%; 
    width: 15px;
    border-radius: 100%;
    margin: 0 2%;
    background: rgba(255, 255, 255, .9);
    z-index: 100;
}

.inactive-selector {
    opacity: .35;
}

.group .photos img {
    position: absolute;
    top: 0;
    width: 100%;
    -webkit-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.3);
    box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.3); 

}

.group p {
    width: 45%;
    padding: 2.5%;
    padding-left: 7.5%;
}

.hidden-img {
    z-index: 1;
}

.active-img {
    z-index: 10;
}

.animate-img {
    animation: animate-img;
    animation-duration: 1.25s;
    animation-fill-mode: forwards;
}

@keyframes animate-img {
    0% {z-index: 1;}
    35% {transform: translateX(110%);}
    50% {z-index: 11;}
    100% {transform: translateX(0); z-index: 11;}
}


/* Other work */

.website {
    color: #fff;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;   
}

.website:nth-child(3) {background: #272B30;}

.website-container {
    display: flex;
    width: 95%;
    margin: 0 auto;
    max-width: 1100px;
    margin-bottom: -20px;
}

.website:nth-child(3) .website-container {
    flex-direction: row-reverse;
}

.website-img, .website-text {
        transition: all .5s ease-out;
}

.website-img {
    width: 55%;
    padding-top: 5%;
}

.website-text {
    padding-top: 5%;
    padding-right: 2.5%;
    padding-left: 2.5%;
    width: 45%;
}

.website img {
    width: 90%;
    text-align: right;
    margin-left: 5%;
    -webkit-box-shadow: 0px -1px 30px 3px rgba(0,0,0,0.7);
    -moz-box-shadow: 0px -1px 30px 3px rgba(0,0,0,0.7);
    box-shadow: 0px -1px 30px 3px rgba(0,0,0,0.7);  
}

.website h3 {
    margin-bottom: .5em;
    font-size: 2.5em;
}

.website h3 a {
    color: #fff;
    text-decoration: none;
    border-bottom: 3px solid #DF5A49;
    padding-bottom: .25em;
}

.hide-website {
    margin-top: 80px;
    opacity: 0;
}



/* Contact Me section */

#contact-me {
    background: #272B30;
    padding-bottom: 50px;
}

#contact-me h2 {
    color: #fff;

}

#contact-me .row {
    display: flex;
    width: 60%;
    margin: 0 auto;
}

.col-3 {
    text-align: center;
    margin: 0 auto;
}

.icon {
    position: relative;
    margin: 0 auto;
    width: 40%;
    fill: currentColor;
    color: #fff;
    cursor: pointer;
    transition: all .5s ease;
    opacity: 1;
    top: 0;
}

.icon-hide {
    opacity: 0;
}

@keyframes pop {
    
    0% {transform: scale(.75); opacity: 0}
    100% {transform: scale(1); opacity: 1;}
    
}

.icon-pop {
    animation: pop .5s ease;
    animation-fill-mode: forwards;
}



/* Smaller Screens */


@media only screen and (max-width: 767px) {
    h1 {font-size: 2.75em; line-height: 1.25em; padding-bottom: .5em;}
    h2 {font-size: 2.5em; line-height: 1.25em; padding-bottom: .25em; font-weight: 400;}
    h3 {font-size: 1.5em; font-weight: 400; line-height: 1.25em; padding-bottom: .25em;}
    p {font-size: 1.0em; font-weight: 200; line-height: 1.5em;}
    
    .menu-overlay ul {
        position: relative;
        top: 40%;
    }
    .menu-btn {
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
    }
    
    .menu-overlay li {
        font-size: 3em; 
        padding: .5em 0;
    }    

    .arrow { top: 92%; }
    
    .arrow-top, .arrow-bottom {
        height: 8px;
        width: 40px;
    }
    
    .arrow-bottom { bottom: 16px; }
    
    .cards { width: 90%; }
    
    .website-container {
        display: flex;
        flex-direction: column-reverse;
        margin-bottom: -150px;
    }
    
    .website:nth-child(2) .website-container .website-text {
        padding-top: 0;
    }
    
    .website:nth-child(3) .website-container {
        flex-direction: column-reverse;
        margin-top: 20px;
    }
    
    .website-img {
        width: 75%;
        margin: 0 auto;
    }

    .website-text {
        padding-right: 2.5%;
        padding-left: 2.5%;
        width: 75%;
        margin: 0 auto;
    }
    
    .website h3 {
        margin-bottom: .5em;
        font-size: 1.75em;
    }
    
    .group {
        display: flex;
        flex-direction: column;
        width: 95%;
        margin-bottom: 20px;
    }
    
    .group .photos {
        position: relative;
        width: 90%;
        margin-bottom: 50px;
    }
    
    .group p {
        width: 90%;
        padding: 0;
        padding-left: 0;
        padding-bottom: 15px;
    }
    
    #contact-me .row {
        display: flex;
        width: 90%;
        margin: 0 auto;
    }
    
    #contact-me {padding-bottom: 20px;}
    #contact-me .section-header {
        padding-bottom: 10px;
    }
}

@media (max-width: 400px) {
    
    .website-img {
        width: 95%;
        margin: 0 auto;
    }
    
    .website-text { width: 85%; }

}

