* {
    --rhythm: 1.8rem;
    --line-height-ratio: 1.4;
    border-radius: 6px;

    /* http://clagnut.com/blog/2395 */
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    hyphenate-limit-lines: 2;
    hyphenate-limit-last: always;
    hyphenate-limit-zone: 8%;
}

h1 {
    --line-height-ratio: 1.18;
    --sub-rhythm: calc(1.18 * var(--rhythm));
    margin: var(--rhythm-half);
}

h2 {
    --line-height-ratio: 1;
    --sub-rhythm: var(--rhythm);
    margin-bottom: 16px;
}

p {
    padding: 10px 20px;
    margin-bottom: 6px;
}

ul, ol {
    padding: 10px 30px;
    margin-bottom: 6px;
}

#container {
    margin: 5px 20px;
    padding-top: 10px;
    background-color: rgb(253, 253, 253);
}

#header {
    background-color: white;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

#header p {
    line-height: 1.26em;
    margin: 6px 0;
}

a.external {
    background: url(/images/extlink.gif) center right no-repeat;
    padding-right: 16px;
}

a:hover {
    background-color: #cfc;
}

dt {
    float: left;
    clear: left;
    width: 100px;
    text-align: right;
    font-weight: bold;
    font-style: normal;
    color: green;
}

dt::after {
    content: ":";
}

dd {
    margin: 0 0 0 112px;
    padding: 0 0 0.5em 0;
}

tr td {
    text-align: left;
    padding-bottom: 1em;
}

fieldset {
    padding: 1em;
}

.error {
    margin: 1em 0.25em;
    padding: 0.5em;
    color: #ff0000;
    border: 1px dotted red;
}

input::placeholder {
    color: #666;
    font-style: italic;
}

::placeholder {
    color: red;
    opacity: 0.5;
}

.dataTables_length {
    margin: 12px 0;
}

input[type=search] {
    width: 660px;
    margin: 0;
    padding: 6px;
    color: red;
    font-size: large;
    margin: 12px 0;
    /* Safari https://css-tricks.com/webkit-html5-search-inputs/ */
    -webkit-appearance: textfield;
}

input[type=search]:focus {
    outline: none;
}

th {
    background-color: #4caf50;
    color: white;
    text-transform: uppercase;
}

table.dataTable tbody td {
    vertical-align: top;
}

.flex-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-title h1 {
    flex-grow: 1;
}

.flex-title img {
    max-height:120px;
}

.flex-title a:hover {
    background-color: white;
}

.columns2 {
    --columns: 2;
}

.columns3 {
    --columns: 3;
}

body {
    background-color: white;
}

@media (max-width: 680px)  {
    .grid {
        display: block;
    }
    #header p {
        display: none;
    }
}

fieldset {
    border: 1px solid #999;
    background-color: #f6f6f6;
}

li {
    margin: 12px 0;
}

/* https://html-online.com/articles/blinking-text-css-animation/ */
.blinking{
    animation:blinkingText 1.9s infinite;
}

@keyframes blinkingText{
    0%{ color: red; }
    49%{ color: red; }
    60%{ color: transparent; }
    99%{ color:transparent; }
    100%{ color: red; }
}

/* https://timnwells.medium.com/create-a-simple-responsive-image-gallery-with-html-and-css-fcb973f595ea */
#gallery {
    line-height:0;
    -webkit-column-count:5; /* split it into 5 columns */
    -webkit-column-gap:5px; /* give it a 5px gap between columns */
    -moz-column-count:5;
    -moz-column-gap:5px;
    column-count:5;
    column-gap:5px;
}

#gallery img {
    width: 100% !important;
    height: auto !important;
    margin-bottom:5px; /* to match column gap */
}

@media (max-width: 1200px) {
    #gallery {
        -moz-column-count:    4;
        -webkit-column-count: 4;
        column-count:         4;
    }
}

@media (max-width: 1000px) {
    #gallery {
        -moz-column-count:    3;
        -webkit-column-count: 3;
        column-count:         3;
    }
}

@media (max-width: 800px) {
    #gallery {
        -moz-column-count:    2;
        -webkit-column-count: 2;
        column-count:         2;
    }
}

@media (max-width: 400px) {
    #gallery {
        -moz-column-count:    1;
        -webkit-column-count: 1;
        column-count:         1;
    }
}

div.dataTables_length select {
    display: inline;
}

input[type=file]#seq_file {
    border: none;
}
