:root {
    --dkgrey: #636363;
    --ltgrey: #dddddd;
    --dkblue: #0054a6;
    --ltblue: #00aef0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* Body general properties */

html,
body {
    font-family: Tahoma, Arial;
    padding: 0px;
    color: var(--ltgrey);
    background: var(--dkgrey);
    font-size: 12px;
}

html {
    width: 100%;
    height: 100%;
}

body {
    margin: .5em;
}

legend {
    text-align: left;
    padding: 0.2em;
    border: 1px solid var(--dkblue);
    border-radius: 3px;
    color: var(--dkblue);
}

fieldset {
    border: 1px solid var(--dkblue);
    display: inline-block;
    vertical-align: top;
    border-radius: 5px;
}

label {
    float: left;
    margin-top: .5em;
}

input.chkbox {
    float: left;
    margin-top: .5em;
}

input.optional {
    background: var(--ltblue);
}

input.italic {
    font-style: italic;
}

.groupbox {
    border-width: 1px;
    border-color: black;
    border-radius: 5px;
}


/* Define the style for the links in a link list */

ul.nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.topline {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

li.toplink {
    display: inline-block;
}

.treelist {
    list-style-type: none;
    border-color: black;
    margin: 0px;
    border-style: solid;
    border-width: 3px;
    padding: 2px;
    text-align: left;
    display: inline;
}

.treeline {
    list-style-type: none;
    border-color: blue;
    margin: 0px;
    border-style: solid;
    border-width: 1px;
    padding: 2px;
    display: inline-block;
    text-align: left;
}


/* Define the style for buttons */

button {
    padding: 10px;
    border-radius: 3px;
    text-align: center;
}

button.primary {
    background-color: var(--dkblue);
    color: var(--ltgrey);
}

button.secondary {
    background-color: var(--ltblue);
    color: var(--dkgrey);
}

button.success {
    background-color: green;
    color: var(--ltgrey);
}

button.info {
    background-color: darkblue;
    color: var(--ltgrey);
}

button.warning {
    background-color: orangered;
    color: var(--ltgrey);
}

button.error {
    background-color: red;
    color: var(--ltgrey);
}

.menu-background {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8px;
    color: #cccccc;
}

.menu-background a {
    color: #cccccc;
    text-decoration: none;
    font-weight: normal;
}

.menu-background a:hover {
    color: #cccccc;
    text-decoration: none;
    font-weight: normal;
}


/* Define the style for hyperlinks */


/* Default hyperlink */

a:link,
a:visited {
    display: block;
    font-weight: bold;
    color: black;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    background-color: none;
}

a:hover,
a:active {
    background-color: none;
}


/* Plain hyperlink */

a.plain:link,
a.plain:visited,
a.plain:hover,
a.plain:active {
    display: block;
    font-weight: bold;
    color: black;
    text-align: center;
    padding: 0px;
    text-decoration: none;
    text-transform: none;
    background-color: none;
}


/* Header hyperlink */

a.hyper:link,
a.hyper:visited,
a.hyper:hover,
a.hyper:active {
    display: block;
    font-weight: bold;
    color: white;
    text-align: center;
    padding: 0px;
    text-decoration: none;
    text-transform: none;
    background: none;
}


/* Encyclopedia hyperlinks */

a.elinkr:link,
a.elinkr:visited {
    display: block;
    font-weight: bold;
    color: black;
    text-align: right;
    text-decoration: none;
    text-transform: none;
    background-color: none;
}

a.elinkr:hover,
aa.elinkr:active {
    background-color: cyan;
}

a.inlinetext {
    color: blue;
    display: inline;
    text-decoration: underline;
    background-color: none;
    text-transform: none;
    text-align: inherit;
}


/* login button format */

a.username {
    color: black;
    display: block;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: 5px;
    position: relative;
    text-align: center;
    background-color: white;
    border-color: black;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    height: 30px;
    width: 70px;
    ;
}


/* Table style 1 */

table.table1 {
    text-align: center;
    border: 2px solid blue;
    border-collapse: collapse;
    border-radius: 10px;
}

td.table1 {
    background-color: #B0C4DE;
    text-align: center;
    border: 2px solid blue;
    border-collapse: collapse;
}

th.table1 {
    background-color: #8EB1C7;
    color: black;
    border: 2px solid blue;
    border-collapse: collapse;
}

table.reviewer {
    border: 3px solid black;
    border-radius: 5px;
    background: #DDFFDD;
}

td.relbtns {
    background: white;
    border: 3px;
    border-color: black;
    border-style: solid;
    border-radius: 10px;
}

td.rightbtns {
    text-align: right;
}


/* Define the fonts for the page */

.sectiontitle {
    color: black;
    text-align: center;
    font-family: Times;
    font-size: 1.3em;
    font-style: bold;
    background-color: #BBBBBB;
    border-radius: 4px;
}

.leftparagraph {
    color: black;
    text-align: left;
    font-family: Times;
    font-size: 1em;
}

.listitem {
    color: black;
    text-align: left;
    font-family: Times;
    font-size: 1em;
    margin-left: 3em;
    margin-top: .25em;
    margin-bottom: .25em;
}

.listsubitem {
    color: black;
    text-align: left;
    font-family: Times;
    font-size: 1em;
    margin-left: 5em;
    margin-top: .25em;
    margin-bottom: .25em;
}


/* Search box definition */

#searchform {
    background: blue;
    /* Fallback color for non-css3 browsers */
    width: 300px;
    margin: 5px auto;
    /* Gradients */
    background: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgb(243, 243, 243)), color-stop(1, rgb(225, 225, 225)));
    background: -moz-linear-gradient( center top, rgb(243, 243, 243) 0%, rgb(225, 225, 225) 100%);
    /* Rounded Corners */
    border-radius: 17px;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
    /* Shadows */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .3), 0 0 2px rgba(0, 0, 0, .3);
    -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .3), 0 0 2px rgba(0, 0, 0, .3);
    -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .3), 0 0 2px rgba(0, 0, 0, .3);
}


/*** TEXT BOX ***/

input.text {
    background: #fafafa;
    /* Fallback color for non-css3 browsers */
    /* Gradients */
    background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(250, 250, 250)), color-stop(1, rgb(230, 230, 230)));
    background: -moz-linear-gradient( center top, rgb(250, 250, 250) 0%, rgb(230, 230, 230) 100%);
    border: 0;
    border-bottom: 1px solid #fff;
    border-right: 1px solid rgba(255, 255, 255, .8);
    font-size: 0.8em;
    margin: 4px;
    padding: 5px;
    width: 195px;
    height: 1.5em;
    /* Rounded Corners */
    border-radius: 17px;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
    /* Shadows */
    box-shadow: -1px -1px 2px rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .2);
    -webkit-box-shadow: -1px -1px 2px rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .2);
    -moz-box-shadow: -1px -1px 2px rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .2);
}


/*** USER IS FOCUSED ON TEXT BOX ***/

input.text:focus {
    outline: none;
    background: white;
    /* Fallback color for non-css3 browsers */
    /* Gradients */
    background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(255, 255, 255)), color-stop(1, rgb(235, 235, 235)));
    background: -moz-linear-gradient( center top, rgb(255, 255, 255) 0%, rgb(235, 235, 235) 100%);
}


/*** SEARCH BUTTON ***/

input.submit {
    background: #44921f;
    /* Fallback color for non-css3 browsers */
    /* Gradients */
    background: -webkit-linear-gradient(top, #3498db, #1a6899);
    background: -moz-linear-gradient(top, #3498db, #1a6899);
    border: 0;
    color: #eee;
    cursor: pointer;
    font: 1em Arial, Helvetica, sans-serif;
    font-weight: bold;
    height: 1.5em;
    margin: 4px 4px 0;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
    width: 70px;
    outline: none;
    /* Rounded Corners */
    border-radius: 17px;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
    /* Shadows */
    box-shadow: -1px -1px 1px rgba(255, 255, 255, .5), 1px 1px 0 rgba(0, 0, 0, .4);
    -moz-box-shadow: -1px -1px 1px rgba(255, 255, 255, .5), 1px 1px 0 rgba(0, 0, 0, .2);
    -webkit-box-shadow: -1px -1px 1px rgba(255, 255, 255, .5), 1px 1px 0 rgba(0, 0, 0, .4);
}


/*** SEARCH BUTTON HOVER ***/

input.submit:hover,
input.submit:focus {
    background: #4ea923;
    /* Fallback color for non-css3 browsers */
    /* Gradients */
    background: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgb(89, 222, 27)), color-stop(0.15, rgb(83, 179, 38)), color-stop(0.8, rgb(66, 143, 27)), color-stop(1, rgb(54, 120, 22)));
    background: -moz-linear-gradient( center top, rgb(89, 222, 27) 0%, rgb(83, 179, 38) 15%, rgb(66, 143, 27) 80%, rgb(54, 120, 22) 100%);
}

input.submit:active {
    background: #4ea923;
    /* Fallback color for non-css3 browsers */
    /* Gradients */
    background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(89, 222, 27)), color-stop(0.15, rgb(83, 179, 38)), color-stop(0.8, rgb(66, 143, 27)), color-stop(1, rgb(54, 120, 22)));
    background: -moz-linear-gradient( center bottom, rgb(89, 222, 27) 0%, rgb(83, 179, 38) 15%, rgb(66, 143, 27) 80%, rgb(54, 120, 22) 100%);
}


/* Define the header area properties */

.header {
    background-image: url("../images/Header_Background.jpg");
    background-color: #5f5f5f;
    border: 0;
    margin: 0;
    width: 100%;
}

#toprow {
    float: left;
    top: -37px;
    width: 100%;
}


/* Define the main body region properties */

.main {
    position: relative;
    float: left;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #5f5f5f;
    font-size: 12px;
    margin: 0;
    padding: 0;
}


/* Define the footer properties */

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 37px;
    text-align: center;
    width: 100%;
}

.erow:before,
.erow:after {
    display: table;
    content: " ";
}

.col-md-6 {
    width: 50%;
}

.col-md-push-3 {
    margin-left: 25%;
}

h1.eh1 {
    font-size: 48px;
    font-weight: 300;
    margin: 0 0 20px 0;
}

.elead {
    font-size: 21px;
    font-weight: 200;
    margin-bottom: 20px;
}

.dragbox {
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    width: 200px;
    height: 200px;
}

.grid-header {
    display: grid;
    width: 100%;
    height: 64px;
    gap: 0;
    grid-template-columns: 44px 1fr;
    grid-template-rows: 32px 32px;
}

.grid-header>div {
    text-align: center;
}

.logo {
    width: 40px;
    height: 30px;
    margin: auto;
}

.logo-text {
    color: white;
    font-family: Arial;
    font-size: 25px;
    text-shadow: 4px 4px 4px #000000;
    filter: dropshadow(color=#000000, offx=4, offy=4);
}

.grid-alphabet {
    display: grid;
    margin: auto;
    width: 80%;
    outline-style: solid;
    outline-width: 2px;
    outline-color: var(--dkgrey);
    outline-offset: 3px;
    justify-content: center;
    align-content: center;
    grid-template-columns: repeat(6, auto);
    grid-template-rows: repeat(5, auto);
    gap: .5rem;
}

.grid-alphabet>div {
    text-align: center;
}

@media only screen and (min-width: 768px) {
    .grid-header {
        grid-template-columns: 84px 1fr 1fr;
        grid-template-rows: 64px;
    }
    .logo {
        width: 80px;
        height: 60px;
    }
    .logo-text {
        font-size: 40px;
        text-shadow: 7px 7px 7px #000000;
        filter: dropshadow(color=#000000, offx=7, offy=7);
    }
    .grid-alphabet {
        width: 600px;
        grid-template-columns: repeat(13, auto);
        grid-template-rows: auto auto;
    }
    #searchform {
        width: 365px;
        margin: 20px auto;
    }
    input.text {
        width: 260px;
    }
}