/* ------- Main styles for contact ------- */
main {
    margin: 0 auto;
    padding: 0px;
    border: solid black 5px;
    background-color: black;
    font-size: 1vw;
}

.borderWidth{
    width: 30%;
    margin-left: 35%;
}

/* H1 Style for contact */
h1#contact{
    color: white;
    font-size: 8em;
    display: flex;
    justify-content: center;
    padding-top: 25px;
}

/* Parents container to flex the label items */
.labelRow{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
}

/* Parent container for the maximum width of label items and text area */
.maxWidth{
    margin: 0% 10%;
    padding: 25px 0;
}

/* Style and size of text area */
#textarea{
    min-width: 25px;
    width: 100%;
    resize: none;
}

/* 100% Size of label items */
#Nachname, #name, #email{
    width: 100%; /* Nehme 100% des Platzes im Container labelItem ein */
}

/* Font-style of label text */
label {
    font-size: 1rem;
    color: white;
}

/* Size of label items */
.labelItem {
    width: 200px;
    margin-bottom: 15px;
}

/* Distance of the checkbox to the other elements*/
#check1{
    margin: 15px 0;
}

/* Container for the button */
.button-container {
    position: relative;
    width: 100%;
    height: 30px;
    z-index: 1;
}

/* Styling for the button */
.custom-button {
    width: 100%;
    min-width: 25px;
    height: 100%;
    background-color: black;
    border-color: white;
    cursor: pointer; /* Changes the cursor to a pointer when hovering over the button */
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    z-index: 2;
}

/* Styling for the paper plane and text in the button */
.fa-paper-plane,
.text {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
    font-weight: bold;
    color: white;
}

/* Styling for the paper plane */
.fa-paper-plane {
    z-index: 1;
}

/* Styling for the text */
.text {
    z-index: 2;
    transform: translate(-50%, 150%);
}

/* Changes the position of the paper plane when hovering over the button */
.custom-button:hover .fa-paper-plane {
    transform: translate(-50%, -250%);
}

/* Changes the position of the text when hovering over the button */
.custom-button:hover .text {
    transform: translate(-50%, -50%);
}
