:root {

    --theme-main: #C8BC62;
    --theme-coopers: #BDAF66;
    --theme-workplace: #A79B6D;
    --theme-environment: #938A78;
    --theme-organization: #89837D;

    --white: white;
    --black: black;

    --text: #938e87;
    --grey: #444;

    --font-family: "Lato", sans-serif;
    --font-size: 1.2rem;
    --font-size-large: 1.75rem;
    --font-size-small: .8rem;
    --font-weight: 400;
    --font-weight-strong: 600;

}

body.theme-main {
    --theme: var(--theme-main);
}

body.theme-coopers {
    --theme: var(--theme-coopers);
}

body.theme-workplace {
    --theme: var(--theme-workplace);
}

body.theme-environment {
    --theme: var(--theme-environment);
}

body.theme-organization {
    --theme: var(--theme-organization);
}

body {
    margin: 0;
    background-image: linear-gradient(150deg, rgba(255,255,255,1) 10%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 50%, rgba(200,188,98,1) 100%), url('/static/bg.jpg');
    background-size: 100% auto;
    background-repeat: no-repeat;
    font-family: var(--font-family);
    color: var(--theme);
}

header {
    position: relative;
}

header img {
    height: 5rem;
    margin: 4rem 2rem 4rem 2rem;
}

header div {
    position: absolute;
    right: 3rem;
    top: 3rem;
    display: flex;
}

header div a,
header div a:hover,
header div a:visited {
    margin-left: 1rem;
    color: var(--white);
}

header div a.--active {
    border-bottom: 2px solid var(--white);
}

main {
    min-height: calc(100vh - 13rem);
}

footer {
    background-color: var(--grey);
    color: var(--white);
    text-align: center;
}

footer p {
    margin: 0;
    padding: .5rem;
    color: var(--white);
}

h1 {
    font-weight: var(--font-weight-strong);
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-weight: var(--font-weight-strong);
    font-size: var(--font-size-large);
}

p {
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    color: var(--text);
}

a, a:visited, a:hover {
    text-decoration: none;
    font-weight: var(--font-weight-strong);
    color: var(--theme);
}

ul, ol {
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    color: var(--text);
}

label {
    display: block;
    font-size: var(--font-size);
    margin-bottom: .5rem;
}

input[type="text"],
input[type="email"],
textarea {
    margin-bottom: 1rem;
    display: block;
    border: 2px solid var(--theme);
    border-radius: .3rem;
    width: 25rem;
    max-width: 80vw;
    font-family: var(--font-family);
    font-size: var(--font-size);
    padding: .5rem;
    outline: none;
}

textarea {
    resize: none;
}

input[type="submit"] {
    font-family: var(--font-family);
    font-size: var(--font-size);
    cursor: pointer;
    border-radius: .5rem;
    padding: .5rem 1rem .5rem 1rem;
    border: none;
    color: var(--white);
    background-color: var(--theme);
}

div.cc-home {
    min-height: calc(100vh - 13rem - 10rem);
    box-sizing: border-box;
    padding: 8rem 30rem 0 2rem;
    color: var(--white);
}

div.cc-home p {
    color: var(--white);
}

div.cc-themes {
    display: flex;
    height: 10rem;
}

div.cc-themes > a {
    text-decoration: none;
    flex-grow: 1;
    width: 100%;
}

div.cc-themes > a > div {
    text-align: center;
    cursor: pointer;
    color: var(--white);
    height: 100%;
    box-sizing: border-box;
    padding-top: .1rem;
    background-color: var(--theme);
}

div.cc-themes p {
    color: var(--white);
}

div.cc-menu {
    background-color: var(--white);
    width: 100%;
    display: flex;
}

div.cc-menu div {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
}

div.cc-menu a {
    line-height: 1.5rem;;
}

div.cc-menu a img {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    transform: translateY(-.1rem);
    margin-right: .5rem;
    filter: brightness(0) invert(.8);
    transition-property: transform;
    transition-duration: .2s;
}

div.cc-menu a:hover img {
    transform: translateY(-.1rem) translateX(.4rem);
}

div.cc-themes > a > div.theme-coopers,
div.cc-menu > div.theme-coopers {
    --theme: var(--theme-coopers);
}

div.cc-themes > a > div.theme-workplace,
div.cc-menu > div.theme-workplace {
    --theme: var(--theme-workplace);
}

div.cc-themes > a > div.theme-environment,
div.cc-menu > div.theme-environment {
    --theme: var(--theme-environment);
}

div.cc-themes > a > div.theme-organization,
div.cc-menu > div.theme-organization {
    --theme: var(--theme-organization);
}

div.cc-page {
    width: 100%;
    background-color: var(--white);
    min-height: 100%;
    display: flex;
    justify-content: center;
}

div.cc-page article {
    max-width: 40rem;
    flex-grow: 1;
    box-sizing: border-box;
    padding-top: 1rem;
}

div.cc-page article img {
    max-width: 100%;
    margin-bottom: 1rem;
}

#contact {
    background-color: var(--theme);
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    color: var(--white);
    font-size: var(--font-size);
    padding: 1rem;
    border-radius: 2rem;
}
