:root{
    --theme-base-color: var(--theme-color);
    --theme-color1: var(--tpl-color1);
    --theme-color2: var(--tpl-color2);
    --theme-color3: var(--tpl-color3);
    --theme-color4: var(--tpl-color4);
    --theme-color5: var(--tpl-color5);
    --theme-color6: var(--tpl-color6);

    --theme-cover-text: #fff;
    --theme-cover-bg: var(--theme-color);
}

*{
    box-sizing: border-box;
}

body{
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    margin: 0;
}
.cover-container{
    display: flex;
    font-family: "Libre Franklin", sans-serif;
}
.cover-container.license{
    max-height: 100vh;
    overflow: hidden;
}
.cover-container h1,
.cover-container h2,
.cover-container h3{
    font-weight: 900;
    margin-bottom: 1rem;
}
.header{
    display: flex;
    width: 50vw;
    min-height: 100vh;
    color: var(--theme-cover-text);
    background-color: var(--theme-cover-bg);
}
.header-content{
    position: fixed;
    display: flex;
    width: 50vw;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 2vh 3vw;
}
.header-content img{
    max-width: 100%;
}
.header-content .logo img{
    max-width: 40vw;
}
.header-content .description{
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.header-content .description img{
    width:auto;
    max-width: 70%;
    height: auto;
    max-height: 70%;
    margin: 0 auto;
}

.coverimg{
    display: flex;
    max-width: 100%;
    overflow: hidden;
}
.coverimg img{
    max-width: 100%;
}
.main{
    width: 50vw;
    padding: 0;
}
.blocs{

}
.bloc {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 50%;
    min-height: calc(100vh / 3);
    padding: 15px 25px;
    color: #fff;
    background-color: #eee;
    text-align: center;
}
.bloc:last-of-type {
    flex-grow: 1;
    padding: 15px 50px;
}

.bloc a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}
.bloc a:hover,
.bloc a:active,
.bloc a:focus,{
    text-decoration: underline;
}

.bloc:nth-child(1n) {
    background-color: var(--theme-color1);
}
.bloc:nth-child(2n) {
    background-color: var(--theme-color2);
}
.bloc:nth-child(3n) {
    background-color: var(--theme-color3);
}
.bloc:nth-child(4n) {
    background-color: var(--theme-color4);
}
.bloc:nth-child(5n) {
    background-color: var(--theme-color5);
}
.bloc:nth-child(6n) {
    background-color: var(--theme-color6);
}
.bloc:nth-child(7n) {
    background-color: var(--theme-color1);
}
.bloc:nth-child(8n) {
    background-color: var(--theme-color2);
}
.bloc:nth-child(9n) {
    background-color: var(--theme-color3);
}
.bloc:nth-child(10n) {
    background-color: var(--theme-color4);
}
.bloc:nth-child(11n) {
    background-color: var(--theme-color5);
}
.bloc:nth-child(12n) {
    background-color: var(--theme-color6);
}
.bloc:nth-child(13n) {
    background-color: var(--theme-color1);
}
.bloc:nth-child(14n) {
    background-color: var(--theme-color2);
}
.bloc:nth-child(15n) {
    background-color: var(--theme-color3);
}
.bloc:nth-child(16n) {
    background-color: var(--theme-color4);
}
.bloc:nth-child(17n) {
    background-color: var(--theme-color5);
}
.bloc:nth-child(18n) {
    background-color: var(--theme-color6);
}

.footer{
    display: flex;
    margin-top: 1rem;
    align-items: center;
}

.footer img{
    max-width: 60px;
}

.cover-btn{
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.cover-btn:hover,
.cover-btn:active,
.cover-btn:focus{
    background-color: rgba(0,0,0,.1);
}
.cover-btn:focus{
    outline-color: #222;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
    border-radius: 5px;
}

.cover-btn img{
    max-width: 50px;
}

.hide{
    display: none;
}


/* Small devices */
@media only screen and (max-width: 767.98px) {
    .cover-container{
        flex-direction: column;
        max-width: 100%;
    }
    .cover-container h1{
        margin-left: 10px;
        margin-right: 10px;
        font-size: 1.2rem;
    }
    .header{
        width: 100vw;
        max-width: 100%;
        height: 50%;
        min-height: 50%;
    }
    .header-content{
        position: static;
        width: 100%;
        height: 50%;
    }
    .cover-btn {
        margin-right: 10px;
    }
    .cover-btn img {
        max-width: 40px;
    }
    .main{
        width: 100vw;
        max-width: 100%;
    }
    .blocs{
        display: block;
    }
    .bloc{
        min-height: 200px;
    }
    .bloc h2{
        font-size: 1rem;
        word-break: break-word;
    }
    .credits-container{
        padding: 20px !important;
    }
    .credits-title{
        font-size: 1.5rem !important;
    }
    .credits-body{
        max-height: 90% !important;
        font-size: 11px !important;
    }
    .footer{
        padding: 0 5px;
    }
}
/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .cover-container h1{
      font-size: 1.5rem;
    }
    .header{
        width: 50vw;
        min-height: 100vh;
    }
    .header-content{
        position: fixed;
        width: 50vw;
        height: 100vh;
    }
    .cover-btn {
        margin-right: 10px;
    }
    .main{
        width: 50vw;
    }
    .blocs{
         display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        min-height: 100%;
    }
    .bloc h2{
        font-size: 1rem;
    }
}
/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .bloc h2{
        font-size: 1.4rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .bloc h2{
        font-size: 1.5rem;
    }
}
