:root {
    /* fonts */
    --serif-font: sans-serif;
    
    /* colors */
    --text-color: #303036;
    --text-alt-color: #ffffff;
    --link-color: #0067c0;
    --bg-color: #eeeeee;
    --bg-alt-color: #0067c0;
    --border-color: #626262;
    --post-info-color: #d9e8f6;
}

html {
    font-family: var(--serif-font);
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* layout: use a 3-cols grid, and put everything inside column 2 */
body {
    font-size: 1.1rem;
    line-height: 1.45;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr min(45rem, 90%) 1fr;
}

body > * {
    grid-column: 2;
}

body > header {
    background-color: var(--bg-alt-color);
    border-bottom: 1px solid var(--border-color);
    grid-column: 1 / -1;
    text-align: center;
    color: var(--bg-color);
}

body > header > h1 {
  max-width: 1200px;
  font-weight: bold;
  margin: 0.5rem auto 0rem auto;
}

body > header > h1 > a {
    text-decoration: none;
    color: var(--bg-color);
}

body > header > h2 {
    margin: 0rem;
    font-size: 1.2rem;
    padding-bottom: 1rem;
}

/* Adapt header's text size on small screen */
/*
@media only screen and (max-device-width: 600px) {
  body > header > h1 {
      font-size: 2rem;
  }
  
  body > header > h2 {
      font-size: 1rem;
  }
}
*/


body > header > nav {
    font-size: 1rem;
    padding: 1rem 0 1rem 0;
}

body > header > nav a {
    margin: 0 0.5rem 0rem 0.5rem;
    border: 1.5px solid var(--link-color);
    color: var(--text-alt-color);
}

body > main {
    
}

body > footer {
    margin-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

footer * {
    font-size: 0.85rem;
}

h1, h2, h3, h4, h5 {
    font-weight: normal;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.2rem;
    font-style: italic;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* change the look of the link when it is hovered */
a:hover {
    text-decoration: none;
}


.back_to_blog {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}


/* infos on the post */
.post_info {
    background-color: var(--post-info-color);
    text-align: center;
    border: solid 2px var(--border-color);
    margin-top: 2rem;
    /* box-shadow: 6px 6px 0px var(--border-color); */
}

.post_info > h1 {
    margin-bottom: 0rem;
    margin-top: 0rem;
    font-size:2.2rem;
    padding-top: 0.5rem;
}

.post_info > p {
    margin-top: 0.5rem;
    margin-bottom: 0rem;
    padding-bottom: 0.5rem;
    font-size: 1rem;
}