:root {
    --main: black;
    --secondary: #45a049;
    --third: #FFF8A8;
    --forth: #ac2020;
}

*, ::before, ::after {
    box-sizing: border-box;
}

a:hover {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif, HighlandGothicFLF;
    font-size: 16px;
    color: #2a3237;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

hr.dotted {
    border-top: 3px solid #bbb;
}

.divder {
    text-align: center;
    position: relative;
    top: 2px;
    padding-top: 1px;
    margin-bottom: 14px;
    line-height: 0;
}

.divder h5 {
    line-height: 1;
    font-size: 12px;
    color: #767676;
    font-weight: 400;
    z-index: 2;
    position: relative;
    display: inline-block;
    background-color: #fff;
    padding: 0 8px 0 7px;
}

.divder::after {
    content: "";
    width: 100%;
    background-color: transparent;
    display: block;
    height: 1px;
    border-top: 1px solid #e7e7e7;
    position: absolute;
    top: 50%;
    margin-top: -1px;
    z-index: 1;
}

input[type=text], input[type=password], input[type=submit], select, textarea {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #ccc;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 rgba(0, 0, 0, .07) inset;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 10px 20px;
    border: 1px transparent;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    box-sizing: border-box;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 rgba(0, 0, 0, .07) inset;
    cursor: pointer;
}

.newevent {
    border-radius: 2px;
    background-color: #28a745;
    color: white;
}

button:hover {
    opacity: 0.8;
}

input[type=text]:focus, input[type=password]:focus, input[type=submit]:focus, input[type=search]:focus, select:focus, textarea:focus, button:focus, .searchTerm:focus {
    border-color: #e77600;
    box-shadow: 0 0 3px 2px rgba(228, 121, 17, .5);
}

.search {
    width: 100%;
    position: relative;
    display: flex;
}

.searchTerm {
    outline: none;
    color: #111111;
}

.searchTerm:focus {
    color: #333333;
}

.searchButton {
    width: 40px;
    height: 36px;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-size: 20px;
}

.search button {
    padding: 0;
    background: unset;
}

.search input[type="text"] {
    border-radius: 2px 0 0 2px;
    padding: 0 5px;
}

.bg-color {
    background-color: var(--secondary);
}

.difficulty {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex: 1;
}

.difficulty .difficulybutton {
    display: flex;
    width: 20%;
    padding: 10px;
    border: 2px solid #e9e9e9;
    border-radius: 2px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.difficulty .difficulybutton:hover, .difficulty .active {
    background-color: var(--forth);
    color: white;
}

/*---------------------- HEADER ----------------------  */

.header {
    overflow: hidden;
    flex: 0 0 auto;
    margin: 0 0 50px 0;
}

.header-img {
    position: relative;
    width: 100%;
    min-height: 60vh;
    color: white;
    /*
     background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), url('../Bilder/gas.png');
     background-attachment: fixed;
     background-position: center;
     background-repeat: no-repeat;
     background-size: contain;*/
    background: url('https://images.unsplash.com/photo-1453282716202-de94e528067c?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1600&h=900&fit=crop&ixid=eyJhcHBfaWQiOjF9') no-repeat center fixed;
    background-size: cover;
    transition: all 0.4s ease;
}

.headbar {
    position: fixed;
    height: auto;
    z-index: 50;
    width: 100%;
    -webkit-transition: all 0.3s ease;
    transition: all 1s ease;
    opacity: 1;
    background-color: var(--main);
    /*background-image: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(0, 0, 0, 1));*/
}

.header .container {
    position: relative;
    z-index: 1;
    padding: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    transition: all 1s ease;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
}

#logo, #navigation, #mobilemenu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    color: #ffffff;
}

/*----------- Logo -----------*/

#logo a {
    color: white;
    text-align: center;
    margin-left: 10px;
    float: right;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
}

#logo img {
    width: 50px;
    height: 50px;
}

/*----------- Navigation -----------*/

#navigation {
    justify-content: space-between;
    transition: all 0.3s ease-out;
    flex-grow: 100;
}

#navigation .nav-left a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    margin-left: 20px;
    /*padding: 12px;*/
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
}

#navigation .nav-left a:hover {
    color: red;
}

.nav-right {
    display: flex;
    flex-direction: row;

}

/*----------- Login Button -----------*/

.login {
    background: var(--forth);
    transition: 0.4s;
    align-self: flex-end;
    padding: 6px 12px;
    border-radius: 5px;
    float: left;
    display: block;
    color: white;
    text-align: center;
    margin-left: 20px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
}

.login:hover {
    background: white;
    color: red;
}

/*----------- User angemeldet -----------*/
#profilnavbar {
    display: flex;
    align-items: center;
    margin-left: 8px;
    margin-right: 8px;
    position: relative;
}

#friends {
    border: 0 none;
    margin: 0 20px;
    padding: unset;
    box-shadow: unset;
    cursor: pointer;
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    color: white;
}

#profilnavbar .profilbutton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0 none;
    margin: 0;
    padding: unset;
    box-shadow: unset;
    font-size: 16px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    color: white;
}

#profilnavbar .avatar {
    border: 2px dashed rgb(221, 221, 221);
    position: relative;
    width: 49px;
    height: 49px;
    box-sizing: border-box;
    border-radius: 50%;
    margin-left: 16px;
    margin-right: 16px;
}

#profilnavbar .avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profilnavbar button .icon {
    transition: transform 200ms ease-out 0s;
    width: 24px;
    height: 24px;
}

/*----------- Dropdown Menü Profilbar -----------*/
.dropdown-content {
    position: absolute;
    background-color: green;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 70px;
    width: 250px;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-2em);
    transition: all 0.1s ease-in-out 0s, visibility 0s linear 0.1s;
}

#profilnavbar:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0%);
    transition-delay: 0s, 0s, 0.1s;
}

.list {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.list li, ul {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

.list .item {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    padding: 8px 8px 8px 8px;
    text-decoration: none;
    color: black;
    transition: 0.3s;
    font-size: 18px;
}

.item:hover {
    cursor: pointer;
    background: rgb(237, 237, 237) none repeat scroll 0 0;
}

.item .lefticon, .righticon {
    display: inline-flex;
    min-width: 24px;
    align-items: center;
    margin-right: 16px;
    justify-content: center;
}

.item .lefttext {
    flex: 1 1 0;
}

.line {
    padding: 8px;
}

.line > hr {
    border: medium none;
    background-color: rgb(237, 237, 237);
    height: 1px;
    margin: 0;
}


/*----------- Mobile Seite -----------*/

#toggle {
    display: none;
}

#mobilemenu {
    display: none;
}

.mobile_sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 51;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 120px;
    display: none;
}

.mobile_sidenav a, .mobile_sidenav span {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    transition: 0.3s;
    text-align: center;
}

.mobile_sidenav a:hover {
    color: #f1f1f1;
}

.mobile_sidenav .mobile_sidenav_close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/*----------- Freundesliste  -----------*/

.sidecanvas {
    opacity: 0;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    transition: opacity 1s;
    bottom: 0;

}

.sidenav {
    width: 0;
    position: fixed;
    z-index: 1;
    right: 0;
    background-color: rgba(255, 255, 255, 0.5);
    overflow-x: hidden;
    transition: 0.5s;
    padding: 10px 0;
    top: 70px;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.freunde {
    overflow-y: auto;
    flex-grow: 1;
    height: 100%;
}

.freunde > h2, .freunde > p {
    text-align: center;
}

.freunde .freundcard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: .75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, .125);
    box-sizing: border-box;
    color: black;

}

.freundcard .f_avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    overflow: hidden;
}

.f_avatar img {
    width: 100%;
    height: auto;
}

.sidefooter {
    flex-grow: 0;
}

.sidefooter fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.sidefooter fieldset select {
    display: inline-block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sidefooter form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.sidefooter .block {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
    margin-top: 0;
    flex-grow: 2;
}

.addbtn {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    flex-grow: 1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/*----------- Benachrichtigung -----------*/

.badge {
    display: none;
    padding: 1px 6px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 12px;
}

.notification {
    margin: 0 3px;
    display: inline-block;
    border-radius: 2px;
    position: relative;
}

.badge.active {
    display: block;
}

i.p1 {
    position: relative;
    cursor: pointer;
}

/*---------------------- Content ----------------------  */
.content {
    margin: 0 0 50px 0;
    flex: 1 0 auto;
    transition: all 0.4s ease;
}

.content .container {
    padding-bottom: 30px;
    max-width: 1200px;
}

/*-- Über die Breite von 1200px--*/
.containmax {
    max-width: unset !important;
    margin: 0;
}

/*----Flex Container----*/

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

}

.flex-align-around {
    justify-content: space-around;
    align-items: stretch;
    align-content: space-around;
}

.content-intro {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
    text-align: center;
}


.flex-container .col30 {
    flex-basis: 30%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-container .col70 {
    flex-basis: 60%;
    padding: 20px;
}

.flex-container > .col {
    margin: 10px;
    text-align: justify;
    flex-grow: 1;
    flex-basis: 200px;
}

.col img {
    max-width: 100%;
    vertical-align: middle;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.column {
    flex-shrink: 1;
    flex-basis: 40%;
    margin-top: 6px;
    padding: 20px;
}

.column img {
    max-width: 100%;
    width: 100%;
    object-fit: cover;
}

/*---------------------- Footer ----------------------  */

.footer {
    padding: 50px 0;
    background-color: var(--main);
    color: white;
    clear: both;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
}

.impressum {
    text-align: center;
    margin: 0 auto;
    background-color: var(--main);
    padding: 20px 0;
    width: 100%;
}

.impressum a, .impressum span {
    text-decoration: none;
    color: white;
    font-size: 15px;
}

.col2 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin: 10px;
    text-align: justify;
    flex-grow: 1;
    flex-basis: 200px;
}

.to-top {
    z-index: 411;
    text-decoration: none;
    overflow: hidden;
    transition: all 1s ease-in-out;
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    line-height: 1.7;
    width: 50px;
    height: 30px;
    color: white;
    display: none;
}

.to-top:hover {
    background-color: rgba(0, 0, 0, 1);
}

/* Für Login Seite*/

.pwbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


@media screen and (max-width: 768px) {
    .headbar {
        overflow: hidden;
        position: relative;
    }

    #navigation {
        display: none;
    }

    #navigation {
        justify-content: flex-end;
    }

    #mobilemenu {
        display: inline-flex;
    }

    .mobile_sidenav {
        display: unset;
    }

    .header .header-text {
        display: table;
        text-align: center;
        width: 100%;
        min-height: unset;
    }

    .flex-container .col, .col2, .col30, .col70 {
        flex-basis: 100% !important;
    }

    .column, input[type=submit] {
        width: 100%;
        flex-basis: 100%;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-content > .col2 {
        margin: 0;
    }
}

@media screen and (max-width: 400px) {
    .col > h3 {
        font-size: inherit;
    }
}