
* {
    box-sizing: border-box;
    font-family: Arial;
}

/* Navigation bar */
.navbar {
    overflow: hidden;
    background-color: #333;
}

.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a.right {
    float: right;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* Containers */
.container {
    padding: 0.01em 16px;
}

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

.page {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}

/* Personalia */
.personalia {
    flex: 30%;
    background-color: #ddd;
    padding: 16px;
}

.personalia img {
    vertical-align: middle;
    max-width: 300px;
    height: auto;
}

.personalia-content__category {
    font-size: 20px;
}

.personalia-content__element ul {
    font-weight: bold;
    font-size: 18px;
}

.personalia h1 {
    font-size: 40px;
}

/* Profile */

.profile-image {
    margin: 15px 0px 15px 0px;
}

.profile {
    flex: 70%;
    background-color: #ccc;
    padding: 16px;
}

.profile-content__element {
    display: flex;
    justify-content: space-between;
}

.profile-content__element p {
    font-size: large;
}

.profile-content__element.header {
    display: flex;
    flex-direction: column;
}

/* Font Awesome */

.fa {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* GDPR */

.gdpr-consent {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    margin: 5px;
    border: 2px solid #333;
    border-radius: 15px 15px 15px 15px;
    background-color: white;
}

.gdpr-consent__description {
    display: flex;
    justify-content: center;
}

.gdpr-consent__choice{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    width: 100%;
}

.gdpr-consent__button--accept {
    background-color: #d5f5d5;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid gray;
}

.gdpr-consent__button--accept:hover {
    background-color: #c5e3c5;
}

.gdpr-consent__button--reject {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid gray;
}

.hide{
    display: none;
}

.show{
    display: block;
}

/* Contactform */

.contactpage {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}

.form {
    width: 100%;
    background-color: #ddd;
    padding: 20px;
    align-items: center;
}

.form-contactpage__inputelement {
    display: flex;
    flex-direction: row;
    margin: 15px 0px 15px 0px;
}

.form-contactpage__inputelement label {
    padding: 0px 15px;
    width: 170px;
    text-align: left;
}

.form-contactpage__inputelement input {
    margin-right: auto;
}

/* Footer */

.footer {
    padding: 20px;
    text-align: center;
    background: #ddd;
}

/* Loader */

#loading {
    width: 2rem;
    height: 2rem;
    border: 5px solid #f3f3f3;
    border-top: 6px solid gray;
    border-radius: 100%;
    margin: auto;
    display: none;
    animation: spin 1s infinite linear;
}
#loading.display {
    display: block;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 800px) {
    .page, .contactpage {
        flex-direction: row;
    }
}


@media screen and (max-width: 700px) {
    .page, .contactpage {
        flex-direction: column;
    }    
}

@media screen and (max-width: 500px) {
    .navbar a {
        float: none;
        width: 100%;
    }    
}