/*
CSS document for Jan's personal website
October 2018

MEDIA QUERIES:

xs (for phones - screens less than 768px wide)
sm (for tablets - screens equal to or greater than 768px wide)
md (for small laptops - screens equal to or greater than 992px wide)
lg (for laptops and desktops - screens equal to or greater than 1200px wide)

@media (min-width: 768px) { ... }
@media (min-width: 992px) { ... }
@media (min-width: 1200px) { ... }
*/

html, body{
    margin: 0;
    padding: 0;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    color: #333;
}
html{
    overflow-y: scroll;
}

#wrapper{
    min-width: 320px;
}

.clear{
    float: none;
    display: block;
    clear: both;
    visibility: hidden;
}

.wrap{
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nobreak{
    white-space: nowrap;
}


/**
 * Flexbox
 */
.row{
    margin: 0;
}
.row > [class^="col-"]{
    padding: 0;
}


/**
 * Separators
 */
.sep, .sep-5, .sep-10, .sep-20, .sep-30, .sep-40, .sep-50, .sep-60, .sep-70, .sep-80, .sep-90, .sep-100{
    display: block;
    height: 20px;
    margin: 0; padding: 0;
    visibility: hidden;
}
.sep-5{  height: 5px }
.sep-10{ height: 10px; }
.sep-20{ height: 20px; }
.sep-30{ height: 30px; }
.sep-40{ height: 40px; }
.sep-50{ height: 50px; }
.sep-60{ height: 60px; }
.sep-70{ height: 70px; }
.sep-80{ height: 80px; }
.sep-90{ height: 90px; }
.sep-100{ height: 100px; }
.separator{
    width: 180px; height: 1px;
    margin: 40px auto;

    background: -moz-linear-gradient(left, rgba(204,204,204,0) 0%, rgba(204,204,204,1) 50%, rgba(204,204,204,0) 100%);
    background: -webkit-linear-gradient(left, rgba(204,204,204,0) 0%,rgba(204,204,204,1) 50%,rgba(204,204,204,0) 100%);
    background: linear-gradient(to right, rgba(204,204,204,0) 0%,rgba(204,204,204,1) 50%,rgba(204,204,204,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00cccccc', endColorstr='#00cccccc',GradientType=1 );
}


/**
 * Header
 */
header{
    border-top: 5px solid #333;
    border-bottom: 1px solid #e8e8e8;
}


/**
 * Home page hello header
 */
#hello-header{
    margin: 25px 0 35px;
}
#hello-header img{
    width: 200px;
    display: block;
    margin: 0 auto;
}
#hello-header .name{
    margin: 20px 0 10px;
    font-size: 36px;
    text-align: center;
    font-weight: 400;
}
#hello-header .title{
    text-align: center;
    color: #828282;
    font-weight: 300;
    font-size: 22px;
}
#hello-header .icons{
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    text-align: center;
}
#hello-header .icons li{
    display: inline-block;
    margin: 0 10px 0 0;
    padding-top: 10px;
}
#hello-header .icons li:last-child{
    margin: 0;
}
#hello-header .icons li a{
    font-size: 14px;
    border: 1px solid #666;
    color: #666;
    padding: 3px 5px;

    -webkit-border-radius: 5px;
    border-radius: 5px;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
#hello-header .icons li a:hover{
    text-decoration: none;
    color: #FFF;
    background: #666;
}
#hello-header .icons li .fa{
    font-size: 18px;
    line-height: normal;
    margin: 0 5px 0 0;
}


/**
 * Top bar:
 * main menu and logo home
 */
#logo-home{
    text-align: center;
}
#logo-home img,
#logo-home span{
    height: 50px;
    line-height: 50px;
    vertical-align: middle;;
}
#logo-home a{
    color: #333;
    font-size: 21px;
    font-weight: 400;
    display: inline-block;
    padding: 11px 0 6px;
    text-decoration: none;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
#logo-home a:hover{
    opacity: 0.75;
}
#logo-home img{
    margin: 0 10px 0 0;
}

#main-nav{
    text-align: center;
    list-style: none;
    margin: 0; padding: 10px 0;
    font-size: 16px;
}
#main-nav li{
    display: inline-block;
    margin: 0 0 0 12px;
}
#main-nav li:first-child{
    margin: 0;
}
#main-nav li a {
    display: block;
    padding: 5px 0;
    vertical-align: middle;
    color: #727272;
}
#nav-bar{
    border-bottom: 1px solid #e8e8e8;
}
#nav-bar #main-nav{
    float: none;
    text-align: center;
}
#nav-bar #main-nav li a{
    height: 40px; line-height: 40px;
}
@media (min-width: 768px) {
    #logo-home{
        text-align: left;
    }
    #logo-home a{
        padding: 6px 0;
    }
    #main-nav{
        text-align: right;
        padding: 6px 0;
    }
    #main-nav li a{
        padding: 0;
        line-height: 50px;
        height: 50px;
        vertical-align: middle;;
    }
}


/**
 * Resume timeline
 */
.timeline{
    margin: 20px 0 20px 5px;
}
.timeline .timeline-li{
    position: relative;
    box-sizing: border-box;
    border-left: 2px solid #205caa;
    display: table;
    padding: 0 0 25px 12px;
    text-align: left;
}
.timeline-li:last-child{
    padding-bottom: 2px;
}
.timeline .timeline-li:before{
    content: "";
    position: absolute;
    left: -7px; top: 0;
    width: 13px; height: 13px;
    border: 2px solid #205caa;
    box-sizing: border-box;
    background: #FFF;

    -webkit-border-radius: 20px;
    border-radius: 20px;
}
.timeline .timeline-li .text{
    line-height: normal;
    margin-top: -6px;
}
.timeline .timeline-li .text .title{
    color: #205caa;
    font-size: 18px;
}
.timeline .timeline-li .text .time{
    font-size: 14px;
    font-style: italic;
}
.timeline .timeline-li .text p{
    margin: 3px 0;
}
.timeline .timeline-li .title a{
    color: #333;
}

/**
 * Post list
 */
.post-list{
}
.post-list .post{
    margin: 0 0 30px;
}
.post-list .post:last-child{
    margin: 0;
}
.post-list .post .date{
    font-size: 15px;
    color: #818181;
    line-height: normal;
}
.post-list .post .link{
    font-size: 20px;
    line-height: normal;
}
.post-list .post p{
    margin: 5px 0 8px; padding: 0;
}
.post-list .post .thumb{
    position: relative;
    width: 100%; height: 100%;
    min-height: 150px;
    box-sizing: border-box;
}
.post-list .post .thumb.tall{
    min-height: 180px;
}
.post-list .post .thumb a{
    position: relative;
    display: block;
    width: 100%; height: 100%;
    overflow: hidden;

    -webkit-box-shadow: 0 0 2px 1px rgba(0,0,0,0.2);
    box-shadow: 0 0 2px 1px rgba(0,0,0,0.2);

    -webkit-border-radius: 4px;
    border-radius: 4px;
}
.post-list .post .thumb a img{
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    margin: auto;
    width: 100%; min-height: 100%;
}
.post-list .post .thumb .img{
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
}
.post-list .post .preview-img{
    margin-top: -10px;
}
@media (min-width: 768px) {
    .post-list .post .thumb{
        padding: 0 0 0 24px;
        min-height: 130px;
    }
}


/**
 * Main container section
 */
#container{
    padding: 30px 0;
}
@media (min-width: 768px) {
    #container{
        padding: 40px 0;
    }
}


/**
 * Typography
 */
.hide{
    display: none;
}

p{
    text-align: justify;
}

a:link, a:visited{
    color: #2a7ae2;
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}

h1,h2,h3,h4,h5,h6{
    line-height: 1.2em;
    font-weight: 400;
    letter-spacing: -1.5px;
    color: #000;
    padding: 0;
    margin: 30px 0 35px -3px;
}
h1{
    font-size: 30px;
    margin-top: 0;
}
h1.title{
    font-size: 34px;
    margin-top: 0;
}
h2{
    font-size: 30px;
    margin-bottom: 24px;
}
h3{
    font-size: 22px;
    margin-bottom: 20px;
}
h4{
    font-size: 22px;
    font-style: italic;
    margin-bottom: 20px;
}
.h-date{
    color: #818181;
    font-size: 16px;
    line-height: normal;
    margin: -5px 0 -5px;
}

blockquote{
    margin: 30px 0;
    border-left: 4px solid #e0d6be;
    font-style: italic;
    padding: 1px 0 1px 20px;
    font-size: 18px;
    opacity: 0.7;
    font-family: "Georgia", "Times New Roman", serif;
}
blockquote p{
    margin: 6px 0;
    text-align: left;
}

code{
    color: #000;
    /*border: 1px solid #e0d6be;*/
    background: #f7f5ef;
    font-size: 0.86em;
    line-height: normal;
    overflow: auto;
    padding: 1px 3px;

    -webkit-border-radius: 4px;
    border-radius: 4px;
}
pre{
    font-size: 14px;
    line-height: 1.6em;
    padding: 8px 12px;
    border: 1px solid #e0d6be;
    background: #f7f5ef;
    color: #000;
    margin: 0 0 5px;
    overflow-x: auto;

    -webkit-border-radius: 4px;
    border-radius: 4px;
}
pre.highlight{
    background: #f7f5ef;
}

#container .center{
    text-align: center;
}
#container .left{
    text-align: left;
}
#container .right{
    text-align: right;
}
#container .justify{
    text-align: justify;
}

figure{
    padding: 0;
    margin: 10px 0 25px;
    text-align: center;
}
img.fig{
    max-width: 100%;
    cursor: pointer;
    -webkit-border-radius: 3px;
    border-radius: 3px;

    -webkit-box-shadow: 0 0 2px 1px rgba(0,0,0,0.2);
    box-shadow: 0 0 2px 1px rgba(0,0,0,0.2);
}
img.fig.noborder{
    -webkit-box-shadow: none;
    box-shadow: none;
}
figure p, .caption{
    color: #555;
    font-size: 14px;
    margin: 0 0 10px 0; padding: 0 20px;
}

ul.list, ol.list{
    padding-left: 25px;
}
.list.none{
    list-style: none;
    padding-left: 20px;
}

.table-responsive{
    overflow-x: auto;
}
table.table{
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 15px;
}
table.table td, table.table th{
    padding: 4px 6px;
    border: 1px solid #e8e8e8;
}
table.table th{
    background: #f7f5ef;
    border-color: #e0d6be;
    font-weight: 400;
    color: #000;
}


/**
 * Image box (fullscreen)
 */
#imagebox{
    cursor: pointer;
    display: none;
    opacity: 0;
    position: fixed;
    width: 100%; height: 100%;
    background: rgba(180,180,180, 0.9);
    z-index: 3;
    box-sizing: border-box;
    padding: 20px;
}
#imagebox .box{
    position: relative;
    width: 100%; height: 100%;
}
#imagebox .box img{
    position: absolute;
    max-width: 100%; max-height: 100%;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    border: 1px solid rgba(0,0,0, 0.1);
}
#imagebox.visible{
    display: block;
    opacity: 1;
}
@media (min-width: 768px) {
    #imagebox{
        padding: 30px;
    }
}


/**
 * Footer
 */
footer{
    border-top: 1px solid #e8e8e8;
    font-size: 14px;
    color: #828282;
    line-height: 1.4em;
    text-align: center;
}
footer .wrap{
    padding: 30px 20px;
}
footer #footer-menu{
    list-style: none;
    margin: 15px 0 0; padding: 0;
}
footer #footer-menu li{
    display: inline-block;
    margin: 0 16px 0 0;
}
footer #footer-menu li:last-child{
    margin: 0;
}
footer .cookies{
    text-align: center;
    margin: 16px 0 0;
}
@media (min-width: 768px) {
    footer{
        text-align: left;
    }
    footer #footer-menu{
        text-align: right;
        margin: 0;
    }
    footer .cookies{
        margin: 0;
        text-align: right;
    }
}

/**
 * Button more posts
 */
.more-blog{
    position: relative;
    text-align: center;
    font-size: 16px;
    display: block;
    width: 130px;
    margin: 0 auto;
    padding: 5px 8px;
    border: 1px solid #217199;

    -webkit-border-radius: 4px;
    border-radius: 4px;
}
.more-blog:hover{
    text-decoration: none;
}
.more-blog .fa{
    position: absolute;
    margin: -8px 0 0 8px;
    top: 50%;
    font-size: 18px;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.more-blog:hover .fa{
    margin-left: 14px;
}
.more-blog .txt{
    margin-left: -6px;
}

/**
 * Tag picker
 */
.tags{
    list-style: none;
    margin: 0;
    padding: 0;
}
.tags li{
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    color: #217199;
    border: 1px solid #217199;
    padding: 4px 7px;
    margin: 0 10px 0 0;
    line-height: normal;

    -webkit-border-radius: 5px;
    border-radius: 5px;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.tags li:last-child{
    margin-right: 0;
}
.tags li:hover, .tags li.active{
    color: #FFF;
    background: #217199;
}

/**
 * Get it on Play store badge
 */
.play-store-badge{
    width: 160px;
    display: inline-block;
    margin: 5px 0;
}
.play-store-badge.center{
    margin: 5px auto;
}
.play-store-badge img{
    width: 100%;
}
