@import "fonts.css";

:root {
    --orange: #F7941D;
    --green: #007633;
    --yellow: #EAD689;
    --menu: #E5DEB3;

    --ff-american: 'American Typewriter';
    --ff-mermaid: 'Mermaid';
    --ff-minion: 'Minion Pro';
}

* {
    margin: 0;
    padding: 0;
    font-family: var(--ff-american);
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

h1 {
    margin: 1rem 0;
    font-size: 2rem;
}

h2 {
    margin: 1rem 0;
    font-size: 1.8rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1.1rem;
}

ul {
    margin: 1rem 0;
    list-style: none;
}

ol {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-position: inside;
}

p, table, table td {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.3rem;
}

a {
    color: var(--orange);
}

.orange {
    color: var(--orange);
}

.green {
    color: var(--green);
}

.yellow {
    color: var(--yellow);
}

.img-fluid {
    max-width: 100%;
}

.wrapper {
    display: grid;
    /* grid-template-rows: 300px auto; */
    grid-template-rows: 160px auto;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: url(../../layouts/adc/bg-image-green.png) no-repeat;
    background-size: 100% 270px;
}

header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-bottom: 20px;
    font-family: var(--ff-minion);
    border-bottom: 10px solid var(--green);
}

header:after {
    position: absolute;
    content: '';
    bottom: 0;
    width: 100%;
    height: 10px;
    background-color: var(--orange);
}

.logo-wrapper {
    display: flex;
    display: none;
    flex-direction: column;
}

.logo-wrapper .logo {
    display: none;
}

a.logo {
    display: flex;
}

a.logo img {
    /* margin: 20px auto 0 auto; */
    margin: 0 0 0 10px;
    height: 70px;
}

.logo-wrapper .hero {
    height: 200px;
}

/*
.hero {
    padding: 20px;
}

.hero h1 {
}

.hero h2 {
    font-weight: normal;
    line-height: 2;
}

.hero h3 {
    font-weight: normal;
}

.hero * {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.5;
    text-align: center;
}
*/

.mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align-items: center; */

    /* padding: 0 10px 0 20px; */
    margin-top: 40px;
    padding: 0;
}

.mobile-nav .bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;

    /* padding: 6px; */
    /* border: 1px solid var(--yellow); */
    /* border-radius: 3px; */
    /* background-color: var(--menu); */
}

.mobile-nav .bar .hero {
    width: 65%;
}

.mobile-nav .bar .title {
    padding-left: 20px;
    font-size: 1.2rem;
}

.mobile-nav .toggle {
    border: 1px solid;
    border-radius: 2px;
    color: white;
}

.mobile-nav .toggle .icon {
    transform: rotate(180deg);
}

.mobile-nav .icons > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.mobile-nav .icon {
    width: 32px;
    height: 32px;
    background-color: var(--menu);
    background-color: transparent;
}

.mobile-nav .icon.plus, .mobile-nav .icon.minus {
    width: 18px;
    height: 18px;
}

.mobile-nav .menu {
    margin-top: 10px;
    padding: 10px 30px;
    background-color: var(--menu);
    background-image: none !important;
    z-index: 10;
}

.mobile-nav .menu ul li a {
    flex: 1;
    justify-content: flex-start;
    min-height: auto;
    font-size: 1rem;
    font-weight: 400;
    border: 0;
    border-bottom: 1px solid var(--green);
    background-color: transparent;
}

.mobile-nav .menu ul li:hover a {
    background-color: transparent;
}

.mobile-nav .menu ul li:last-child a {
    border-bottom: 0;
}

.mobile-nav .submenu {
    display: flex !important;
    position: relative !important;
    padding-bottom: 10px;
    transform: translate(0,0) !important;
}

.mobile-nav .submenu.hidden {
    display: none !important;
}

.mobile-nav .submenu li {
    margin: 0 !important;
    min-width: auto !important;
}

.mobile-nav .submenu li a {
    padding-left: 30px;
    color: black !important;
    font-size: .9rem !important;
    background-color: transparent !important;
    border: 0 !important;
}

.mobile-nav nav.menu ul li:hover a {
    background-image: none;
}

.mobile-nav .submenu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--green);
}

.mobile-nav .submenu li a {
    /*border-bottom: 0 !important;*/
    border-bottom: 1px solid var(--green) !important;
}

.mobile-nav .submenu .submenu-wrapper a, .mobile-nav .submenu-wrapper a {
    border: 0 !important;
}

/*.mobile-nav nav.menu ul li:hover > ul {
}*/

.mobile-nav .level-2 a {
    padding-left: 50px !important;
}

nav.menu ul.mobile-topmenu {
    margin-top: 20px;
}

nav.menu ul.mobile-topmenu li a {
    margin: 10px 0;
    border: 1px solid #AAA;
    background-color: var(--orange);
    border-radius: 3px;
}

main {
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
    background-color: white;
}

aside {
    display: none;
}

section {
    display: flex;
    flex-direction: column;

    padding: 30px;
    font-size: 1rem;
    background-color: white;
}

.content {
    flex: 1;
}

.data-protection {
    text-align: right;
}

.data-protection a {
    font-size: 0.9rem;
}

nav.menu {
    margin-top: -1px;
    background: url(../../layouts/adc/nav-bg.jpg) no-repeat;
    background-position: center bottom;
    background-size: cover;
}

nav.menu ul {
    margin: 0;
}

nav.menu ul li {
    position: relative;
}

nav.menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 40px;
    color: black;
    font-family: var(--ff-mermaid);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    /*background-color: var(--menu);*/
    background-color: #F2EBCC;
    border: 1px solid var(--green);
}

nav.menu ul li:hover a {
    /*background-image: linear-gradient(transparent 20%, var(--orange));*/
    background-color: var(--orange);
}

nav.menu ul.submenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(100%);
}

nav.menu ul.submenu li {
    margin-left: -1px;
    min-width: 180px;
}

nav.menu ul.submenu li a {
    color: white;
    background-image: none;
    background-color: var(--green);
    border: 1px solid var(--orange);
}

nav.menu ul.submenu li:hover a {
    background-color: var(--orange);
}

/*
nav.menu ul li:hover > ul,
nav.menu ul li.opened > ul {
    display: flex;
}
*/

nav.menu .submenu-icons-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

nav.menu .submenu-icons-wrapper > a {
    flex: 1;
}

nav.menu .submenu-icons-wrapper .icons {
    position: absolute;
    right: 10px;
}

nav.menu .submenu-icons-wrapper .icons span {
    cursor: pointer;
}

.topmenu {
    display: none;
    height: 60px;
    background-color: var(--orange);
    border-bottom: 10px solid var(--green);
}
.topmenu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 16px 4px;
    z-index: 9;
    margin: 0 10px;
    height: auto;
    color: var(--green);
    font-family: var(--ff-mermaid);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    background-color: var(--yellow);
    border: 1px solid var(--green);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--menu);
}

footer .mobile-tabmenu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    height: 100%;
}

footer .mobile-tabmenu li a {
    padding: 6px 10px;
    color: black;
    font-size: .9rem;
    text-decoration: none;
    border: 0;
    border-radius: 3px;
    background-color: var(--orange);
}

form button:hover, form input[type="submit"]:hover {
    color: black !important;
    background-color: var(--orange) !important;
    border: 1px solid transparent;
}

.grid-table {
    display: grid;
    width: 100%;
    gap: 40px;
}
.grid-table.cols-4 {
    grid-template-columns: 1fr;
}
.grid-table.cols-2 {
    grid-template-columns: 1fr;
}
.grid-table.cols-1 {
    grid-template-columns: 1fr;
}

#popup {
    display: none;
}

.message {
    display: inline-flex;
    margin: 0 0 20px;
    padding: 10px 20px;
    min-width: 500px;
    font-family: serif;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #CCC;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .wrapper {
        background-size: 300%;
        background-position: top right;
    }
    section form * {
        font-size: 1rem !important;
    }
    section form fieldset {
        display: flex !important;
        border-radius: 2px;
    }
    section form fieldset table tr {
        display: flex;
        flex-direction: column;
    }
    section form input[type="text"],
    section form input[type="password"] {
        padding: 2px 6px;
        width: 100%;
        height: 36px;
        font-family: var(--ff-american);
    }
    section form input[type="submit"] {
        width: 100%;
        height: 36px;
        font-family: var(--ff-american);
    }
    table {
        display: grid;
        width: 100%;
    }
    table tr {
        grid-template-columns: auto auto;
    }
}

@media (min-width: 767px) {
    .wrapper {
        background-size: 100% 270px;
        background-position: top right;
        background-position: 0 -50px;
    }
    a.logo img {
        /* margin: 20px auto 0 auto; */
        margin: 0 0 0 10px;
        height: 100px;
    }
    .mobile-nav {
        margin-top: 20px;
    }
    .mobile-nav .bar .hero {
        width: 60%;
    }
    .grid-table.cols-4 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-table.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .wrapper {
        grid-template-rows: 280px auto;
    }
    header {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        padding: 0;
        border-bottom: 0;
    }
    header:after {
        display: none;
    }
    .logo-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .logo-wrapper .logo {
        display: flex;
    }
    a.logo {
        margin: 0;
        padding: 20px 20px 20px 20px;
        overflow: hidden;
    }

    a.logo img {
        /*width: 140px;*/
        height: 160px;
    }
    .logo-wrapper .hero {
        margin: 20px 0 0 10px;
        height: 160px;
        height: 120px;
    }
    /*
    .hero {
        padding: 0 0 0 20px;
    }
    .hero h1 {
        margin-top: 1rem;
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 2rem;
    }

    .hero h3 {
        margin-top: 1.6rem;
        font-size: 2rem;
    }
    .hero h1, .hero h2, .hero h3 {
        text-align: left;
    }
    */
    .mobile-nav {
        display: none;
    }
    aside {
        display: flex;
    }
    main {
        display: grid;
        grid-template-columns: 200px auto;
        padding: 0;
        background-color: transparent;
    }
    .topmenu {
        display: flex;
        padding: 10px;
        padding-left: 200px;
    }
    footer {
        display: none;
    }
    .grid-table.cols-4 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .grid-table.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}
