@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url("/css/topnav.css");
@import url("/css/colors.css");

body {
    margin: 0;
    height: auto;
    min-height: 100dvh;
    width: 100dvw;
    background-color: var(--pale-slate);

    font-family: "Google Sans Flex";

    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100vw;
    height: 86vh;
}

.socials {
    width: 50%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: end;
    flex-direction: column;

    gap: 2vh;
}

.social {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1vw;

    margin-right: 2vw;

    background-color: var(--slate-grey);
    border-radius: 15px;

    box-sizing: border-box;
    padding: 2vh;

    user-select: none;
}

.social a {
    text-decoration: none;
}

.social a:hover {
    text-decoration: underline;
}

.social * {
    margin: 0;
    font-size: 1.2em;
    color: var(--bright-snow);
}

.form {
    width: 50%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 2vh;
}

.form p {
    font-size: 1.2em;
    margin: 0;
    font-family: "Google Sans Flex";
}

.form input {
    width: 15vw;
    height: 6vh;

    outline: none;
    background-color: transparent;
    
    border: 2px solid var(--slate-grey);
    border-radius: 15px;

    box-sizing: border-box;
    padding-left: 0.5vw;
}

.form textarea {
    width: 15vw;
    min-height: 8vh;
    max-height: 25vh;

    outline: none;
    background-color: transparent;
    resize: vertical;
    
    border: 2px solid var(--slate-grey);
    border-radius: 15px;
    
    box-sizing: border-box;
    padding-left: 0.5vw;
    padding-top: 0.5vw;
}

.form button {
    width: 15vw;
    height: 6vh;

    outline: none;
    background-color: var(--slate-grey);
    color: var(--bright-snow);
    
    border: 2px solid var(--slate-grey);
    border-radius: 15px;

    box-sizing: border-box;
    padding-left: 0.5vw;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.form button:hover {
    cursor: pointer;
    background-color: transparent;
    color: var(--carbon-black);
}

.form #error {
    width: 15vw;
    color: red;
    text-align: center;
    font-size: 1em;
    margin: 0;
}

@media screen and (max-width: 768px) {
    body {
        overflow-y: scroll;
        flex-direction: column;
    }

    .main {
        height: auto;
        flex: 1 0 auto;
        flex-direction: column;
        justify-content: start;
        gap: 6vh;
    }

    .socials {
        align-items: center;
        justify-content: start;

        width: 100vw;
        height: auto;

        box-sizing: border-box;
        padding-top: 2vh;
        padding-bottom: 2vh;
    }

    .social {
        gap: 4vw;
    }

    .social i {
        order: -1;
    }
    
    .form {
        align-items: center;

        width: 100vw;
        height: auto;
    }

    .form p {
        font-size: 2em;
    }
    
    .form input {
        width: 90vw;
        height: 10vh;

        padding-left: 4vw;
        font-size: 1.5em;
    }

    .form textarea {
        width: 90vw;
        min-height: 15vh;

        padding-left: 4vw;
        padding-top: 4vw;
        font-size: 1.75em;
    }

    .form button {
        width: 90vw;
        height: 10vh;

        font-size: 1.5em;
    }

    .form #error {
        font-size: 1.5em;
        width: 90vw;
        margin-bottom: 4vh;
    }
}