body {
    margin: 0; 
    font-family: Arial, Helvetica, sans-serif;
    background-color: tan;
}

/* basic css for a webpage w3schools https://www.w3schools.com/css/css_website_layout.asp */

header {
    text-align: center;
    padding: 10px;
    background-color: azure;
    font-family: "Playfair Display", serif;
    font-weight: 400;
}

h2 {
    font-weight: 600;
    font-size: xx-large;
    padding: 25px;
    text-align: center;
}

h3 {
    font-size: x-large;
}

h4 {
    font-size: larger;
}

textarea {
    max-width: 100%;
    max-height: 100%;
    resize: vertical;
    overflow: auto;
}

label {
    display: block;
    font-size: 20px;
}

button {
    padding: 7px;
    margin-right: 8px;
    background: #bfcee4;
    font-size: 17px;
    border: 1px solid;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

/* Making a navigation bar from w3schools https://www.w3schools.com/css/css_navbar_horizontal.asp */

nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
}

nav a {
    float: right;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav a:hover {
    background-color: rgb(80, 78, 78);
}

.subtitle {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

/* Floating and layouting a style w3schools https://www.w3schools.com/css/css_float.asp */

.content {
    display: flex;
    flex-wrap: nowrap;
}

.side {
    flex: 40%;
    padding: 20px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    padding: 0;
}

.main {
    flex: 60%;
    padding: 20px;
    background-color: lightgray;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: larger;
}

.main strong {
    color: rgb(158, 158, 0);
}

.main em {
    color: rgb(13, 37, 134);
}

/* Rounding images w3schools https://www.w3schools.com/howto/howto_css_rounded_images.asp */
/* Grids usage w3schools https://www.w3schools.com/css/css_grid_columns_rows.asp */

.team {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: auto auto auto;
    row-gap: 8px;
    column-gap: 50px;
    justify-content: space-evenly;
}

.team img {
    grid-row: 1;
    border-radius: 50%;
    max-height: 250px;
    max-width: 250px;
}

.team p {
    grid-row: 2;
    text-align: center;
    font-weight: 600;
}

/* Rounding courners on boarders w3schools https://www.w3schools.com/css/css3_borders.asp */

.tracking_content {
    display: grid;
    grid-template-columns: 1fr 1fr;              
    grid-template-areas:
        "trackingHead    orderHead"                        
        "trackingContent orderContent";
    gap: 25px;  
    text-align: center;
    background-color: aliceblue;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    border-radius: 25px;
}

.tracking_head {
    background-color: rgb(225, 205, 205);
    grid-area: trackingHead;
    padding: 24px;
    border-radius: 24px;
}

.tracking_head p {
    color: rgb(76, 76, 76);
    font-weight: 300;
}

.tracking_table {
    background-color: rgb(225, 205, 205);
    grid-area: trackingContent;
    padding: 24px 36px;
    border-radius: 24px;
}

.order_manag_title {
    grid-area: orderHead;                       
    background: #d9c2c2;
    padding: 24px 28px;
    border-radius: 24px;
    text-align: center;
}

.order_manag_content {
    grid-area: orderContent;
    background: #d9c2c2;
    padding: 24px 28px;
    border-radius: 24px;
}

#toggleUpd{ display:inline-block; }

/* inspearation from ZyBooks reading and w3schools https://www.w3schools.com/css/css_table.asp*/

table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
    background-color: rgb(167, 163, 163);
}

th, td {
    border: 1px solid;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color:  #f2f2f2;
}

th {
    background-color: #740000;
    color: white;
}

/* Search bar insperation w3schools https://www.w3schools.com/howto/howto_css_searchbar.asp */

.orders_content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 10px;
    padding-bottom: 50px;
    border-radius: 25px;
}

.orders_form {
    background-color: rgb(148, 127, 99);
    padding: 25px;
    margin: auto;
    border-radius: 25px;
    margin-bottom: 20px;
}

input[type = "text"] {
    padding: 6px;
    margin-top: 8px;
    font-size: 17px;
    border: none;
}

input[type = "submit"] {
    padding: 7px;
    margin-right: 8px;
    background: #8398b8;
    font-size: 17px;
    border: 1px solid;
    cursor: pointer;
}

select {
    padding: 6px;
    margin-top: 8px;
    font-size: 17px;
}

.orders_table {
    background-color: rgb(148, 127, 99);
    padding: 25px;
    padding-left: 110px;
    padding-right: 110px;
    margin: auto;
    border-radius: 25px;
}

.orders_table p {
    color: rgba(210, 229, 0, 0.602);
    font-weight: 300;
}

/* inspired form's css from w3schools https://www.w3schools.com/css/css_form.asp */

.order {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 25px;
    background-color: rgb(162, 128, 84);
    padding: 20px;
    margin-right: 25rem;
    margin-left: 25rem;
    margin-bottom: 20px;
}

.order input[type="text"], select, textarea{
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="number"] {
    padding: 3px;
    padding-right: 30px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#order_messages {
    position: relative;
    border-radius: 10px;
    padding: 10px;
    margin-right: 25rem;
    margin-left: 25rem;
}

#order_messages.success {
    background: #d4edda;
    border: 1px solid #155724;
    color: #155724;
}

#order_messages.error {
    background: #f8d7da;
    border: 1px solid #721c24;
    color: #721c24;
}

#order_messages h4 {
    text-align: center;
}

#order_messages li {
    font-weight: 500;
}

/* textarea css insperation from w3schools and stackoverflow https://www.w3schools.com/css/tryit.asp?filename=trycss_form_textarea https://stackoverflow.com/questions/3899463/how-can-i-prevent-the-textarea-from-stretching-beyond-his-parent-div-element-g */
/* centering the prefill button with insperation from stackoverflow https://stackoverflow.com/questions/67841090/how-to-align-a-button-to-the-center-of-the-screen-html */

.order p {
    font-size: 20px;
}

input[type="radio"] {
    float: inline-start;
}

.radio {
    margin-bottom: 10px;
    font-size: 20px;
}

.order input[type="submit"] {
    margin-top: 10px;
}

.rendered_success {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    background-color: aliceblue;
    margin: 0 auto;
    padding: 20px 0;
    border-radius: 25px;
    max-width: 600px;
}

.render_fail {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    background-color: aliceblue;
    margin: 0 auto;
    padding: 20px 0;
    border-radius: 25px;
    max-width: 800px;
}

