@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

body {
    margin: 0;
    background: url("/assets/images/backgroundLeft.png"), url("/assets/images/backgroundRight.png"), url("/assets/images/backgroundColor.png");
    background-repeat: repeat-y, repeat-y, repeat;
    background-position: top left, top right, top center;
    background-size: 800px, 800px;
    font-family: 'Barlow', sans-serif;
}

body header.indexPage {
    background: url("/assets/images/header-2.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top center;
    width: 100%;
    height:  180px;
    position: relative;
}

/* computer only */
@media (hover: hover) and (min-width: 500px) {
    body header.indexPage {
        background: url("/assets/images/header-2.png"), url("/assets/images/topLeftBunting.png"), url("/assets/images/topRightBunting.png");
        background-repeat: no-repeat;
        background-size: 800px, 200px, 200px;
        background-position: top center, top left, top right;
        width: 100%;
        height:  340px;
        overflow: auto;
        position: relative;
    }
}

body header.indexPage h1 {
    position: absolute;
    margin-bottom: 0;
    bottom: 10px;
    left: 10px;
    width: 100%;
    text-align: center;
    content: "foobar";
}

body header.postPage h1, body header.staticPage h1 {
    width: 100%;
    text-align: center;
    content: "foobar";
    max-height: 113px;
    height: calc( 60vw * 113 / 600);
    margin: 0;
}

body header h1 img {
    width: 60%;
    max-width: 600px;
    min-width: 300px;
}

/* Main style */

#googleSignIn {
    width: 250px;
    margin: 35px auto;
}

div.inFrench::before {
    content: "🇫🇷";
}

div.inEnglish::before {
    content: "🇺🇸";
}

div.center {
    text-align: center;
}

main > div {
    margin: 10px;
}

main {
    margin: 0 10px;
    min-height: calc( 100vh - 200px - 180px);
    overflow: auto;
}

@media only screen and (min-width: 1000px) {
    /* Header image has a fixed 600 x 113px size */
    main {
        min-height: calc( 100vh - 200px - 113px);
    }
}

@media only screen and (min-width: 500px) and (max-width: 1000px) {
    /* Header image has a variable 60vw * 113px / 600 size */
    main {
        min-height: calc( 100vh - 200px - (60vw * 113 / 600));
    }
}

@media only screen and (max-width: 500px) {
    /* Header image has a fixed 300 x 56.5 size */
    main {
        min-height: calc( 100vh - 200px - 56.5px);
    }
}

/* Specific header for the index page has a fixed height */ 
main.indexPage {
    min-height: calc( 100vh - 340px - 180px);
}

/* computer only */
@media (hover: hover) and (min-width: 500px) {
    main {
        width:70%;
        min-width: 500px;
        max-width: 800px;
        margin:0 auto;
        /* min-height: calc( 100vh - 340px - 200px);*/
    }
}

article, div.comment-section {
    border: 2px #349bd5 solid;
    border-radius: 3px;
    background-color: #fdfdfd8f;
    padding: 10px 20px;
    margin: 40px 0 10px 0;
    position: relative;
    line-height: 1.3em;
}

div.comment-section {
    margin-top: 0;
}

article:first-child { 
    margin-top: 0;
}

article h2.author {
    font-size: 1.1em;
    margin-top: 5px;
    margin-bottom: 5px;
}
@media only screen and (min-width: 500px) { 
    article h2.author {
        position: absolute;
        top: 5px;
        right: 10px;
    }
}

article h2.title,  /* h2 on the index page */
article h1  { /* h1 on the post page */
    font-size: 1.4em;
    margin-top: 5px;    
    margin-bottom: 5px;
}

article h2.title a {
    text-decoration: none;
    color: #349bd5;
}

article h2.date {
    font-size: 1em;
    margin-top: 5px;
    margin-bottom: 5px;
    color: grey;
}

article img {
    max-width: 70%;
    object-fit: scale-down;
    margin: 10px auto;
    display: block;
}

article video {
    display: block;
    margin: auto;
}

@media only screen and (max-width: 600px) { 
    article img {
        max-width: 100%;
    }
}

/* Comment style */
p.comment-author {
    margin-bottom: 0;
}
p.comment-content {
    margin-top: 0;
    border-left: 3px grey solid;
    padding-left: 10px;
    white-space: pre-line;
}

form.comment-form {
    margin-top: 20px;
    border-top: 1px grey solid;
    padding-top: 15px;
}

form.comment-form textarea{
    width: 100%;
    height: 100px;
    font-size: 16px;
    line-height: 1.3em;
}

form.comment-form button:hover {
    background-color: white;
    color: #2AA6E2;
}
form.comment-form button {
    cursor: pointer;
    height: 3em; 
    margin-top: 10px;
    background-color: #2AA6E2;
    color: white;
    border: none;
    border-radius: 1.5em;
    padding: 1em;
    display: inline-flex;
    justify-content: center;
    align-items: center;    
}

div.emoji-selector {
    margin-top: 10px;
    font-size: x-large;
    user-select: none;
}
span.emoji-click {
    margin: 5px;
    cursor:default;
}
span.emoji-click:first-child {
    margin-left: 0;
}

/* Footer style */
body footer {
    background: url("/assets/images/footer-2.png") repeat-x;
    background-size: 372px 200px;
    width: 100%;
    height: 200px;
    overflow: auto;
    position: relative;
}

body nav {
    position: relative;
    background-color: #fdfdfd8f;
    border: 2px #349bd5 solid;
    border-radius: 3px;
    
    margin:0 auto;

    height: 2em;
}

body nav .previous {
    position: absolute;
    left: 5px;
    top: 5px
}

body nav .next {
    position: absolute;
    right: 5px;
    top: 5px
}

body footer .credits {
    position: absolute;
    bottom: 0px;
    margin: 5px auto;
    width: 100%;
    text-align: center;
    font-size: small;
}

a, a:visited {
    color: inherit;
}