body {
    font: 1em sans-serif;
    padding: 0;
    margin: 0 auto;
}

i {
    color: rgb(2, 98, 177);
}

.page {
    display: flex;
    flex-direction: column;
    font-family: Arial;
}

.personalia {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 150px 10px 0px 10px;
    background-color: lightgray;
    border: 3px solid black;
    border-radius: 10px;
}

.personalia__name-and-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(161, 200, 243);
    border-radius: 6px;
}

.person-name {
    font-size: 28px;
}

.person-logo {
    border: 4px solid black;
    border-radius: 50%;
    width: 30%;
    margin-bottom: 40px;
    animation: glow 3s ease alternate;
}

.personalia__info {
    margin-left: 15px;
    margin-right: 15px;
}

.personalia__info__catergory-title {
    color: rgb(2, 98, 177);
}

.personalia__info__element {
    display: flex;
    flex-direction: column;
}

.personalia__info__detail {
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.personalia__info__back-button {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #c7cbf5;
    border: 2px solid black;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
}

.personalia__info__back-button:hover {
    background-color: #aeb0ca;
}

.personalia__info__element--hidden-mobile {
    display: none;
}

.personalia__info__footer {
    color: gray;
    position: absolute;
    bottom: 0;
    left: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    background-color: #faf8f8;
    border: 3px solid black;
    border-radius: 10px;
}

.contact-form__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin-left: 15px;
    margin-right: 15px;
}

.contact-form__header hr {
    width: 100%;
}

.contact-form__title {
    color: rgb(2, 98, 177);
}

.contact-form__element {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-between;
    width: 80%;
    margin: 13px;
}

.contact-form__element.row {
    flex-direction: row;
}

.contact-form__element-segment {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.contact-form__input-name {
    font-size: 20px;
}

.contact-form input {
    padding: 5px;
    margin-top: 10px;
    border: 2px solid black;
    border-radius: 10px;
    font-size: 14px;
}

.contact-form__buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
    height: 50px;
    margin: 20px 20px 40px 20px;
}

.submit-and-spinner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.contact-form__submit-button {
    padding: 10px;
    width: 150px;
    background-color: #d5f5d5;
    border: 3px solid black;
    border-radius: 10px;
}

.contact-form__submit-button:hover {
    background-color: #c5e3c5;
}

.loading-spinner {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s infinite linear;
    margin-top: 12px;
    margin-left: 15px;
}
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

.contact-form__reset-button {
    padding: 10px;
    width: 100px;
    background-color: #f5d5d5;
    border: 3px solid black;
    border-radius: 10px;
}

.contact-form__reset-button:hover {
    background-color: #e3c5c5;
}

.confirmation {
    display: none;
    align-self: center;
    margin-top: -30px;
    color: rgb(242, 65, 65);
    font-size: 20px;
    font-weight: bold;
}

.confirmation.active {
    display: block;
}

.error {
    display: none;
    position: absolute;
    margin-top: 63px;
    align-self: center;
    width: 97%;
    font-size: 80%;
    color: white;
    background-color: rgb(242, 65, 65);
    border-radius: 0 0 5px 5px;
    box-sizing: border-box;
}

.error.active {
    display: block;
    padding: 0.3em;
}

.error.active.small {
    width: 37%;
    font-size: 64%;
}

.gdpr {
    display: flex;
    flex-direction: column;
    font-family: Arial;
    align-items: center;
}

.gdpr-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    margin: 0px 10px 5px 10px;
    border: 3px solid black;
    border-radius: 15px 15px 15px 15px;
}

.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 {
    padding: 10px;
    background-color: #d5f5d5;
    border: 2px solid black;
    border-radius: 10px;
}

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

.gdpr-consent__button--reject {
    padding: 10px;
    background-color: #f5d5d5;
    border: 2px solid black;
    border-radius: 10px;
}

.gdpr-consent__button--reject:hover {
    background-color: #e3c5c5;
}

.hide{
    display: none;
}

.show{
    display: block;
    background: white;
}

@media only screen and (min-width: 800px) {

    .page {
        flex-direction: row;
    }

    .personalia {
        min-width: 250px;
        width: 25%;
        margin-bottom: 10px;
    }

    .person-logo {
        width: 40%;
    }

    .personalia__info__back-button {
        margin-bottom: 50px;
    }

    .personalia__info__element--hidden-mobile {
        display: flex;
    }

    .contact-form {
        margin-top: 150px;
        margin-left: 0px;
        width: 600px;
    }

    .confirmation {
        position: absolute;
    }

    .gdpr-consent {
        margin: 0px 25% 5px 25%;
    }
}