/* Style sheet for the calibration database webpage. */

/* Element-specific styles */

body {
    padding: 0px;
    margin: 0px;
    background-color: lightgray;
}

h1 {
    color: black;
    font-size: 18pt;
    font-family: Arial, sans-serif;
    text-align: center;
}

fieldset {
    border: 2px solid cornflowerblue;
    border-radius: 5px;
    padding: 3px;
    width: 96%;
    margin-bottom: 0.3em;
    -webkit-transition: box-shadow 0.3s;
    transition: box-shadow 0.3s;
}

fieldset:hover {
    box-shadow: 0px 0px 8px dodgerblue;
    border: 2px solid dodgerblue;
}

legend {
    background-color: white
}

form {
    border: 3px solid midnightblue;
    border-radius: 10px;
    box-shadow: 0px 0px 6px black;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5em;
    padding: 0.6em;
    width: 50em;
    background-color: white;
    align: left;
    /* Chrome, Safari, Opera */
    -webkit-animation-name: shadow_pulse;
    -webkit-animation-duration: 5s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    /* Default */
    animation-name: shadow_pulse;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    overflow: visible;
}

/****** ID-specific styles ******/

@keyframes shadow_pulse {
    from {box-shadow: 0px 0px 7px black, 0px 0px 0px white;}
    to {box-shadow: 0px 0px 7px blue, 0px 0px 15px white;}
}

@-webkit-keyframes shadow_pulse {
    from {box-shadow: 0px 0px 7px black, 0px 0px 0px white;}
    to {box-shadow: 0px 0px 7px blue, 0px 0px 15px white;}
}

#intro_paragraph {
    width: 50em;
    margin: 0.8em auto 0.8em auto;
    background-color: white;
    box-shadow: 0px 0px 6px black;
    border: 1px solid black;
    border-radius: 5px;
    padding: 0.6em;
    font-size: medium;
}

#dataTable tbody tr {
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

#dataTable tbody tr:hover {
    background-color: lightgray;
}

#submit_button {
    clear: both;
}

#graphOptionsTable {
    float: right;
}

#plot_container {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#plot_container img {
    border-radius: 5px;
    box-shadow: 0px 0px 6px black;
    margin-bottom: 0.5em;
    width: 65em;
}

/****** Class-specific styles ******/

table.resultsTable {
    border: 2px solid midnightblue;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    table-padding: 1px;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0px 0px 4px black;
}

table.resultsTable th {
    border: 2px solid midnightblue;
    padding:5px;
    text-align: center;
}

table.resultsTable td {
    border: 1px solid cornflowerblue;
    padding: 5px;
    text-align: center;
}

table.resultsTable tr:nth-child(odd) {
    background-color: lavenderblush;
}

table.resultsTable tr:nth-child(even) {
    background-color: white;
}

table.formTable td {
    text-align: center;
}

col.thick_border {
    border-left: 2px solid midnightblue;
}

div.top_bar {
    background-color: slateblue;
    box-shadow: 0px 0px 4px black;
    height: 2em;
    border-bottom: 1px solid black;
}

div.main_content {
    margin-left: 1em;
    margin-right: 1em;
}

div.help {
    display: inline-block;
    position: relative;
    background-color: cornflowerblue;
    width: 1em;
    height: 1em;
    border-radius: 6px;
    color: white;
    text-align: center;
    font-family: sans-serif;
}

div div.help_popup {
    position: absolute;
    display: none;
    width: 22em;
    padding: 4px;
    margin: 2px;
    border: 3px solid orange;
    border-radius: 4px;
    color: black;
    background-color: ghostwhite;
    left: 1.2em;
    top: -0.5em;
    z-index: inherit;
    text-align: left;
    transition: visibility 0s;
    -webkit-transition: visibility 0s;
}

div.help:hover div.help_popup {
    display: block;
    z-index: 1;
}

div.dataTable {
    margin-bottom: 1em;
}

p.error {
    background-color: white;
    border: 1px solid midnightblue;
    border-radius: 4px;
    box-shadow: 0px 0px 6px black;
    margin-left: auto;
    margin-right: auto;
    width: 50em;
    padding: 5px;
}

.float_left {
    float: left;
    align: center;
    width: 48%;
    margin-left: 0.5%;
}

.float_right {
    float: right;
    align: center;
    width: 48%;
    margin-right: 0.5%;
}
