body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #555;
    font-weight: 300;
    padding: 40px;
    min-width: 600px
}

h1, h2, a {
    color: #009FE3;
}

h3 {
    color: #555;
}

h1, h2, h3 {
    font-weight: 300;
}

b {
    font-weight: bold;
}

body.main {
    text-align: center;
}

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

tr:nth-child(odd) {
    background: #eee;
}

iframe {
    border: none;
}

strong {
    font-size: 0.8em;
    color: gray;
}

hr {
    border-top: 1px dotted gray;
}

div.main {
    background-color: #fff;
    padding: 20px;
    margin: 40px;
    width: 400px;
    display: inline-block;
    border-radius: 5px;
    box-shadow: #222 3px 3px 5px;
}

div.main-wide {
    width: 90%;
    min-width: 400px;
}

div.debug, div.config, div.ui, div.linux {
    background-color: #fff;
    padding: 20px;
    margin: auto;
    border-radius: 5px;
    box-shadow: #222 3px 3px 5px;
    max-width: 1400px;
}

div.footerButtons {
    margin-top: 30px;
}

div.footerButtons form {
    display: inline-block;
}

div.debug a {
    text-decoration: none;
}

div.config a {
    display: block;
    margin-bottom: 10px !important;
    color: #009FE3;
    text-decoration: none;
}

div.config a.folder {
    display: block;
    margin-bottom: 10px !important;
    color: #009FE3;
}

div.entry {
    display: flex;
    padding: 5px;
    border-top-width: 1px;
    border-top-style: solid;
    border-color: #ccc;
}

div.entry label {
    padding-right: 5px;
    flex-basis: 300px;
    flex-grow: 1;
}

div.entry form {
    flex-basis: 300px;
    flex-grow: 4;
    display: flex;
}

div.entry form input:not([type]), div.entry form input[type="password"], div.entry form select {
    flex-grow: 5;
}

div.entry form input[type="submit"] {
    margin-left: 5px;
}

div.entry form input[readonly] {
    background-color: #e9e9e9;
}

div.virtualhmi {
    background-color: #000000;
    padding: 10px;
    margin: 40px;
    width: 810px;
    height: 740px;
    border-radius: 5px;
    box-shadow: #222 3px 3px 5px;
    text-align: center
}

textarea.log {
    width: 100%;
    height: 20em;
    font-size: 0.8em;
}

.spacer {
    height: 5px;
    display: inline-block;
}

.button, div.config a.button {
    font-size: 14px;
    font-weight: normal;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
    padding: 6px 16px;
    text-decoration: none;
    background: #f9f9f9 linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
    color: #666666;
    display: inline-block;
    box-shadow: 1px 1px 6px 0px #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3px;
}

.button:hover {
    border: 1px solid #BBB;
}

.button:active {
    background: #e9e9e9 linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%);
    position: relative;
}

.button:focus {
    outline: 0;
}

.button-ec-shadowless {
    width: 40px;
    height: 60px;
    border-radius: 50px;
    border: 15px solid #222;
    padding: 6px 16px;
    text-decoration: none;
    background: #333 linear-gradient(to bottom, #555 5%, #333 100%);
    display: inline-block;
    cursor: pointer;
    margin: 0 28px 0 28px;
}

.button-ec-shadowless:active {
    background: #111 linear-gradient(to bottom, #111 5%, #333 100%);
}

.button-ec-shadowless:focus {
    outline: 0;
}

.button-simple {
    font-size: 14px;
    font-weight: normal;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
    padding: 6px 16px;
    text-decoration: none;
    background: #f9f9f9 linear-gradient(to bottom, #f9f9f9 5%, #f9f9f9 100%);
    transition: background-color 0.3s;
    color: #666666;
    display: inline-block;
}

.button-simple:hover {
    background: #e9e9e9 linear-gradient(to bottom, #e9e9e9 5%, #e9e9e9 100%);
}

.button-simple:active {
    position: relative;
    top: 1px;
}

.button-simple:focus {
    outline: 0;
}

.button-rfid {
    font-size: 14px;
    font-weight: normal;
    border-radius: 5px;
    padding: 6px 16px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-rfid:hover {
    background: #505050 linear-gradient(to bottom, #505050 5%, #505050 100%);
}

.button-rfid:active {
    position: relative;
    top: 1px;
}

.button-rfid:focus {
    outline: 0;
}

.button-debug {
    font-size: 24px;
    color: gray;
    cursor: pointer;
    float: right;
    -webkit-border-radius: 5px;
    padding: 6px 16px;
    text-decoration: none;
}

.button-debug:hover {
    background: #505050 linear-gradient(to bottom, #505050 5%, #505050 100%);
    transition: background-color 0.3s;
}

.button-debug:active {
    position: relative;
    top: 1px;
}

.xfc-pad .display {
    resize: none;
    overflow: hidden;
    background-color: #9f9;
    padding: 5px;
    border: none;
    font-family: Courier;
    font-size: 15px;
    line-height: 1.5em;
}

.xfc-pad {
    display: inline-block;
    padding: 10px;
    background-color: #ddd;
}

pre.stdout {
    border: 1px dotted black;
    color: #333;
}

pre.stderr {
    border: 1px dotted black;
    color: #f00;
}

/* Styling for the config parameter documentation modal dialog */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: #222 3px 3px 5px;
}

.close {
    color: #D52F1E;
    float: right;
    font-size: 38px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: #60150d;
    text-decoration: none;
    cursor: pointer;
}

.help-button {
    display: inline-block;
    width: 25px;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #009fe3;
    text-align: center;
    line-height: 1;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 0;
    margin-left: 5px;
}
.help-button:hover {
    background-color: #0077b3;
    border: 0;
}
.help-button:active {
    background-color: #005a80;
    border: 0;
}

.meta-param-name {
    font-weight: bold;
    width: 80px;
    display: inline-block;
}
