body {
    font-family: sans-serif;
    margin-top: 50px;
    margin-left: 100px;
    margin-right: 100px;
    margin: 0;
}

body {
    font-family: sans-serif;
}

label {
    font-size: 10px;
}

p {
    font-family: sans-serif;
    font-size: 15px;
    margin-bottom: 20px;
}

.button {
    font-size: 20px;
    margin: 10px auto;
    /* Adjust the spacing between the buttons */
    display: block;
    text-align: center;
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 10px;
    animation: blink 1s infinite;
}

.button::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ce2f2f;
    /* Adjust the color of the animation */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.button:hover::before {
    transform: scaleX(1);
}

.text-center {
    color: #fff;
    text-transform: uppercase;
    font-size: 23px;
    display: block;
    text-align: center;
}

.box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.671);
    border-radius: 5px;
    padding: 40px 150px;
    box-shadow: 2px 2px 10px #494949;
}

.input-container {
    position: relative;
    margin-bottom: 25px;
}

.input-container label {
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 16px;
    color: #fff;
    transition: all 0.5s ease-in-out;
}

.input-container input {
    border: 0;
    border-bottom: 1px solid #ffffff;
    background: transparent;
    width: 100%;
    padding: 20px 0 5px 0;
    font-size: 16px;
    color: #ce2f2f;
    width: 350px;
}

.input-container input:focus {
    border: none;
    outline: none;
    border-bottom: 1px solid #ce2f2f;
}

.btn {
    color: #fff;
    background-color: #e74c3c;
    outline: none;
    border: 0;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    margin-top: 50px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.btn:hover {
    letter-spacing: 2px;
    transition: 0.2s ease-in;
    background-color: #ce2f2f;
}

.input-container input:focus~label,
.input-container input:valid~label {
    top: -12px;
    font-size: 12px;
}

.rainbow-text {
    background-image: linear-gradient(45deg, #ffffff, #afafaf, #6e6e6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#message {
    display: none;
    color: rgb(255, 255, 255);
    position: relative;
}

#message p {
    padding: 2px;
    font-size: 14px;
}

.valid {
    color: rgb(191, 67, 202);
}

.valid:before {
    position: relative;
    left: -35px;
    content: "✔";
}

.invalid {
    color: red;
}

.invalid:before {
    position: relative;
    left: -35px;
    content: "✖";
}


/* Stile für kleinere Bildschirme */

@media screen and (max-width: 900px) {
    .box {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba(0, 0, 0, 0.671);
        border-radius: 5px;
        padding: 40px 50px;
        box-shadow: 2px 2px 10px #494949;
    }
}

#particles-js {
    width: 100%;
    height: 100%;
    background-color: #000000;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}