body {
      font-family: 'Josefin Sans', sans-serif;
}
h2,
p {
  
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #fff;
}

.flex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 5em;
}

.contactblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
}

#modal {
    border: none;
    border-radius: 15px;
    height: 20em;
    width: 20em;
    position: relative;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
font-family: Mulish, sans-serif;
font-size: 1.3em;
}

#modal:open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#modal .animation {
    width: 200px;
    position: absolute;
    /* height: auto; */
}

#modal #modal-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(55px);
}

#modal-button {
    border: none;
    background-color:#8d96ff;
    padding: 10px 22px;
    border-radius: 5px;
    color: #fff;
    letter-spacing: 1px;
    margin-top: 45px;
}

/* .animation {
    position: relative;
    top: -40px
} */

.hide {
    visibility: hidden;
}

/* .show {
    display: inline-block;
} */

form#contactForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    padding-inline: 10em;
    gap: 8px;

}

input,
textarea {
    font-family: 'Mulish', sans-serif;
    /* text-transform: uppercase; */
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: all .4s ease;

}

input:focus,
input:valid,
textarea:focus,
textarea:valid {
    background-color: #e9f0fe;
    outline: none;
    border: 1px solid transparent;
    /* box-shadow: 0 0 5px rgba(141, 150, 255, 0.5); */
    color: #24284e;


}

input:user-invalid,
textarea:user-invalid
{
    background-color: rgba(253, 138, 138, 0.348);
    border: 1px solid rgba(253, 138, 138, 0.86);


}
input:user-invalid::placeholder,
textarea:user-invalid::placeholder
{
    color: rgb(132, 8, 8);


}

input[type=submit] {
    background-color: #8d96ff;
    width: 150px;;
    padding: 10;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;

}

input[type=submit]:hover {
    background-color: #6c73e0;
}

.contacttext {
    line-height: 24px;

}

.title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}


.regular {
    font-weight: normal;
    font-size: 1.5em;
}


.uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}



@media (max-width: 600px) {
    .container {
        height: auto;
        padding: 2em 1em;
    }

    .flex-row {
        flex-direction: column;
        gap: 2em;
        width: 100%;
        align-items: stretch;
    }

    .contactblock {
        max-width: 100%;
        padding: 0 1em;
        order: 2;
    }

    form {
        padding-inline: 1em;
        margin-top: 1em;
    }

    .title {
        font-size: 1.7em;
        margin-bottom: 0.5em;
    }

    .regular {
        font-size: 1.1em;
    }

    input,
    textarea {
        font-size: 1em;
        padding: 0.7em;
    }

    .video {
        order: 1;
    }

    #video {
        width: 100%;
        height: auto;
    }
}