/* Custom Stuff */
:root {
    --background: #fdfbec;
}

@font-face {
    font-family: 'Bigdey';
    src: url("../fonts/Bigdey-Demo.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Valentine';
    src: url("../fonts/IFoundMyValentine-V1ne.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Valentine';
    letter-spacing: 1px;
    line-height: 1.3;
    font-size: 1.2rem;
}

.flex-wrapper {
    display: flex;
    justify-content: center;
    background-color: var(--background);
}

.top-wrap {
    padding-top: 2em;
    flex-direction: column;
}

.top-wrap.logo {
    flex-direction: row;
    font-family: 'Bigdey';
    align-items: center;
    letter-spacing: 3px;
}

.logo img {
    width: 100px;
}

.name {
    font-size: 2rem;
}

.side-wrap {
    padding: 0 0.5em;
}

.bottom-wrap {
    padding-top: 1em;
    padding-bottom: 2em;
    text-align: center;
}


.profile a img {
    width: 64px;
    height: 64px;
    position: absolute;
    right: 0.5rem;
    border-radius: 100%;
    top: 0.5rem;
}

#body {
    flex-grow: 1;
    background-color: white;
    min-height: 100vh;
    padding: 1rem;
    max-width: calc(100% - 1rem);
}


.newsimage {
    max-width: 500px;
    width: 100%;
    display: flex;
    align-self: center;
    flex-shrink: 1;
}

.wideimage {
    max-width: 100%;
    max-height: 100%;
    justify-self: center;
    display: flex;
}

.half {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

h2.no_underline {
    margin-top: 30px;
}

/* badge */
.badge {
    width: 0.8em;
    height: 0.8em;
}

.big {
    font-size: x-large;
    line-height: 2;
}

.large {
    font-size: larger;
}

.margin-top {
    margin-top: 50px;
}

.dz-progress {
    display: none;
}

/* Menu Settings */

.main-nav ul {
    display: grid;
    grid-template-columns: 1fr;
}

.main-nav ul li.spacer {
    display: none;
}

.main-nav ul li:nth-child(4n-1) {
    border-right: 0;
}

.main-nav ul li:nth-child(4n+1) {
    border-left: 0;
}

.main-nav {
    width: calc(100% - 1em);
    color: black;
    margin: 1em 0;
    font-family: 'Bigdey';
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.main-nav a {
    text-decoration: none;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg,rgba(237, 153, 241, 1) 0%, rgba(187, 177, 240, 1) 16%, rgba(162, 236, 219, 1) 33%, rgba(189, 252, 171, 1) 50%, rgba(250, 240, 142, 1) 70%, rgba(253, 203, 140, 1) 84%, rgba(255, 161, 143, 1) 100%);
}

.main-nav ul li {
    display: inline-block;
    border: 10px var(--background) solid;
    border-left-width: 0;
    border-right-width: 0;
}

.main-nav ul li a {
    position: relative;
    display: block;
    line-height: 1.6;
    color: black;
    padding: 10px 20px 0;
    white-space: nowrap;
}

.main-nav > ul > li > a {
    border-radius: 2px;
}



/* Selected Dropdown nav item */
.main-nav ul li.selected > a {
    backdrop-filter: contrast(3.5);
    color: black;
}

/*Active dropdown nav item */
.main-nav ul li:hover > a {
    backdrop-filter: brightness(0.5);
}

/* Dropdown CSS */
.main-nav ul li {position: relative;}

.main-nav ul li ul {
    position: absolute;
    background-color: #1F8DD6;
    min-width: 100%;
    text-align: left;
    z-index: 999;

    display: none;
}
.main-nav ul li ul li {
    display: block;
}

/* Child Indicator */
.main-nav .has-children > a {
    padding-right: 30px;
}
.main-nav .has-children > a:after {
    font-family: FontAwesome;
    content: '\f107';
    position: absolute;
    display: inline-block;
    right: 8px;
    top: 0;
}

.main-nav .has-children .has-children > a:after {
    content: '\f105';
}

@media screen and (min-width: 300px) {
    .side-wrap {
        padding: 0 1em;
    }

    .bottom-wrap {
        padding-top: 1em;
        padding-bottom: 2em;
    }
    .main-nav {
        width: calc(100% - 2em);
    }
}

@media screen and (min-width: 460px) {
    .main-nav ul {
        grid-template-columns: 1fr 1fr;
    }

    .main-nav ul li {
        border-left-width: 10px;
        border-right-width: 10px;
    }

    .main-nav ul li:not(.spacer):nth-last-child(1):nth-child(even) { 
        background: var(--background);
        display: block;
    }

    .side-wrap {
        padding: 0 2em; 
    }

    .bottom-wrap {
        padding-top: 1em;
        padding-bottom: 2em;
    }

    .main-nav {
        width: calc(100% - 3em);
    }

    .logo img {
        width: 200px;
    }

    .name {
        font-size: 3rem;
    }
}

@media screen and (min-width: 600px) {
    .form-field {
        display: grid;
        grid-template-columns: 1fr 2fr;
        margin-bottom: 20px;
        gap: 20px;
    }
}

@media screen and (min-width: 900px) {
    .name {
        font-size: 4.5rem;
    }

    .half {
        flex-direction: row;
    }

    .newsimage {
        width: 50%;
        max-width: 500px;
        justify-self: center;
    }

    .profile a img {
        width: 128px;
        height: 128px;
        position: absolute;
        right: 1rem;
        border-radius: 100%;
        top: 1rem;
    }
}

@media screen and (min-width: 1330px) {
    .main-nav ul {
        display: flex;
    }

    .main-nav ul li.spacer {
        display: block;
        width: 20px;
        background: var(--background);
        flex-grow: 1;
        flex-shrink: 1;
    }
    
    .main-nav ul li {
        border: none;
    }

    .main-nav ul li:not(.spacer):nth-last-child(1):nth-child(even) {
        display: none;
    }

    .main-nav ul li:last-child {
        display: none;
    }
}

/* Formular styles */
.form-field {
    margin-bottom: 20px;
}

.form-input-file.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
}

.checkboxes {
    display: flex !important;
    flex-direction: column;
}
.checkboxes label {
    line-height: 1.5;
    padding-left: 30px !important;
}

.bold p {
    font-weight: bold;
}

#grav-login button.button.primary {
    margin-top: 20px;
}