:root {
    --main-width: 1024px;
    --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;
}

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

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

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

.headerTitleVeletrhy {
    color: var(--greenFont);
    position: absolute;
    left: 10px;
}

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

.headerTitleEkoauto, .headerTitleUspornaDomacnost {
    font-weight: 500;
}

.headerTitleEt {
    color: var(--greenFont);
    padding-left: 10px;
    padding-right: 10px;
}

.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;
}

.headerMenuItem::after {
    content: "";
    border-left: 1px rgba(255, 255, 255, 0.4) solid;
}

.headerMenuItem:last-child::after {
    border-left: none;
}

.headerMenuLink {
    padding: 15px 10px;
    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;
}

.main {
    background: white;
    min-height: 50vh;
}

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

main p {
    font-size: 13pt;
}

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

.galleries {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#gallery-1, #gallery-2 {
    display: inline-block;
}

.galleryImageMiddle {
    width: 450px;
    max-width: 100%;
    position: relative;
    display: inline-block;
    margin: 10px;
    line-height: 0;
    border-radius: 7px;
}

.galleryImageImg {
    border-radius: 7px;
    width: 100%;
}

.galleryImageStrip {
    position: absolute;
    left: 0;
    right: 0;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.galleryImageTitleStrip {
    top: 0;
    color: white;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.galleryImageCircleStrip {
    bottom: 0;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.galleryImageItem {
    color: white;
    font-size: 20px;
    display: inline-block;
    padding: 0 2px 4px 2px;
}

a.galleryImageLink {
    cursor: pointer;
    color: white;
}

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;
    }
}


/* ============================================================================= */
/* 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;
}

/* ============================================================================= */
/* Registratin Form */

.registerFormContainer {
    margin: 1rem auto;
    box-sizing: border-box;
    width: 500px;
    max-width: 100%;
}

.registerFormRow {
    display: flex;
    margin: 12px 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.registerFormRow > label {
    width: 12rem;
    flex: 0 0 12rem;
}

.registerFormRow > label::after {
    content: ":";
}

.registerFormRow > input {
    font-size: 16px;
    padding: 7px 5px 3px 5px;
    flex: 1;
    border: 1px gray solid;
    min-width: 15rem;
}

.registerFormButtonRow {
    display: flex;
    justify-content: flex-end;
}

.registerFormButtonRow > input {
    border: 2px #185b25 solid;
    border-radius: 7px;
    font-size: 16px;
    background: white;
    padding: 8px 12px 6px 12px;
}

.registerFormButtonRow > input {
    border: 2px #185b25 solid;
    border-radius: 15px;
    font-size: 16px;
    background: #185b25;
    color: white;
    padding: 8px 12px 6px 12px;
    cursor: pointer;
    font-weight: bold;
}

.registerFormButtonRow > input:hover {
    background: #61db7c;
    color: black;
    transition: all 0.5s ease-in-out;
}

.problemInfo {
    border: 2px red solid;
    background: #FFEEEE;
    border-radius: 10px;
    padding: 5px 10px;
}

.successInfo {
    border: 2px green solid;
    background: #EEFFEE;
    border-radius: 10px;
    padding: 5px 10px;
}

/* ============================================================================= */
/* 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: 400px) {
    .headerMenuLink {
        font-size: 14px;
    }
}

/* Hide "Veletrhy" on small screens */
@media screen and (max-width: 550px) {
    .headerTitleVeletrhy { display: none; }

    .galleries {
        flex-wrap: wrap;
    }

    .justify {
        text-align: left;
    }
}

@media screen and (min-width: 1024px) {
    .header {
        justify-content: space-between;
        padding: 0 20px;
    }
    .leftLogo {
        order: 0;
     }
    .headerContent {
        min-width: 700px;
        padding: 40px 0 20px 0;
        order: 1;
    }
    .headerTitle {
        font-size: 26px;
    }
    .headerMenuLink {
        font-size: 18px;
    }
    .rightLogo {
        order: 2;
    }
    .headerMenu {
        margin: 0;
    }
}
