* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    outline: none;
    list-style: none;
}

.clear { clear: both; }

html, body {
    background-color: #ededed;
    color: #333333;
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body > * {
    flex-shrink: 0;
}

hr { border: 0; border-bottom: 1px dotted #DDDDDD; margin: 10px 0px; }

div.container {
    margin: 0;
    box-shadow: 0 0 25px 0px rgba(0,0,0,0.15);
    background-color: #ffffff;
    width: 100%;
    flex-grow: 1;
}

@media only screen and (min-width: 400px) {
    div.container {
        margin: 60px 0 0;
    }
}

@media only screen and (min-width: 530px) {
    div.container {
        margin: 100px auto 0;
    }
}

@media only screen and (min-width: 1220px) {
    div.container {
        margin: 150px auto 0;
        width: 1200px;
        border-radius: 7px 7px 0 0;
    }
}

.container .row { margin: 5px 10px; padding: 0 10px; }
.container .row:first-of-type { margin-top: 15px; }
.container .row:last-of-type { margin-bottom: 15px; }
div.container { margin: 0 !important; flex-grow: 1; }

section.container a, .container h3 {
    background-color: #222;
    border-radius: 3px;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    height: 40px;
    line-height: 40px;
    color: #FFFFFF;
    position: relative;
    vertical-align: middle;
    width: auto;
}

section.container a { padding: 0 40px 0 12px; }
.container a:hover { color: #FFFFFF; }

.container h3 {
    cursor: default;
    font-size: 20px;
    overflow: hidden;
    padding: 0 12px;
    margin: 0 5px 0 0;
}

section.container a::after {
    background: rgba(0,0,0,0.15);
    bottom: 0;
    content: "➜";
    font-size: 14px;
    font-style: normal;
    height: 100%;
    margin: auto 0;
    position: absolute;
    right: 0;
    text-align: center;
    width: 30px;
    display: block;
}

header {
    background: #333333 url("ressources/bg_crop_kumiko.png") 95% bottom / contain no-repeat;
    width: 100%;
    height: 200px;
    color: #FFFFFF;
    box-shadow: inset 0 -10px 0 0 rgba(0,0,0,0.5);
}

header a.header_content {
    margin: 60px 0 0 40px;
    position: absolute;
    display: block;
    text-decoration: none;
    color: #fff !important;
}

header a.header_content:hover {
    background: none;
    color: #eee !important;
}

header img.avatar {
    border-radius: 100%;
    box-shadow: 0 0 0 10px #FFFFFF;
    height: 100px;
    width: 100px;
    float: left;
}

header div.nickname, header div.description { margin: 0 0 0 130px; }
header div.nickname { font-size: 42px; margin-top: 30px; font-weight: bold; }
header div.description { font-size: 14px; margin-top: -5px; }

@media only screen and (min-width: 1220px) {
    hr { margin: 15px 0; }
    div.container { margin: 75px auto 0 !important; }
    .container .row { line-height: normal; margin: 10px; }
    section.container a, .container h3 { font-size: 16px; height: 46px; line-height: 46px; }
    .container h3 { font-size: 28px; padding: 0 15px; }
    header { border-radius: 7px 7px 0 0; }
}

/* Sections */

section.header_links { width: 100%; display: block; background: #222; color: #FFFFFF; }

section.header_links a {
    padding: 15px 20px;
    display: inline-block;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}
section.header_links a:hover { background: rgba(0,0,0,0.5); }
section.cours { padding: 15px; overflow: hidden; }

section.content {
    margin: 20px;
    padding: 15px 20px;
    line-height: 25px;
    border-radius: 15px;
    border: 2px dashed #222;
    color: #222;
    background-color: #eee;
}

section.content a:hover {
    opacity: 0.5;
}

section.cours a {
    background-color: #222;
    border-radius: 3px;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    height: 34px;
    line-height: 34px;
    margin: 3px 0 0;
    padding: 0 10px;
}
section.cours a, html.dark section.cours a { color: #FFFFFF; }
section.cours a:hover, html.dark section.cours a:hover { color: #FFFFFF; opacity: 0.7; }

section.cours a::after {
    content: " ➜";
    font-size: 14px;
}

/* Styles used for the header of the page */

div.floating_links {
    float: right;
    margin: 10px 15px 0 0;
}

button.theme_toggle {
    display: block;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 5px 8px;
    line-height: 8px;
    color: #ffffff;
    font-size: 8px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
}

button.theme_toggle { background-color: #333333; display: none; margin-bottom: 5px; }
button.theme_toggle:hover { background-color: #505050; }

@media only screen and (min-width: 600px) {
  button.theme_toggle { line-height: 10px; font-size: 10px; }
}

/* Files list */

ul.files-list {
    position: relative;
    left: 170px;
    border-left: solid 4px #e4e4e4;
    padding: 0 0 0 25px;
    width: calc(100% - 170px);
}

ul.files-list li {
    position: relative;
    margin: 0 0 12px 0;
    font-weight: bold;
    padding: 0 0 12px 0;
    border-bottom: 1px dashed #EEEEEE;
}

ul.files-list li:last-child { border-bottom: none; margin: 0; }

ul.files-list li::after {
    display: inline-block;
    position: absolute;
    top: 12px;
    left: -35px;
    box-shadow: 0 0 0 6px;
    content: "•";
    vertical-align: middle;
    color: #ffffff;
    border-radius: 3px;
    width: 15px;
    height: 15px;
    line-height: 15px;
    padding: 0 0 2px 0;
    text-align: center;
}

ul.files-list li.color1::after { background: #EF476F; }
ul.files-list li.color2::after { background: #F2951D; }
ul.files-list li.color3::after { background: #8E91D1; }
ul.files-list li.color4::after { background: #6D9C42; }
ul.files-list li.color5::after { background: #2A6EF7; }
ul.files-list li.color6::after { background: #D5D872; }

ul.files-list li div {
    position: absolute;
    left: -200px;
    width: 150px;
    display: flex;
    justify-content: center;
    align-content: center;
    height: 40px;
    flex-direction:column;
    font-size: 12px;
    text-align: right;
    text-transform: uppercase;
    border-radius: 3px;
    background-color: #222222;
    color: #EEEEEE;
    padding: 0 10px;
}

/* Turn off the lights ... */

html.dark, html.dark body {
    background-color: #222222;
    color: #ffffff;
}

html.dark button.theme_toggle { background-color: #FFFFFF; color: #333333; }
html.dark button.theme_toggle:hover { background-color: #DEDEDE; color: #333333; }

html.dark a { color: #ccc; }
html.dark a:hover { color: #999; }
html.dark a:active { color: #bbb; }

html.dark div.container { background-color: #333333; }

html.dark div.section { border-bottom-color: #444444; }
html.dark div.section h2 { color: #ee6770; }

html.dark hr { border-bottom-color: #444444; }
html.dark section.container a { color: #FFFFFF; }

html.dark ul.files-list { border-left-color: #555555; }
html.dark ul.files-list li { border-bottom-color: #444444; }
html.dark ul.files-list li::after { color: #333333; }
html.dark ul.files-list li div { background: #EEEEEE; color: #222222; }

html.dark ul.files-list li.color1::after { background: #ef6989; }
html.dark ul.files-list li.color2::after { background: #f2a541; }
html.dark ul.files-list li.color3::after { background: #a4a6dd; }
html.dark ul.files-list li.color4::after { background: #8ab761; }
html.dark ul.files-list li.color5::after { background: #3f7bf4; }
html.dark ul.files-list li.color6::after { background: #e2e587; }

html.dark section.header_links a { color: #FFFFFF !important; }
html.dark section.content { background: #444444; color: #FFFFFF !important; }