/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background-color: #f9f9f5;
}

.site {
    width: 100%;
    font-family: 'Muli', sans-serif;
}

p {
    text-align: justify;
}

a {
    text-decoration: none;
    color: #000;
}

input, textarea {
    display: block;
    width: 100%;
    margin: 0 0 7px;
}

input {
    height: 60px;
    text-align: left;
    padding-left: 7px;
}

textarea {
    height: 133px;
}

@-moz-document url-prefix() {
    textarea {
        height: 128px;
    }
}

div.main-frame {
    width: 900px;
    height: 600px;
    margin: 60px auto 0;
    box-shadow: 6px 6px 24px 3px rgba(100, 100, 100, 0.8);
    background-color: #fff;
}

div.header {
    position: relative;
    top: 2em;
    z-index: 1;
    font-size: 0.97em;
    right: 10em;
    float: right;
}

div.header a.current {
    font-size: 0.965em;
    font-weight: bold;
}

div.header img {
    margin: -0.1em 0.9em 0;
    width: 18px;
}

div.flags {
    position: relative;
    left: 2em;
    top: 2em;
    z-index: 1;
}

#flag-de, #flag-en {
    position: absolute;
}

#flag-en {
    left: 2.3em;
}

#flag-de img, #flag-en img {
    margin: 0;
    width: 30px;
}

div.content {
    position: relative;
    height: 540px;
    width: 790px;
    margin: 0 auto;
    top: 1.4em;
}

div.description {
    float: right;
}

div.description > div {
    background-color: #f6f6f6;
    margin: 0.2em;
    display: inline-block;
    padding: 1em;
    width: 11em;
    position: relative;
    float: left;
    height: 4em;
}

div.description h2, div.description p, div.description li {
    font-size: 13px;
    margin: 0;
    line-height: 1em;
}

div.description div ul {
    margin-block-start: 0.5em;
    padding-inline-start: 1em;
    -webkit-margin-before: 0.5em;
    -webkit-padding-start: 1em;
    opacity: 0;
    -webkit-transition: opacity 1s ease-in-out 0.1s;
    transition: opacity 1s ease-in-out 0.1s;
}
div.description div:hover ul {
    opacity: 1;
}

div.description h2 {
    margin-bottom: 0.8em;
}

div.description li {
    line-height: 1.2em;
}

div.description div img {
    position: absolute;
    top: 1.5em;
    width: 11em;
    opacity: 1;
    -webkit-transition: opacity 1s ease-in-out 0.1s;
    transition: opacity 1s ease-in-out 0.1s;
}
div.description div:hover img {
    opacity: 0;
}

div.footer {
    position: relative;
    top: 0;
    left: 0;
}

.footer p {
    margin: 0 2em;
    font-size: 0.9em;
}

div#logo {
    position: relative;
    background: url(../img/ijes.jpg) no-repeat 155px 70px;
    background-size: 80%;
}

#partner .main-frame {
    height: auto;
    /*background-color: transparent;
    box-shadow: none;*/
}

#partner .content {
    height: auto;
    padding-top: 50px;
    width: 850px;
}

div.card p {
    margin-top: 0;
    font-size: 0.8em;
    padding: 0 12px;
    text-align: left;
}

#contact div.content {
    padding-top: 100px;
}

div#contactForm .left, div#contactForm .right {
    position: relative;
    display: inline-block;
    width: 384px;
    margin: 0 2px;
    vertical-align: top;
}

div#contactForm .left {
    float: left;
}

div#contactForm .right {
    float: right;
}

div#contactForm .right input {
    color: #777777;
    font-weight: bold;
    text-align: center;
    padding: 0;
}

input#contactAction {
    margin: 0;
    height: 66px;
    width: 390px;
}

#imprint div.content {
    height: 480px;
    width: 800px;
    position: relative;
    overflow-y: auto;
    top: 70px;
    padding-right: 10px;
}

#imprint div.content img {
    margin-left: 17px;
    padding-bottom: 12px;
}

#privacy div.content {
    height: 475px;
    width: 785px;
    position: relative;
    overflow-y: auto;
    top: 70px;
    padding-right: 15px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster:
                                          http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
