/**
 Fonts: we have two fonts, normal and bold.
 */
@font-face {
    font-family: Montserrat;
    src: url(Montserrat-ExtraLight.ttf);
    font-weight: normal;
}
@font-face {
    font-family: Montserrat;
    src: url(Montserrat-Light.otf);
    font-weight: bold;
}
@font-face {
    font-family: Montserrat;
    src: url(Montserrat-Medium.otf);
    font-weight: 900;
}


/**
 Selection color and html/body style.
 */
::selection {
    color: white;
    background: #5bb0d0;
}
html, body {
    /* no padding, margin */
    padding: 0;
    margin: 0;

    /* background color */
    background-color: white;

    /* general font style */
    font-family: 'Montserrat', 'Avenir Next', 'Arial', sans-serif;
}
body {
    /* FIXME overflow-y: scroll;*/
}


/**
 Video styles.
 */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/**
  List styles.
 */
ul {
    margin-top: 0px;
}
li {
    margin-top: 5px;
}


/**
  Link styles.
 */
a.inline,
a.inline:visited {
    text-decoration: none;
    color: #5bb0d0;
}
a.inline:hover {
    text-decoration: underline;
}
a.inactive {
    cursor: default;
}


/**
 The main content of a page: positioned in the center of body.
 */
.main-content {
    /* positioning */
    position: relative;
    width: 540px;
    margin: 40px auto 80px auto;

    /* font style */
    font-size: 12px !important;
}


/*
  Navigation bar: fix position on the top.
 */
nav {
    /* positioning */
    position: fixed;
    width: 100%;
    height: 40px;
    top: 0;
    margin: 0;
    padding: 0;
    z-index: 10;

    /* transparent background */
    background-color: rgba(255, 255, 255, 0.9);
}
nav .button {
    font-weight: normal;
    display: none;
    outline: none;
}
nav ul {
    /* remove default styling */
    margin: 0;
    padding: 0;

    /* text is centered */
    text-align: center;
}
nav ul li {
    /* remove default styling */
    padding: 0;
    display: inline;

    /* font size */
}

/* Nav buttons */
nav ul li a,
nav ul li a:visited {
    /* positioning */
    width: auto;
    margin: 9px 18px 5px 18px;

    /* remove default styling */
    text-decoration: none;
    display: inline-block;
    color: #888;
}
nav ul li a:hover,
nav ul li a:focus {
    color: #5bb0d0;
}
@media screen and (max-width: 600px) {
    nav {
        width: 150px;
        height: 100%;
        left: -180px;
        box-shadow: 0 0 30px black;
        z-index: 100;
        background-color: white;
    }
    nav .button {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        color: black;
        clear: both;
        background-color: rgba(255, 255, 255, 0);
        pointer-events: all;
        font-size: 1.4em;
    }
    nav ul {
        margin-top: 60px;
        text-align: left;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a {
        width: calc(100% - 40px);
        padding: 20px 0 20px 40px;
        margin: 0;
    }

    .main-content {
        /* positioning */
        position: relative;
        width: 80%;
        margin: 40px auto 80px auto;

        /* font style */
    }

    .about img {
        width: 120px;
    }
}


/*
  Footer.
 */
footer {
    background-color: white;
    width: 100%;
    height: 40px;
    position: fixed;
    bottom: 0;
    opacity: 0.95;
}
footer .icon-container {
    position: absolute;
    display: block;
    width: 160px;
    height: 40px;
    left: 50%;
    margin-left: -80px;
}
footer .icon {
    display: block;
    width: 33.33%;
    height: 40px;
    position: relative;
    float: left;
}
.icon a {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 50%;
    margin: 10px 0 0 -10px;
    background-size: 20px 20px;
    opacity: 0.2;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);

    /* transitions */
    transition: filter 0.5s, opacity 0.5s;
    -webkit-transition: -webkit-filter 0.5s, opacity 0.5s;
}
.icon a:hover {
    opacity: 1;
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);

    /* transitions */
    transition: filter 0.5s, opacity 0.5s;
    -webkit-transition: -webkit-filter 0.5s, opacity 0.5s;
}

/* Individual icon styles */
#gmail {
    background-image: url("../img/icons/gmail.png");
}
#linkedin {
    background-image: url("../img/icons/linkedin.png");
}
#facebook {
    background-image: url("../img/icons/facebook.png");
}


/*
  Home page.
 */
.home img {
    width: 80%;
    margin: 160px 10% 0 10%;
}
.home p {
    width: 80%;
    margin-left: 10%;
    margin-top: 20px;
}


.me p {
    width: 80%;
    margin-top: 160px;
}


/*
  About page.
 */
.about {
    border: solid 1px #DDD;
    background-color: #FBFBFB;
    min-height: 175px;
    margin: 60px auto 50px auto;
    padding-bottom: 16px;
}
.about figure {
    width: 180px;
    margin: 20px 10px 0 20px;
    float: left;
}
.about figcaption {
    text-align: center;
}
.about img {
    width: 170px;
    object-fit: cover;
    height: 244px
}
.about p {
    margin: 0;
    padding: 16px 20px 0 20px;
    text-align: justify;
}


/*
  Projects page.
 */
.blog {
    margin-top: 70px;
}
.blog a {
    text-decoration: none;
    color: inherit;
}
.blog a.inline,
.blog a.inline:visited {
    text-decoration: none;
    color: #5bb0d0;
}
.blog a.inline:hover {
    text-decoration: underline;
}
.blog-post {
    width: 90%;
    padding: 5%;
    border: 1px solid white;
    margin-top: 20px;
}

/* Card style */
.card {
    display: block;
    border: 1px solid #eee;
    background-color: #fafafa;
    -webkit-transition: border 0.5s, box-shadow 0.5s;
    transition: border 0.5s, box-shadow 0.5s;
}
.card.active:hover {
    border: 1px solid #ddd;
    box-shadow: 0 0 20px #ddd;
    -webkit-transition: border 0.5s, box-shadow 0.5s;
    transition: border 0.5s, box-shadow 0.5s;
}


/* Blog content elements */
.blog-post .title {
    width: 100%;
    margin: 0;
    text-align: left;
}
.blog-post .date {
    width: 100%;
    height: 20px;
    text-align: left;
    margin-bottom: 5px;
    color: gray;
}
.blog-post .content {
    width: 100%;
    text-align: justify;
}
.blog-post ul {
    margin-bottom: 0;
}
