*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: 'Courier New', Courier, monospace;
}

body
{
    overflow: hidden;
}

form
{
    display: flex;
    flex-direction: column;

    background-color: salmon;

    padding: 20px;
}

form > label
{
    margin-top: 20px;
}

main
{
    width: 400px;
    height: 400px;

    margin: 0 auto;

    transform: translateY(25%);

    background-color: salmon;

    padding: 20px;
}


input, select, textarea
{
    background-color: lightgrey;
    height: 28px;
    padding: 0 10px;
    border-radius: 3px;
    border: none;

    width: 100%;

    animation: placeholder-anim 2s infinite ease-in-out;

    transition: width 100s, margin-left 2s;
}

input[type="email"]:hover
{
    margin-left: -1000px;
}

option
{
    outline: none;
    border: none;

    transform: translateX(200px);
}

input:focus, textarea:focus, select:focus
{
    background-color: ghostwhite;
    border: 1px solid black;
    outline: none;
}

select:focus
{
    animation: spin-anim 2s infinite linear;
}

input:focus
{
    width: 1000px;
}

textarea
{
    resize: none;
    height: 130px !important;
    padding: 10px;

    transition: width 1s;
}

textarea:focus
{
    width: 50px;
}






form > div, form > div > div, form > div > div > div, form > div > div > div > div
{
    position: relative;
    height: 100px;
    width: 100%;
}

form > div > div
{
    position: absolute;
    top: 100px;
}

form > div > div > div
{
    position: absolute;
    left: -100%;
}

form > div > div > div > div
{
    position: absolute;
    top: -100px;
}


form > div > div > div > div > input[type="submit"]
{
    position: absolute;

    top: 0;
    left: 100%;

    margin-top: 20px;
    height: 30px;
    width: 100%;

    transition: top .1s linear;
}

form > div:hover > div > div > div > input[type="submit"]
{
    top: 100px;
}

form > div > div:hover > div > div > input[type="submit"]
{
    left: 0px;
}

form > div > div > div:hover > div > input[type="submit"]
{
    top: -100px;
}

form > div > div > div > div:hover > input[type="submit"]
{
    right: 0px;
}

input[type="submit"]:active
{
    width: 100vw;
    height: 100vh;

    top: 0px;
    left: 0px;

    background-color: black;
    color: white;
}

main > p
{
    transform: rotate(45deg);
    animation: placeholder-anim 1s infinite linear;
}
main > p span:nth-child(3n-2)
{
    display: inline-block;
    animation: spin-anim 10s infinite linear;
}
main > p span:nth-child(3n-1)
{
    display: inline-block;
    animation: spin-anim 10s infinite linear;
    animation-delay: 3.33s;
}
main > p span:nth-child(3n)
{
    display: inline-block;
    animation: spin-anim 10s infinite linear;
    animation-delay: 6.66s;
}

span{
    transition: margin 1s ease-in-out;
}
main > p:hover span
{
    margin: 10px;
}


a {
    color: red;
}
a:hover
{
    color: white;
}



@keyframes placeholder-anim {
    0%
    {
        transform: translateY(-10px);
    }
    50%
    {
        transform: translateY(10px);
    }
    100%
    {
        transform: translateY(-10px);
    }
}

@keyframes spin-anim {
    0%
    {
        transform: rotate(0deg);
    }
    50%
    {
        transform: rotate(180deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}