/* Overall styling for the page. */
body {
    display: flex;
    flex-direction: column;
    background-color:rgb(200, 223, 244);
    background-image:url("../images/scales.jpg");
    background-blend-mode:lighten;
    border:10px solid rgb(66, 144, 189);
    padding:10px;

    button {
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        font-size:15px;
    }
}

/*
General styling for all children of the form element, which is 
everything in the document except for the header. Standardizes 
the form into a general style and sets up the general division 
of sections.
*/
form {
    display: flex;
    flex-direction: column;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

    label {
        font-size: 14px;
    }

    h3 {
        align-self: center;
        border-bottom: 1px solid;
    }
}

/* The general styling for a payment subsection. */
.payment_subsection {
    display: flex;
    flex-direction: column;
    border: 1px solid;
    margin: 10px;
    padding: 5px;
    height: 300px;
    background-color:white;
}

/* 
Styling for a basic input field. These should have their 
label above them to make the form more readable. The input 
is standardized to a Courier font, and the labels match the 
general font of the document.
*/
.basic_field {
    display: flex;
    flex-direction: column;
    margin: 5px;

    input {
        font-family: 'Courier New', Courier, monospace;
        font-size:15px;
    }
}

/* 
Styling for sections that contain multiple input fields 
that are side-by-side. They should share the space evenly.
*/
.sidebyside_fields {
    display: flex;
}

/* --------------------------- STYLES BY ID --------------------------- */

/* 
Styling for the header that provides information on the app and 
contains buttons with various functionality. 
*/
#program_overview {
    align-self: center;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color:white;

    h1 {
        align-self: center;
        margin: 0px;
        border-bottom: 1px solid;
    }

    h2 {
        align-self: center;
        font-size: 15px;
        margin-top: 5px;
        margin-bottom: 0px;
    }

    p {
        align-self: center;
        max-width: 500px;
    }

    #nerodia_menu {
        display: flex;
        justify-content: space-evenly;
    }

    button {
        margin: 5px;
    }
}

/*
Styling for the row that contains the sender and recipient 
details sections of the document. 
*/
#sender_recipient_details {
    justify-self: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    align-items: center;
}


/* 
Styling for the image upload. The image is displayed, 
centered in the section, once the user chooses it. 
*/
#image_upload {
    display: flex;
    flex-direction: column;

    #image_preview {
        max-width: 120px;
        max-height: 120px;
        margin: 10px 0;
        border: 1px solid;
        align-self: center;
    }

    #submit_image {
        margin: 5px;
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        font-size:13px;

        input {
            font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
            font-size:13px;
        }
    }
}

/* 
Styling for the message section. The size is fixed to 
match the surrounding forms, so it can't grow in size. 
If the user inputs a particularly long message, they 
will have to scroll.
*/
#message {
    min-height: 40px;
    max-height: 40px;
    min-width: 400px;
    max-width: 400px;
    font-family: 'Courier New', Courier, monospace;
    font-size:13px;
}

/* 
Styling for the section that contains payment details. 
This is styled so that all the content lines up as perfectly 
as possible. 
*/
#payment_details {
    align-self: center;
    height: 230px;
    width: fit-content;

    #card_number {
        width: 307px;
    }

    #card_type {
        font-family: 'Courier New', Courier, monospace;
        font-size: 14.5px;
    }

    #tac_div {
        margin: 5px;
    }

    #submit {
        height: 30px;
        margin: 5px;
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        font-size: 15px;
    }
}