/* General */

body {
    background: url("chromatiquecropped.png") no-repeat fixed left top #f6f6f6;
    font-family: sans-serif;
    color: #666;
    margin: 0;
    font-size: 1em;
}

.kanji {
    cursor: help;
}

/* Structure */

h1 {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    background: #111;
    opacity: 0.85;
    color: #fff;
    font-size: 2.6em;
    font-weight: normal;
    margin-top: 0;
    line-height: 60px;
    padding-left: 20px;
}

h1 span {
    color: #445;
}

h2 {
    color: #333;
    font-size: 2em;
    font-weight: normal;
    margin-top: 0;
}

h3 {
    font-weight: normal;
    color: #456; 
    font-size: 1.5em;
}

.heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    height: 3.5em;
    margin-bottom: 30px;
}

p {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 8px;
    font-size: 1em;
    text-align: justify;
    text-indent: 1em;
}

/* Links */

h1 a:link, h1 a:visited {
    text-decoration: none;
    color: #667;
    border-bottom: 0px;
    transition: 0.2s;
}

h1 a:hover {
    color: #889;
}

a:link, a:visited {
    color: #329590;
    transition: 0.2s;
    text-decoration: none;
}

a:hover {
    color: #82d5d0;
}

/* Menu + content */

#main_container {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: center;
    padding-right: 10%;
}

#menu {
    width: 18%;
    margin: 10px;
}

#menu, #content {
    box-shadow: 0 3px 3px rgba(0,0,0,0.16), 0 3px 3px rgba(0,0,0,0.23);
    padding: 10px;
    background: rgba(250, 250, 250, 0.82);
}

#menu ul {
    margin-top: 0;
    padding-left: 0;
    list-style-type: none;
}

#menu ul li ul li {
    color: #222233;
    height: 20px;
    line-height: 20px;
    font-weight: normal;
    list-style-type: none;
    padding-left: 5px;	
}

#menu ul li ul li:last-child {
    list-style-type: none;
    margin-bottom: 20px;
}

#content {
    margin: 10px;
    padding-bottom: 5px;
    width: 53%;
}

.submenu {
    font-size: 1.5em;
    color: #234;
    font-weight: normal;
    line-height: 32px;
    list-style-type: none;
    margin: 0px 0px 7px 0px;
}

.submenu span {
    padding-left: 4px;
}

#fin {
    padding-left: 5%;
    text-align: center;
}

#fin li {
    display: inline;
    text-align: center;
    list-style-type: none;	
}

#small_ui {
    display: none;
}

/* Responsive stuff */

@media only screen and (max-width:1024px) {
    h1, h3, #menu, #content {
        width: 100%;
    }

    .responsive {
        text-align: center;
        display: block !important;
        border-top: 1px solid #ddd;
        padding-top: 3px;  
    }

    #large_ui {
        display: none;        
    }

    #small_ui, #small_ui a {
        font-size: 1.3em;
        display: block;
    }

    h1, #menu ul li ul li, #main_container {
        padding: 0px;    
    }

}

/* Images */

img {
    border: 0px;
    max-width:100%;
    height: auto;
}

p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.gallery {
    float: left;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 3px;
}

a:link img, a:visited img {
    text-decoration: none;
    border-bottom: 0px;
    transition: 0.2s;
}

a:hover img {
    filter: brightness(110%);
}
