h1 {
    font-size: 8rem;
    font-family: Montserrat Black;
    text-align: center;
    margin: 2.5rem 0 0;
}
.flexdiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;    
}
form {
    width: 60vw;

}
label {
    display: block;
    font-size: 2.5rem;
    margin: 2rem 0 0.25rem;
}
input, textarea#message {
    display: inline;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 0 none;
    background-color: #444;
    padding: 0.75rem;
    font-size: 2rem;
    line-height: 2.25rem;
    color: #fff;
    outline-width: 0;
}

input::selection, textarea::selection {
    background-color: #444;
    color: #fff;
}

textarea#message {
    height: 16rem;
    resize: vertical;
    
}

input:focus, textarea#message:focus {
    background: linear-gradient(90deg, hsl(150, 75%, 80%), hsl(175, 75%, 80%));
    outline-width: 0;
    color: #000;
}

p#sent-message {
    margin-top: 4rem;
    font-size: 3rem;
    height: 6rem;
}

button.animated-border-button {
    margin: 3rem 0 0;
    padding: 1.5rem 3rem;

    font-size: 3rem;
    font-family: 'Montserrat Bold';

    line-height: 3rem;
    height: 6rem;
    border-radius: 3.25rem;
    width: 15rem;
    border: 0;
    outline: 0;

    background-color: #fff;
    color: #000;

    position: relative;
    overflow: hidden;
    z-index: 1;
}

button .button-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

button .button-border path {
    fill: none;
    stroke: hsl(150, 75%, 50%);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 118;
    stroke-dashoffset: 118;
    transition: stroke-dashoffset 1s ease;
}

button:hover .button-border path {
    stroke-dashoffset: 0;
    animation: animate-color 1s linear infinite;
}

@keyframes animate-color {
    0% {stroke: hsl(125, 75%, 50%);}
    50% {stroke: hsl(175, 75%, 50%);}
    100% {stroke: hsl(125, 75%, 50%);}
}

@media screen and (max-width: 788px) {
    form {
        width: 90vw;
    }

    input#name, input#email, input#subject, textarea#message {
        font-size: 2rem;
        line-height: 2.5rem;

        /* height: 3rem; */
        padding: 0.75rem;
        margin: 0;

        max-width: 86.25vw;
        width: 86.25vw;
    }
    textarea#message {
        height: 10rem;
    }

    
}


/* TEMP TEXT */
p {
    font-size: 2.5rem;
    line-height: 3.5rem;
    margin: 1rem 0 0;
    text-align: center;
}