:root {
    --pri-blue: hsl(223, 87%, 63%);
    --sec-pale-blue: hsl(223, 100%, 88%);
    --sec-light-red: hsl(354, 100%, 66%);
    --neu-gray: hsl(0, 0%, 59%);
    --neu-very-dark-blue: hsl(209, 33%, 12%);
    
    font-size: 20px;
    font-family: "Libre Franklin", sans-serif;
}

/* CSS reset */
html {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    height: 100dvh;
    width: 100dvw;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 0rem 1rem;
}

/* Mobile-design */

/* Top half-of-screen styling */
.top-half {
    height: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    width: 65px;
    margin: 1.75rem auto 0.375rem;
}

article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

article h1 {
    font-size: 1.25rem;
    color: var(--neu-gray);
    font-weight: 400;
    margin: 0.5rem auto 0.625rem;
}

article h1 span {
    color: var(--neu-very-dark-blue);
    font-weight: 700;
}

article p {
    font-size: 0.75rem;
}

.form-container {
    margin: 1rem auto;
    width: 85%;
}

.form-container .email-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#user-email-input {
    width: 100%;
    margin: 0.25rem;
    border: 1px solid var(--sec-pale-blue);
    height: 2.25rem;
    border-radius: 1.25rem;
    text-indent: 30px;
}

.input-with-error #user-email-input::placeholder {
    color: var(--sec-pale-blue);
    text-indent: 30px;
    display: flex;
    align-items: center;
}

.form-container #error-message {
    display: none;
    margin: 0.125rem auto 0.625rem;
    color: var(--sec-light-red);
    font-size: 0.625rem;
}

.form-container #submit-button {
    width: 100%;
    margin: 0.25rem auto 0rem;
    height: 2.25rem;
    border: none;
    border-radius: 1.25rem;
    background-color: var(--pri-blue);
    color: white;
    font-weight: 550;
    font-size: 0.875rem;
    box-shadow: 0rem 0.5rem 0.75rem var(--sec-pale-blue);
}

/* Bottom half-of-screen styling */
.bottom-half {
    height: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.dashboard-img img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0rem;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    margin: 0.5rem auto;
}

.social-media-link {
    border: 1px solid var(--sec-pale-blue);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0.375rem;
    border-radius: 1.25rem;
}

.social-media-link a {
    color: var(--pri-blue);
    font-size: 0.625rem;
}

.copyright-line {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.5rem;
    color: var(--neu-gray);
    position: absolute;
    bottom: 0;
}

/* Desktop Design */
@media screen and (min-width: 700px) {
    body {
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    main {
        max-width: 600px;
        height: 100%;
        padding: 0;
        margin: 0;
    }

    .top-half {
        width: 100%;
        height: 35%;
    }

    .logo img {
        width: 75px;
    }

    article h1 {
        font-size: 2rem;
        color: var(--neu-gray);
        font-weight: 300;
        margin: 0.75rem auto 0.5rem;
    }

    article p {
        font-size: 0.85rem;
        margin-bottom: 0rem;
    }

    .form-container {
        margin: 0rem;
        width: 100%;
        padding: 1rem;
        position: relative;
    }

    #error-message {
        position: absolute;
        bottom: -2px;
        left: 55px;
        margin: 0.5rem;
        font-size: 1.25rem;
    }

    .form-container .email-form {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .email-form {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin: 0.5rem;
    }

    #user-email-input {
        width: 65%;
        height: 2.5rem;
        border-radius: 1.5rem;
    }

    #user-email-input::placeholder {
        font-size: 0.75rem;
    }

    .email-form #submit-button {
        width: 35%;
        height: 2.5rem;
        border-radius: 1.5rem;
    }

    .email-form #submit-button:hover {
        background-color: var(--sec-pale-blue);
        cursor: pointer;
    }

    .bottom-half {
        width: 100%;
        height: 65%;
    }

    .dashboard-img img {
        width: 100%;
        height: 100%;
        margin: 0.5rem auto;
        padding: 1rem;
    }

    /* || Need to adjust */

    .social-media-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        bottom: 0;
        margin: 0.5rem auto;
    }
    
    .social-media-link {
        border: 1px solid var(--sec-pale-blue);
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1rem 0.375rem;
        border-radius: 1.25rem;
    }
    
    .social-media-link a {
        color: var(--pri-blue);
        font-size: 0.625rem;
    }

    .social-media-link a:hover {
        color: white;
    }

    .social-media-link:hover {
        background-color: var(--pri-blue);
    }

    .copyright-line {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.375rem;
        color: var(--neu-gray);
        position: absolute;
        bottom: 10px;
    }
}

