/*************************************************************************************
*
* External
*
*************************************************************************************/

@import url("https://use.typekit.net/gqp2vyu.css");
@import url('/birdview/birdview.css');
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;500;600&display=swap");

/*************************************************************************************
*
* Base
*
*************************************************************************************/

body{
    margin: 0;
    padding: 0;
    color: #000;
    background-color: #f5f5f5;
    overflow-y: scroll;
}

a, button, label, input{-webkit-tap-highlight-color: transparent; cursor: pointer;}

a,
u {
    /* text-decoration-skip: ink; */
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

img{border-style: none;} /* Removes borders around images on Internet Explorer */
button{-webkit-appearance: none; -moz-appearance: none;}
button::-moz-focus-inner {border: 0;}
input[type=button]{-webkit-appearance: none;}
*{box-sizing: border-box;}

/*************************************************************************************
*
* Typography
*
*************************************************************************************/

body{
    font-family: "Futura-PT", "Calibri", sans-serif;
    font-size: 16px;
    line-height: 1;
}

/*************************************************************************************
*
* Grid
*
*************************************************************************************/

.main{
    display: block; /* For Internet Explorer */
    display: grid;
    padding: 0 8px;
    grid-template-columns: repeat(auto-fit, 300px);
    grid-gap: 8px;
    justify-content: center;
}

.header{
    grid-column: 1/5;
}

.nav{
    grid-column: 1/5;
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    grid-auto-rows: minmax(150px, auto);
    grid-gap: 8px;
    grid-auto-flow: dense;
    justify-content: center;
}

.footer{
    grid-column: 1/5;
}

/*************************************************************************************
*
* Header
*
*************************************************************************************/

.header h1{
    max-width: 7em;
    margin: 0.25em auto 0.125em;
    text-align: center;
    color: inherit;
    font-weight: 400;
    font-size: 2.5em;
}

.header h1 a{
    display: block;
    color: inherit;
    text-decoration-line: none;
}

.header img{
    display: block;
    margin: 0.5em auto 0.25em;
    max-width: 100%;
    height: auto;
}

/*************************************************************************************
*
* Introduction
*
*************************************************************************************/

.intro{
    max-width: 600px;
    margin: auto;
    padding: 0.5rem 0;
    text-align: justify;
    font-size: 1.25em;
    line-height: 1.4;
    
    /* max-width: 608px; */
    padding: 0.6125em 0;
    font-weight: 300;
    font-size: 1.3125em;
    line-height: 1.5;
    text-align: left;
}

.intro a{
    text-decoration-line: none;
    color: inherit;
    font-weight: 500;
}

#email{
    color: #d14836;
    white-space: nowrap;
}

#Twitter{
    color: #1B95E0;
    color: #1DA1F2;
    color: #000;
    white-space: nowrap
}

#LinkedIn{
    color: #0077b5;
    white-space: nowrap;
}

#GitHub {
    color: #2B3137;
}

.intro a:hover,
.intro a:active{
    text-decoration-thickness: 2px;
    text-decoration-line: underline;
}

/*× Tippy tooltips */
html .tippy-box[data-theme~='light-border'] {
    --tooltip-border-color: #777;

    font-size: 17px;
    line-height: 1;
    color: #444;
    border-color: var(--tooltip-border-color);
}

html .tippy-box[data-theme~='light-border'] > .tippy-content {
    padding: 6px 8px;
}

html .tippy-box[data-theme~='light-border'][data-placement^='top'] > .tippy-arrow::after {
    border-top-color: var(--tooltip-border-color);
}
html .tippy-box[data-theme~='light-border'][data-placement^='bottom'] > .tippy-arrow::after {
    border-bottom-color: var(--tooltip-border-color);
}
html .tippy-box[data-theme~='light-border'][data-placement^='left'] > .tippy-arrow::after {
    border-left-color: var(--tooltip-border-color);
}
html .tippy-box[data-theme~='light-border'][data-placement^='right'] > .tippy-arrow::after {
    border-right-color: var(--tooltip-border-color);
}

/*************************************************************************************
*
* Filters
*
*************************************************************************************/

.filters{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    max-width: 608px;
    margin: 0.5em auto;
}

.filters button{
    flex: auto;
    margin: 0.125em;
    padding: 0.25em 0.5em;
    white-space: nowrap;
    text-align: center;
    color: inherit;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    border-radius: 0.25em;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* backdrop-filter: blur(20px); */
    background-color: #efefef;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.filters button:first-of-type{
    background-color: #d5d5d5;
    /* background-color: #fff; */
}

.filters button:active,
.filters button:focus{
    background-color: #dedede;
    outline: none;
}

.filters button.selected_filter{
    color: #fff;
    background: #444;
    outline: none;
}

.nav_item.filtered_out,
.archive_item.filtered_out{
    display: none;
}

/*************************************************************************************
*
* Cards
*
*************************************************************************************/

.nav_item{
    display: flex;
    position: relative;
    flex-flow: column;
    align-items: flex-end;
    color: inherit;
    text-decoration-line: none;
    background-color: #fff;
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.nav_item:active{
    transform: scale(0.98);
    box-shadow: 0 0.125em 0.125em rgba(0, 0, 0, 0.2);
    outline: none;
}

.nav_item img{
    position: absolute;
    display: block;
    left: 0;
    top: 0;
}

.nav_item h2{
    position: relative;
    width: 50%;
    margin: 0;
    padding: 9px 0 5px 9px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    transform-origin: 0% 50%;
    transform: scaleY(1.04);
}

.nav_item p{
    position: relative;
    width: 50%;
    margin: 0;
    padding: 0 9px;
    font-weight: normal;
    font-size: 15px;
    line-height: 16px;
    hyphens: manual;
}

.nav_item time{
    position: absolute;
    right: 9px;
    bottom: 7px;
    font-size: 14px;
    font-weight: 400;
}

/*************************************************************************************
*
* Cards types
*
*************************************************************************************/

.tall{
    grid-row: span 2;
    display: block;
    /* For browsers without CSS Grid */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.centered{
    display: block;
}

.centered h2{
    width: 100%;
    padding: 10px 0;
    text-align: center;
    transform-origin: 50% 50%;
}

.centered p{
    width: 100%;
    padding: 0 10px;
    line-height: 17px;
}

/*************************************************************************************
*
* Featured cards
*
*************************************************************************************/

.nav_item ul{
    border-top: 1px solid rgba(0, 0, 0, 0.075);
    list-style: none;
    margin: 0;
    padding: 8px 10px 0;
    font-size: 15px;
}

.nav_item li{
    margin-bottom: 0.75em;
    color: inherit;
    font-weight: 600;
    line-height: 1.125em;
    transform-origin: 0 50%;
    transform: scaleX(0.95);
}

.nav_item a{
    color: #111;
    text-decoration-line: none;
}

.nav_item a:hover,
.nav_item a:active,
.nav_item a:focus{
    color: inherit;
    background: transparent;
    box-shadow: none;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
}

.nav_item ul time{
    position: static;
    display: block;
    margin: 0.125em 0 0;
    font-family: "Futura-PT";
    font-size: inherit;
    opacity: 0.6;
}

.nav_item li:last-child{
    position: absolute;
    right: 0.925em;
    bottom: 0;
    font-size: 1em;
    font-weight: 400;
    line-height: 1;
}

/*************************************************************************************
*
* Card specific
*
*************************************************************************************/

.nav_item_feed{
    /* dedicated code inside home/feed-card.css */
}

.nav_item_blog{
    background: #f3f2ed url(/blog/elements/icon_blog.svg) no-repeat scroll 10px 6px;
    background-size: 24px;
    border: 4px double #bbb;
    /* grid-column: -2 / -1; */
}

.nav_item_ui_primitives                  {background: #fefff6; background: #e5e6e0;}
.nav_item_good_frame                     {background: #fff; /*background: #EBEDEE;*/}
.nav_item_spritekit_soft_shadows         {}
.nav_item_spritekit_box2d                {}
.nav_item_spritekit_offline_rendering    {}
.nav_item_spritekit_inertial_camera      {background: #fff;}
.nav_item_ideapolis                      {background: #acacac;}
.nav_item_stagger                        {background: #fff;}
.nav_item_filtreur                       {background: #ffdcdc; background: #fff;}
.nav_item_showlog                        {background: #e5efff; background: #fff;}
.nav_item_cv                             {background: #f8faf5;}
.nav_item_statement                      {background: #f8faf5;}
.nav_item_papers                         {background: #fff; border: 4px double #bbb;}
.nav_item_backspace                      {background: #ffd268;}
.nav_item_stacking                       {background: #fff;}
.nav_item_reading_list                   {background: #fff;}
.nav_item_talks                          {background: #222;}
.nav_item_birdview                       {background: #02c6ed;}
.nav_item_making_of                      {background: #97a0a9;}
.nav_item_plane                          {background: #7c8f96;}
.nav_item_3d                             {background: #212830;}
.nav_item_coc                            {background: #669447;}
.nav_item_keyboard                       {background: #343434;}
.nav_item_3d_resources                   {background: #808080;}
.nav_item_animations                     {background: #000;}
.nav_item_family_photos                  {background: #ded7ba;}
.nav_item_quotes                         {background: #eee9d6;}
.nav_item_birdview_prototype             {background: #af9e72;}
.nav_item_interview                      {background: #060402;}
.nav_item_plain_drawing                  {background: #fff;}
.nav_item_schemata                       {background: #fff;}

.nav_item_contact{
    background: #fff;
    
    border: 4px solid transparent;
    border-image: 4 repeating-linear-gradient(-45deg,
                red 0, red 1em,
                transparent 0, transparent 2em,
                #58a 0, #58a 3em,
                transparent 0, transparent 4em);  
    /*
    border: 1em solid transparent;
    background: linear-gradient(white, white) padding-box,
                repeating-linear-gradient(-45deg, 
                red 0, red 12.5%,
                transparent 0, transparent 25%,
                #58a 0, #58a 37.5%,
                transparent 0, transparent 50%)
                0 / 3em 3em;
    */
}

/*************************************************************************************
*
* Footer
*
*************************************************************************************/

.footer{
    max-width: 600px;
    margin: auto;
    color: #555;
    font-weight: normal;
    background: #f5f5f5;
}

.footer p{
    margin: 1em auto;
    text-align: center;
    line-height: 1.6;
}

.footer a{
    color: inherit;
    padding: 2px;
    white-space: nowrap;
}

.shortcuts{
    margin: 1em auto;
    padding: 0.75em 0;
    line-height: 2.4;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 0.25em;
}

.shortcuts li{
    list-style: none;
    display: inline-block;
    margin: 0 1em;
}

.keycap{
    display: inline-block;
    vertical-align: top;
    min-width: 2.25em;
    height: 2.25em;
    margin: 0;
    padding: 0;
    text-align: center;
    color: inherit;
    font-family: inherit;
    font-weight: 500;
    font-size: inherit;
    line-height: 2.25em;
    border-radius: 0.25em;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.05);
}

.keycap:active,
.keycap:focus{
    background-color: rgba(0, 0, 0, 0.2);
    outline: none;
}

.keycap.selected_filter{
    color: #fff;
    background: #444;
    outline: none;
}

/*************************************************************************************
*
* Responsive
*
*************************************************************************************/

@media screen and (min-width: 624px){
    .main{
        background: transparent url('/home/background.jpg') repeat-y scroll center top;
        background-size: 1600px 1200px;
    }
}

@media screen and (max-width: 623px){
    body{
        /* font-size: 15px; */
    }

    .main{
        background: transparent url('/home/background_mobile.jpg') repeat-y scroll center top;
        background-size: 640px 1200px;
    }

    .header{
        max-width: 300px;
        margin: auto;
        
        max-width: 320px;
    }

    .filters button{
        flex: 0.5;
    }

    .footer{
        max-width: 300px;
    }

    .shortcuts li{
        display: block;
        padding: 0.15em 0;
    }
}

/*************************************************************************************
*
* Super rules
*
*************************************************************************************/

.hidden{
    display: none!important;
}

.white{
    color: #fff;
}

.black{
    color: #000;
}
