@import url(./reset.css);

body {
    background-color: #444;
    color: white;
}

h1 {
    font-size: 2rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: aqua;
    margin: 1.5rem 0;
}

p {
    font-size: 1.2rem;
    color: white;
}

a {
    font-size: 1.2rem;
    text-decoration: underline;
    color: lightsalmon;
}

.error {
    color: lightcoral;
}

.copyright {
    font-size: 0.8rem;
    text-align: center;
}

.container {
    width: 96vw;
    max-width: 1280px;
    margin: 0 auto;
}

article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;

    .left,
    .right {
        width: 95%;
    }

    img {
        border-radius: 1rem;
    }
}

.golive {
    display: inline-block;
    font-size: 1.5rem;
    color: bisque;
    margin-top: 1rem;
    padding: 0 2rem;
    background-color: cadetblue;
    border-radius: 1rem;
    border: 3px solid lightseagreen
}

.golive:hover {
    box-shadow: 0rem 0rem 0.5rem black;
    color: white;
}

header,
footer {
    width: 100vw;
    background-color: #222;
}

header {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

footer {
    margin-top: 2rem;
    padding: 1rem;

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 3rem 0;

        .left,
        .right {
            width: 100%;

            p:first-child {
                font-size: 1.2rem;
            }

            p:not(:first-child) {
                font-size: 1rem;
            }
        }
    }

    p:first-child {
        font-weight: 600;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    input,
    textarea {
        color: white;
        background-color: #444;
        border: none;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        margin: 0.5rem 0;
        width: 100%;
        font-size: 1rem;
    }

    textarea {
        resize: none;
        height: 8rem;
    }

    button {
        color: white;
        background-color: #464;
        border: none;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        margin: 0.5rem 0;
        width: 100%;
    }

    button:hover {
        color: oldlace;
        background-color: #575;
        cursor: pointer;
    }
}

@media screen and (min-width: 576px) {
    article {
        flex-direction: row;
        justify-content: space-between;

        .left,
        .right {
            width: 48%;
        }
    }

    article:nth-child(2n) {
        flex-direction: row-reverse;
    }

    footer {
        .container {
            flex-direction: row;

            .left,
            .right {
                width: 49%;
            }
        }
    }
}