body {
    background:
        /* top, transparent black, faked with gradient */
            linear-gradient(
                    rgba(0, 0, 0, 0.5),
                    rgba(0, 0, 0, 0.5)
            ),
                /* bottom, image */
            url('../img/bg.png');
    background-size: contain;
    color: rgba(255,255,255,1);
    opacity:0;
    transition: opacity 2s;
    -webkit-transition: opacity 2s;
    font-size: 28px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

#fadin body {
    opacity: 1;
    -webkit-transition: opacity 2s ease-in;
    -moz-transition: opacity 2s ease-in;
    -o-transition: opacity 2s ease-in;
    -ms-transition: opacity 2s ease-in;
    transition: opacity 2s ease-in;
}
/* Nav bar */
.navigation {
    list-style: none;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    justify-content: center;
    margin-bottom: 20px;
}
.navigation a {
    text-decoration: none;
    display: block;
    padding: 1em;
}
.navigation a:hover {
    opacity: 0.7;
    transition: opacity 500ms ease-in-out;
    -moz-transition: opacity 500ms ease-in-out;
    -webkit-transition: opacity 500ms ease-in-out;
}
@media all and (max-width: 800px) {
    .navigation {
        justify-content: space-around;
    }
}
@media all and (max-width: 600px) {
    .navigation {
        -webkit-flex-flow: column wrap;
        flex-flow: column wrap;
        padding: 0;
    }
    .navigation a {
        text-align: center;
        padding: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .navigation li:last-of-type a {
        border-bottom: none;
    }
}
#logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    overflow: hidden;
}
.title {
    position: relative;
    top: -20px;
    font-size: 2.2em;
    text-align: center;
}
.slide {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    vertical-align: center;
}
.slide > div {
    width: 100%;
    height: 100%;
    background-size: cover;
    position: absolute;
    animation: slide 25s infinite;
    opacity: 0;
}
.slide > div:nth-child(2) {
    animation-delay: 5s;
}
.slide > div:nth-child(3) {
    animation-delay: 10s;
}
.slide > div:nth-child(4) {
    animation-delay: 15s;
}
.slide > div:nth-child(5) {
    animation-delay: 20s;
}

@keyframes slide {
    10% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
    40% {
        transform: scale(1.1);
    }
}
.slide2 {
    width: 400px;
    height: 600px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    vertical-align: center;
}
.slide2 > div {
    width: 100%;
    height: 100%;
    background-size: cover;
    position: absolute;
    animation: slide 25s infinite;
    opacity: 0;
}
.slide2 > div:nth-child(2) {
    animation-delay: 5s;
}
.slide2 > div:nth-child(3) {
    animation-delay: 10s;
}
.slide2 > div:nth-child(4) {
    animation-delay: 15s;
}
.slide2 > div:nth-child(5) {
    animation-delay: 20s;
}

@keyframes slide2 {
    10% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
    40% {
        transform: scale(1.1);
    }
}

/* ================================= */
/*===== Sidebar  =====*/
/* ================================= */

.sidebar {
    list-style-type: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 40%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.sidebar li {
    padding: 0.25em;
    color: #fff;
    width: 250px;
    -moz-transition-property: all;
    -o-transition-property: all;
    -webkit-transition-property: all;
    transition-property: all;
    -moz-transition-duration: 50ms;
    -o-transition-duration: 50ms;
    -webkit-transition-duration: 50ms;
    transition-duration: 50ms;
    -moz-transition-timing-function: ease-in;
    -o-transition-timing-function: ease-in;
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
}
.sidebar li:hover {
    opacity: 0.7;
    transition: opacity 500ms ease-in-out;
    -moz-transition: opacity 500ms ease-in-out;
    -webkit-transition: opacity 500ms ease-in-out;
}

.vertical-align {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
/* ================================= */
/*===== Footer  =====*/
/* ================================= */
.footer-main-block {
    background: transparent;
    text-align: center;
}
.footer-block {
    padding-bottom: 100px;
    border-bottom: 2px solid rgba(255,255,255,0.4);
}
.footer-logo {
    margin-top: 30px;
}
.footer-social li {
    display: inline-block;
    margin: 0 7px;
}
.footer-social li:first-child {
    margin-left: 0;
}
.footer-social li:last-child {
    margin-right: 0;
}
.footer-social li a {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    line-height: 30px;
    text-align: center;
}
.footer-social li a:hover {
    animation: bounce-two 1s;
}
.footer-social li a i {
    color: #FFF;
    font-size: 14px;
}
.fb-icon {
    background-color: #3B5998;
}
.twitter-icon {
    background-color: #1DA1F2;
}
.gplus-icon {
    background-color: #DD4B39;
}
.footer-heading {
    color: #FFF;
    text-transform: uppercase;
    padding-bottom: 42px;
}
.copyright {
    padding: 37px 0 15px;
}
.copyright-text p {
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}
.copyright-text p a {
    color: rgba(255,255,255,0.8);
}
.copyright-text p a:hover {
    color: goldenrod;
}

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 75%;
//max-width: 75%;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.out {
    animation-name: zoom-out;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(1)}
    to {-webkit-transform:scale(2)}
}

@keyframes zoom {
    from {transform:scale(0.4)}
    to {transform:scale(1)}
}

@keyframes zoom-out {
    from {transform:scale(1)}
    to {transform:scale(0)}
}

/* The Close Button */
.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;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
