/*
* CUSF Landing Prediction Version 2
* http://www.cuspaceflight.co.uk
*
* Jon Sowman 2010
* jon@hexoc.com
* http://www.hexoc.com
*
* http://github.com/jonsowman/cusf-standalone-predictor
*
*/

/* Basic font-size and family. */
html {
	font-family: sans-serif;
	font-size: 12px;
}

body {
	margin: 0; padding: 0;
        background-color: #000000;
}

/* --- Desktop: hide elements meant only for mobile (mobile CSS will re-display at <=768px) --- */
/* NOTE: no !important so predictor-mobile.css can override */
.mobile-only { display: none; }

a { text-decoration: underline; color: #333; cursor: pointer; }

/* The whoppping map in the centre */
html, body, #map_canvas {
    height: 100%;
    width: 100vw;
    z-index: 1;
}

.box{ z-index: 1000 !important ;}

#status_message{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 400px;
    height: 60px;
    margin-left: -200px;
    margin-top: -50px;
    padding: 1em;
    text-align: center;
    display: none;
}

#error_window {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 400px;
    margin-left: -200px;
    margin-top: -50px;
    padding: 1em;
    text-align: center;
    display: none;
}

#debuginfo {
    white-space: pre;
}

#burst-calc-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 400px;
    margin-left: -200px;
    margin-top: -200px;
    padding: 1em;
    text-align: center;
    display: none;
}

#notam-settings-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 400px;
    margin-left: -200px;
    margin-top: -200px;
    padding: 1em;
    text-align: center;
    display: none;
}

/*
#burst-calc {
    display: none;
    padding: 5px;
    text-align: center;
}
*/

#burst-calc-constants {
    display: none;
}

#location_save {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    margin-left: -150px;
    margin-top: -120px;
    padding: 1em;
    text-align: center;
    display: none;
}

#location_save_local {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    margin-left: -150px;
    margin-top: -120px;
    padding: 1em;
    text-align: center;
    display: none;
}

.box {
    position: absolute; 
    background-color: white; 
    border: 1px solid #0070a3; 
    padding: 0.5em;
}

.box {
    background-attachment:initial;
    background-clip:initial;
    background-color:rgb(255, 255, 255);
    background-color:rgba(255, 255, 255, 0.746094);
    background-image:initial;
    background-origin:initial;
    background-position:initial initial;
    background-repeat:initial initial;
}

.box * {
	font-size: 12px;
}

.box table { 
	margin: 0.25em auto;
	white-space: nowrap;
}

.box h1 { 
	text-align: center;
	margin: 0em 0em 0.5em 0em;
}

.box p { 
	margin: 0 auto;
	margin-bottom: 0.25em; 
	width: 25em;
}

/* Ehime side panel */
#ehime_panel {
    bottom: 0px;
    left: 0px;
    top: auto;
    width: 520px;
    max-height: 70vh;
    overflow: hidden;
    display:none;
    transition: width 0.25s ease, opacity 0.25s ease;
    position:absolute;
}
.ehime-collapsed { width:28px !important; }
.ehime-collapsed .ehime-collapsible { display:none !important; }
#ehime_panel_toggle {
    position:absolute;
    top:2px;
    right:4px;
    font-weight:bold;
    font-size:14px;
    cursor:pointer;
    color:#004080;
    user-select:none;
}
.ehime-collapsed #ehime_panel_toggle { right:4px; }
#ehime_variants_wrapper {
    overflow-y: auto;
    max-height: 50vh;
    border:1px solid #ccc;
    background: rgba(255,255,255,0.6);
}
#ehime_variants_table {
    width:100%;
    border-collapse:collapse;
    font-size:11px;
}
#ehime_variants_table thead th {
    position:sticky;
    top:0;
    background:#eef4ff;
    border-bottom:1px solid #aac;
    padding:2px 3px;
}
#ehime_variants_table tbody td {
    padding:2px 3px;
    border-bottom:1px solid #ddd;
    text-align:center;
}
#ehime_variants_table tbody tr:hover {
    background:#f5faff;
    cursor:pointer;
}
.ehime-color-swatch {
    width:14px;
    height:14px;
    border:1px solid #000;
    display:inline-block;
}
.ehime-status-pending { color:#996600; }
.ehime-status-ok { color:#006600; font-weight:bold; }
.ehime-status-error { color:#cc0000; font-weight:bold; }
.ehime-row-base { font-weight:bold; }
/* 陸海判定: 海セル強調 */
.ehime-landsea-sea { color:#33aaff !important; font-weight:bold; }

#trail_table { 
	right: 0; bottom: 0;
	border-right: none;
	border-bottom: none;
	display: none;
}

#scenario_template { 
        width: 400px;
	left: 0; bottom: 0; 
	border-left: none;
	border-bottom: none;
    display: none;
}

#scenario_template_scroller {
    max-height: 400px;
    overflow: scroll;
}

#input_form {
    overflow: hidden;
    width: 400px;
    padding: 5px 5px 0px 5px;
    bottom: 0; right: 0;
    max-height: 500px;
}

#launch-card {
    width: 100%;
    padding: 5px;
}

#launch-card tr {
    width: 50%;
}

#scenario_info {
    position: absolute;
    top: 25px;
    right: 0px;
    width: 400px;
    text-align:center;
    padding: 5px;
    line-height: 130%;
}

/* about window is a jqueryui dialog */
#about_window {
    display: none;
}

/* the vehicle_button buttons from spacenear */
.control_buttons {
    border: solid #aed0ea 1px;
    background-color: #deedf7;
    padding: 3px;
    margin-top: 1em;
    color: #888;
    -webkit-user-select:none;
    -moz-user-select:none;
    user-select:none;
    cursor: default;
    line-height: 220%;
    font-size: 10px;
}

.control_button {
    font-weight: bold;
    color: #5c9dc2;
    cursor: pointer;
    text-decoration: none;
}

a.control_button:hover {
    color: #0070a3;
}

img.handle {
    position: relative;
    float:left;
    top:0px;
    left:0px;
    z-index:100;
}

td.right-td {
	text-align: right;
}

td.spacer {
	width: 1em;
}

table#trails {
	border-collapse: collapse;
}

table#trails td, table#trails th { 
	border: 1px solid #6666ff;
	padding: 0.1em 0.5em;
	text-align: center;
}

table#trails th { 
	background-color: #6666ff;
	color: white;
}


.tipsy { padding: 5px; font-size: 10px; opacity: 0.8; filter: alpha(opacity=80); background-repeat: no-repeat;  background-image: url(../images/tipsy.gif); }
  .tipsy-inner { padding: 5px 8px 4px 8px; background-color: black; color: white; max-width: 200px; text-align: center; }
    .tipsy-inner { -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
  .tipsy-north { background-position: top center; }
  .tipsy-south { background-position: bottom center; }
  .tipsy-east { background-position: right center; }
  .tipsy-west { background-position: left center; }

/* 落下モードで無効化された入力フィールドの視覚スタイル */
.fall-disabled {
    background: #f2f2f2 !important;
    color: #888 !important;
    border-color: #ccc !important;
}
