/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Apr 7, 2014, 7:43:18 PM
    Author     : rkuhnjr
*/

.bodyWrapper
{
    background-image: url('../img/tools-bg.jpg');
} 

.toolContent {
    width: 95%;
    padding-bottom: 48px;
    font-size: 16pt;
}

.toolContent p {
    font-size: 16pt;
}

/* --- Tool sections (stackable; a new tool can sit below the next) --- */
.toolSection {
    margin-bottom: 48px;
}

.toolSectionTitle {
    color: white;
    text-shadow: 2px 2px 4px #000000;
    font-size: 22pt;
    font-weight: bolder;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066ff;
}

/* --- Distance Calculator form --- */
.distanceInputRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

#systemNameInput {
    color: white;
    background-color: rgba(0,0,0,0.6);
    border: 2px solid #0066ff;
    text-shadow: 2px 2px 4px #000000;
    padding: 10px 14px;
    font-size: 14pt;
    flex: 1 1 240px;
    min-width: 180px;
}

#systemNameInput::placeholder {
    color: #cccccc;
}

#systemNameInput:focus {
    outline: none;
    border: 2px solid #cce0ff;
}

.distanceMessage {
    color: white;
    text-shadow: 2px 2px 4px #000000;
    min-height: 1.4em;
    margin: 16px 0;
    font-size: 14pt;
}

.distanceMessage.error {
    color: #ff6b6b;
}

.distanceMessage.warn {
    color: #ffcc66;
}

.distanceHint {
    color: white;
    text-shadow: 2px 2px 4px #000000;
    font-size: 14pt;
}

/* --- Distance grid --- */
.distanceGridWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.distanceGrid {
    border-collapse: collapse;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    font-size: 13pt;
}

.distanceGrid th,
.distanceGrid td {
    border: 1px solid #0066ff;
    padding: 8px 12px;
    text-align: center;
    background-color: rgba(0,0,0,0.6);
    white-space: nowrap;
}

.distanceGrid thead th,
.distanceGrid th.rowhead {
    font-weight: bolder;
    background-color: rgba(0,102,255,0.25);
    border: 2px solid #0066ff;
}

/* Distance columns: keep them as narrow as the distance value and
   truncate the system name in the top header to match that width. */
.distanceGrid th.colhead {
    padding: 8px 10px;
}

.distanceGrid th.colhead .colheadName {
    display: block;
    max-width: 64px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.distanceGrid th.corner {
    background-color: rgba(0,0,0,0.8);
    border: 2px solid #0066ff;
}

.distanceGrid td.diag {
    background-color: rgba(0,0,0,0.85);
}

/* Predicted (approximate) systems and distances */
.distanceGrid th.colhead.predicted,
.distanceGrid th.rowhead.predicted {
    color: #ffcc66;
}

.distanceGrid td.approx {
    color: #ffcc66;
    font-style: italic;
}

.predMark {
    color: #ffcc66;
    font-weight: bolder;
    margin-left: 2px;
}

p.predLegend {
    color: #ffcc66;
    text-shadow: 2px 2px 4px #000000;
    font-size: 11pt;
    margin: 12px 0 0 0;
}