:root {
    --main-width: 1024px;
    --text-width: 860px;
    --greenFont: #40a348;
}

body {
    background: lightgray;
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    max-width: var(--main-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background: white;
    flex-wrap: wrap;
}

.headerLogo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem;
}

.ekoautoLogo, .uspornaDomacnostLogo {
    width: 128px;
}

.headerContent {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headerTitle {
    position: relative;
    text-align: center;
    font-size: 26px;
}

.headerTitleName {
    font-size: inherit;
    margin: inherit;
    padding: inherit;
}

.headerTitleEkoauto {
    font-weight: 500;
}

.headerTitleDot {
    font-weight: 800;
    margin: 0 3px;
    font-size: 0;
}
.headerTitleDot::before {
    visibility: visible;
    font-size: 26px;
    position: relative;
    top: 3px;
    content: "\2022";
    color: gray;
}

.headerTitleEcocar {
    font-weight: 500;
    color: #4aad52;
}


.headerMenu {
    margin: 0 10px;
}

.headerMenuList {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0;
    padding: 0;
    padding-left: 10px;
    border-radius: 7px;
    background: #185b25 linear-gradient(to bottom, #185b25, #31ab4c);
}

.headerMenuItem {
    display: inline-block;
    color: white;
    padding: 0;
    margin: 0;
}

.headerMenuLink {
    padding: 15px 20px;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.headerMenuLink:active, .headerMenuLink:visited {
    color: white;
}

.headerMenuLink:hover {
    background: #47d163 linear-gradient(to bottom, #47d163, #31ab4c);
}

.headerMenuLinkActive, .headerMenuLinkActive:active, .headerMenuLinkActive:visited {
    color: #DDDDDD;
}

.centralArea {
    max-width: var(--main-width);
    margin: 0 auto;
    padding: 5px 20px 20px 20px;
}

.textArea {
    max-width: var(--text-width);
    margin: 0 auto;
}

.bigText {
    max-width: 600px;
    margin: 3em auto 5em auto;
    line-height: 1.5;
    text-align: justify;
}

.main {
    background: white;
    min-height: calc(100vh - 128px - 10rem);
}

.main h1 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}
div.headingDesc {
    font-size: 20px;
    color: #555555;
}

main p {
    font-size: 13pt;
}

div.eventAppeal {
    font-size: 28px;
    text-align: center;
    margin-top: -10px;
    padding-top: 20px;
    border-top: 1px rgb(168, 182, 164) solid;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px rgb(168, 182, 164) solid;
}

h1.eventName {
    text-align: center;
    font-size: 22px;
}

h1, h2, h3, h4 {
    font-weight: normal;
}

a, a:active, a:visited {
    color: #007700;
}

.footerList {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    color: #444;
    text-shadow: 0px 1px 0px rgba(255,255,255,.7);
}

.footerList > li {
    padding: 5px;
}

h2.partners {
    color: #656565;
    margin-bottom: 1rem;
}

@media screen and (min-width: 1024px) {
    h2.partners {
        margin-top: 3rem;
        margin-bottom: 0;
    }
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.partner-logo-narrow {
    width: calc(100% - 20px);
    max-width: 200px;
}

.partner-logo-wide {
    width: calc(100% - 20px);
    max-width: 300px;
}

.partners-logos img {
    margin: 10px;
}

.partner-logo-wide-wrapper,
.partner-logo-narrow-wrapper {
    flex-basis: 50%;
    text-align: center;
}

@media screen and (min-width: 1024px) {
    .partner-logo-narrow {
        width: 100px;
    }

    .partner-logo-wide {
        width: 240px;
    }

    .partner-logo-wide-wrapper,
    .partner-logo-narrow-wrapper {
        flex-basis: auto;
    }

    .partners-logos img {
        margin: 20px;
    }
}


/* ============================================================================= */
/* Index links */

.link-boxes {
    width: 100%;
    max-width: 600px;
    margin: 25px auto;
}

.link-box, .link-box:active, .link-box:visited {
    text-decoration: none;
    color: #369d3d;
    box-sizing: border-box;
    width: 100%;
    min-height: 110px;
    display: flex;
    background: white;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4);
    margin: 15px 0;
    padding: 10px 20px;
}
.link-box:hover {
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.7);
}

.link-box-left {
    flex: 0;
    margin-right: 20px;
}

.link-box-icon {
    width: 90px;
    height: 90px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.link-box-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-box-title {
    font-size: 1.2rem;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.link-box:hover .link-box-title {
    text-decoration: underline;
}


.link-box-more {
    margin-top: 2px;
    text-align: right;
}


/* ============================================================================= */
/* Index images */

.invitation {
    margin: 0 auto;
    max-width: 600px;
}

.invitation-image {
    max-width: 100%;
}


/* ============================================================================= */
/* Media */

.media-covers {
    margin-left: -46px;
    margin-right: -46px;
}

.media-cover {
    margin: 12px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4);
    display: inline-block;
}
.media-cover:hover {
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.7);
}

.media-cover-image {
    width: 290px;
    max-width: 100%;
}


/* ============================================================================= */
/* Archive */


.archiveList {
    margin: 2rem 0;
}

.archiveItem {
    margin: 1rem;
}

.archiveItemTitle {
    font-weight: bold;
}

.archiveItemInfo {
    margin-top: 0.5rem;
    color: #444;
}

/* ============================================================================= */
/* Common */

.center {
    text-align: center;
}

.gapBelow {
    margin-bottom: 2rem;
}

.justify {
    text-align: justify;
}

strong {
    font-weight: 500;
}

.quite-bold {
    font-weight: 500;
}

.slightly-suppressed {
    filter: grayscale(0.5);
    opacity: 0.3;
}


/* ============================================================================= */
/* GDPR */
.gdpr {
    max-width: 900px;
    margin: 0 auto;
}

.gdpr em {
    font-weight: bold;
    font-style: normal;
}

.gdpr > p > em:first-child {
    padding-right: 0.5rem;
}

/* ============================================================================= */
/* Responsive */

@media screen and (max-width: 520px) {
    .headerMenuItem {
        flex-basis: 50%;
        text-align: center;
    }
    .bigText {
        margin-right: 0.25em;
        margin-left: 0.25em;
        text-align: left;
    }
}


@media screen and (max-width: 800px) {
    .rightLogo {
        display: none;
    }
}

@media screen and (max-width: 1000px) {
    .headerMenuLink {
        font-size: 14px;
    }
    .rightLogo {
        order: 1;
    }
    .media-covers {
        margin-left: 0;
        margin-right: 0 ;
    }
}

@media screen and (min-width: 1000px) {
    .header {
        justify-content: flex-start;
        padding: 0 20px;
    }
    .headerLogo {
         margin: 1rem 2rem;
    }
    .headerContent {
        flex: 1 1 auto;
        padding: 40px 0 20px 0;
    }
    .headerTitle {
        text-align: left;
    }
    .headerMenuList {
        justify-content: center;
    }
    .headerMenuLink {
        font-size: 18px;
    }
    .headerMenu {
        margin: 0;
    }
    .headerMenuItem::after {
        content: "";
        border-left: 1px rgba(255, 255, 255, 0.4) solid;
    }
    .headerMenuItem:last-child::after {
        border-left: none;
    }
}
