* {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    background-color: #004d39;
    background-image: url(assets/right-angle-objects-top.png);
	background-repeat: no-repeat;
    background-size: contain;
	margin: 0;
	padding: 0
}

section {
    background-image: url(assets/right-angle-objects-btm.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    margin: 0;
    padding: 0 0 20% 0;
    height: auto;
    width: 100%;

} /* added */

#branding a img {
    width: 30px;
    height: 10%;
    min-width: 10%;
    margin: 12px;
    padding: 12px
}

img#branding-print {
    visibility: hidden;
    width: 30px;
    height: 10%;
    min-width: 10%;
    margin: 12px;
    padding: 12px
}

#title {
    text-align: center;
    padding-top: 2em;
    width: 100%; /* added */
}

#desc {
    line-height: 2em;
    width: auto;
    /* padding-bottom: 2em; */
}

#contain, #results-contain {
    background-color: white;
    height: auto;
    padding-top: 2em;
    padding-bottom: 2em;
    border-radius: 6px;
}

table {
    /* width: 1050px; */
    width: 95%;
    margin: auto;
}
td {
    text-indent: 1em;
    width: 100%; /* added */
}

td.lcred {
    width: 10%;
    background-color: red;
    color: white;
    font-weight: 900;
}

td.lcgold {
    background-color: #ffc72c;
    color: black;
    font-weight: 900;
}

td.lcgreen {
    background-color: #006a4e;
    color: white;
    font-weight: 900;
}

.red span, 
.lcgold span,
.lcgreen span {
    font-size: 15pt;
}


#contain_form {
    background-color: #ffc72c;
   /* width: 800px; */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5em;
    border-radius: 6px;
}

fieldset {
    min-width: auto; /* added */
    margin: 2em 0;
    padding:  2em 4em;
    border: solid 1px #ffc72c;
    border-radius: 6px;
}


legend {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.25em;
    padding: 0 .25em;
    color: #004d39;
    background-color: inherit;
}

#container {
    width: auto;
    padding-left: 2em;
}

#srch {
    display: flex;
    flex-direction: row;
    width: 90%;
    margin: auto;
}

#credentials-title {
    width: 95%;
    margin: auto;
    color: white;
    text-align: center;    
    padding-top: 2em;
    padding-bottom: 2em;
    background-color: #004d39;
}

a[href^="tel:"], a[href^="mailto:"] {
    color: #004d39;
    text-decoration: none;
    font-weight: bold;
}

select#instructors, .btn {
    width: 97%;
    padding: 12px 20px;
    margin: 2em 1em;
    display: inline-block;
}

label {
    margin: auto;
    width: 16%;
}

.btn a {
    text-decoration: none;
    color: white;
}

button.btn.srch {
    width: 25%;
    color: white;
    background-color: #004d39;
    border: none;
}

#container {
    display: flex;
    flex: 50;
}

table#record-table {
    width: 50%;
    margin: none;
    line-height: 2em;
    padding-bottom: 1em;
}

table#record-table td {
    width: 25%;
    text-align: center;
    text-indent: 0;
}

a {
    text-decoration: none;
}



@media (max-width: 899px) and (min-width: 320px) {

    #branding {
        margin-bottom: 2em;
    }

    #branding a img {
        min-width: 15%;
        margin: 6px;
        padding: 6px;
    }

    fieldset {
        padding: 2em 1em;
    }

    td {
        display: table-row;
    }

    td > p {
        font-size: large;
        text-indent: 0;
    }

    #credentials-title {
        width: 90%;
        font-size: small;
    }

    table#record-table {
        width: auto;
        margin: 0;
        line-height: 2em;
    }

    #srch {
        width: 90%;
        flex-direction: column;
    }

    label {
        width: auto;
    }

    select#instructors, .btn {
        margin: 1em auto;
    }

    button.btn.srch {
        width: 100%;
        margin: auto;
    }

    table#record-table {
        width: 100%;
        margin: 0;
        padding: 0.5em;
        line-height: 2em;
    }

    table#record-table td {
        width: 100%;
        text-indent: 0;
        display: flex;
        justify-content: center;
    }

    tr {
        display: flex;
        width: 100%;
    }

    th {
        width: 100%;
        text-align: center;
    }
  
}