

body {
    margin: 0;
    background: #020814; /* cockpit dark surround */
    font-family: Arial, sans-serif;
    color: #E8F6FF;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td, th {
    padding: 8px;
    border: 1px solid #666;
}

.nav-buttons{
	display:flex;
	justify-content:center;
	gap: 2rem;
	
	margin-top: 0.5rem;
	padding-bottom: 0.5rem;
	
	flex-shrink: 0;

}

/*
.overlay-panel .panel-body {
    overflow-x: auto;
}
*/ 



.external-detail,.enterprise-detail {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

/*
.external-detail,.enterprise-detail {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.8s ease; transform 0.8s ease;
	transform: translate(-50%, -50%) translateY(-8px); 
	
}

.external-detail.visible,.enterprise-detail.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%), translateY(0);
}
*/

.overlay {
	display: none;
	position: absolute;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.65); /* cockpit darkness */
}


.overlay.active {
    display: block;
}

.overlay-shield {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 100%;
    height: 45%;
    background: rgba(0, 180, 255, 0.18);
    backdrop-filter: blur(4px);
    pointer-events: none;
    border-radius: 18px 18px 0 0; /* rounded top corners only */
	border-radius: 70px 70px 0 0; /* rounded top corners only */
}


.overlay-panel, .overlay-drySummer-panel, .overlay-coldSpring-panel, .overlay-flooding-panel, .overlay-denseCloud-panel {
	display: none;  
	position: absolute; 
	padding: 0.1rem 1.5rem 1rem 1.5rem;
	padding-top: 0.1rem;
	
	/*bottom: 26%;  */
	left: 12%;
	width: 70.5%;
	top: 47%;  
	height: 22%;
	
	background: #1F1F1E; 
    border-radius: 70px 70px 0 0; 
    padding: 1.5rem; 
	
	flex-direction: column;
	
}

.overlay-panel.active, .overlay-drySummer-panel.active, .overlay-coldSpring-panel.active, .overlay-flooding-panel.active, .overlay-denseCloud-panel.active{
	display: flex;
}

.overlay-hero-panel {
	display: none;  
	position: absolute; 
/*	padding: 0.4rem 1.5rem 1rem 1.5rem;  */
	padding: 2rem 1.5rem 1rem 0.5rem;
	
	bottom: 26%;  
	left: 12%;
	width: 70.5%;
/*	top: 47%;  */
/*	height: 22%;  */
	
	background: #1F1F1E; 
    border-radius: 70px 70px 0 0; 
 
	flex-direction: column;
	
}

.overlay-hero-panel.active {
	display: flex;
}

.overlay-context-panel {
	display: none;  
	position: absolute; 
	padding: 0.1rem 1.5rem 1rem 1.5rem;
	
	bottom: 26%;  
	left: 12%;
	width: 70.5%;
/*	top: 47%;  */
/*	height: 22%;  */
	
	background: #1F1F1E; 
    border-radius: 70px 70px 0 0; 
 
	flex-direction: column;
	
}


.overlay-context-panel.active {
	display: flex;
}

.narrative {
    display: none;
	padding-top: 0.2rem;
}

.narrative.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.narrative-guidance {
    display: none;
}

.narrative-guidance.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.narrative-hero {
    display: none;
}

.narrative-hero.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.narrative-context {
    display: none;
}

.narrative-context.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.narrative-example, .narrative-coldSpring, .narrative-drySummer, .narrative-flooding, .narrative-denseCloud {
    display: none;
	top: 0.1rem

}

.narrative-example.active, .narrative-coldSpring.active, .narrative-drySummer.active, .narrative-flooding.active, .narrative-denseCloud.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.screen-title {
    position: absolute;
    transform: translateX(-50%);

/*    color: white;
    font-size: 1rem;
    font-weight: 700;  */
    text-align: center;

    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    z-index: 20;
}

.panel-title { /*  Aviation Style */

	margin:0;
	padding-top:0.2rem;
	position: static;  
	margin-bottom: 0.1rem;
    text-align: center;
	width: 100%;
    letter-spacing: 1px;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;



   
}

.panel-body {
	

    margin-top:0px;
	width: 90%;
	margin: 0 auto;
	line-height: 1.4rem;
    text-align: left;
	overflow-y: auto;
	flex-grow: 1;
	
}

.screen-heading {
	position: relative;
/*	top: 10%;
	left: 50%;  */
	transform translateX(-50%);
}

.center {	/* for HTML tables */

	margin-left: auto;
	margin-right: auto;
}



/* ========================= */
/* HERO SCREEN & Hotspots                */
/* ========================= */

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.pfms-softkey {
    position: absolute;
    background: rgba(0, 180, 255, 0.35);
	color: #000000;
	padding: 0.2rem 0.2rem;
	width:12rem;
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.7);  
}

.pfms-softkey:hover {
    background: rgba(0, 200, 255, 1);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.pfms-softkey-header {
    position: absolute;
    background: rgba(0, 180, 255, 0.35);
	color: #000000;
	padding: 0.2rem 0.2rem;
	width:12rem;  
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.7);  
}

.pfms-softkey-header:hover {
    background: rgba(0, 200, 255, 1);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}



.overlay-softkey {
    position: absolute;
    background: rgba(0, 180, 255, 0.35);   
	background: rgba(148, 148, 184, 0.35);
	color: #000000;
/*    padding: 0.2rem 0.2rem;  */
	
	display: inline-block;
    padding: 0em 0.2em;  
/*    min-width: 80px;  */
    text-align: center;

/*	width: 7.5rem;  */
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
   box-shadow: 0 0 10px rgba(148, 148, 184, 0.7);  
}

.overlay-softkey-header {
    position: absolute;
    background: rgba(0, 180, 255, 0.35);
	color: #000000;
    padding: 0.0rem 0.0rem;

	width: 7.5rem;
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
 /*   cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.7);  */
}

.overlay-softkey:hover {
    background: rgba(0, 200, 255, 1);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.overlay-extkey {
    position: absolute;
    background: rgba(148,148,184, 0.25);
	color: #000000;
    padding: 0rem 0rem;

/*	width: 9rem; */
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(148,148,184, 0.7);  
}

.overlay-extkey:hover {
    background: rgba(237,95,237, 1);
    box-shadow: 0 0 15px rgba(237,95,237, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.overlay-guidance-key {
    position: absolute;
    background: rgba(255,153,255, 0.75);
	color: white;
	color: #000000;
    padding: 0.2rem 0.2rem;

/*	width: 10rem;   */
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255,153,255, 0.7);  
}

.overlay-guidance-key:hover {
    background: rgba(237,95,237, 1);
    box-shadow: 0 0 15px rgba(237,95,237, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.overlay-guidance-key-pastoral {
    position: absolute;
	background: rgba(153,255,204,0.75);
	color: white;
	color: #000000;
    padding: 0.2rem 0.2rem;

/*	width: 10rem;   */
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
	box-shadow: 0 0 10px rgba(153,255,204,0.7); 
}

.overlay-guidance-key-pastoral:hover {

    background: rgba(0,255,153, 1);
    box-shadow: 0 0 15px rgba(0,102,0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}


.overlay-hero-key {
    position: absolute;
	background: rgba(153,255,204,0.75);  
/*	background: rgba(112,143,40,0.75);  */
	color: white;
	color: #000000;
    padding: 0.2rem 0.2rem;

/*	width: 10rem;     */
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
	box-shadow: 0 0 10px rgba(153,255,204,0.7);
/*	box-shadow: 0 0 10px rgba(112,143,40,0.7); */
	
}
.overlay-hero-key:hover {

    background: rgba(0,255,153, 1);
    box-shadow: 0 0 15px rgba(0,102,0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.overlay-context-key {
    position: absolute;
	background: rgba(153,255,204,0.75);  
/*	background: rgba(112,143,40,0.75);  */
	color: white;
	color: #000000;
    padding: 0.2rem 0.2rem;

/*	width: 10rem;     */
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
	box-shadow: 0 0 10px rgba(153,255,204,0.7);
/*	box-shadow: 0 0 10px rgba(112,143,40,0.7); */
	
}
.overlay-context-key:hover {

    background: rgba(0,255,153, 1);
    box-shadow: 0 0 15px rgba(0,102,0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}


.overlay-example-key {
    position: absolute;
	background: rgba(153,255,204,0.75);  
/*	background: rgba(112,143,40,0.75);  */
	color: white;
	color: #000000;
    padding: 0.2rem 0.2rem;

/*	width: 10rem;     */
	text-align: center;
	white-space: nowrap;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
	box-shadow: 0 0 10px rgba(153,255,204,0.7);
/*	box-shadow: 0 0 10px rgba(112,143,40,0.7); */
	
}
.overlay-example-key:hover {

    background: rgba(0,255,153, 1);
    box-shadow: 0 0 15px rgba(0,102,0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.overlay-guidance-key:hover {
    background: rgba(237,95,237, 1);
    box-shadow: 0 0 15px rgba(237,95,237, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}






/* Primary Guidance Instruments */
/*
.primary-guidance {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
	gap: clamp(1rem, 8vw, 15rem);
    display: flex;
    gap: 24px;   

    z-index: 50;
}

.guidance-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
	color: white;

    transition: all 0.35s ease;
}

.guidance-btn img {
    width: 100px;
    height: 100px;

    border-radius: 50%;

    transition: all 0.35s ease;
}

.guidance-btn span {
    margin-top: 12px;

    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;

    text-shadow:
        2px 2px 5px rgba(0,0,0,.8);
}

/* Hover Effect */
/*
.guidance-btn:hover img {

    transform: scale(1.08);

    box-shadow:
        0 0 15px rgba(0,220,255,.6),
        0 0 35px rgba(0,220,255,.5),
        0 0 55px rgba(0,220,255,.4);

}

.guidance-btn:hover span {
    color: #9be8ff;
}

/* Optional gentle pulse */
/*
.guidance-btn:hover {
    filter: brightness(1.1);
}

*/

/* COCKPIT NAV BAR 

#cockpit-nav {
    background: #04101F;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    border-bottom: 2px solid #00B4FF;
}

#cockpit-nav button {
    background: #0A1A2A;
    color: #E8F6FF;
    border: 1px solid #00B4FF;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#cockpit-nav button:hover {
    background: #00B4FF;
    color: #04101F;
}
*/
/* HUD Head up Display 

#hud {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #00B4FF;
}
*/
/* INSTRUMENT PANEL 

#instrument-panel {
    background: #06121F;
    padding: 1rem;
    border-top: 2px solid #00B4FF;
}




.instrument-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.instrument-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}
*/
/*
.instrument-light.active {
    background: #00FF88; 	
}
*/

.overlay-cockpit {
    position: relative;
}

.overlay-cockpit-image {
    width: 100%;
    height: auto;
    display: block;
}

/* NARRATIVE BAND  */

/*
#narrative-band {
    position: absolute;
    bottom: 52%; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    padding: 0.8rem 1.4rem;
    border-radius: 20px; 
    color: #E8F6FF;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.4);
    z-index: 20; 
    width: auto;
    max-width: 70%;
	white-space: normal;
	line-height: 1.3;
}
*/


/* FLIGHT RECORDS PANEL  */
/*
#recorder-panel {
	display: none;
    background: #04101F;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 2px solid #00B4FF;
}

#recorder-output {
    background: #000;
    padding: 1rem;
    height: 150px;
    overflow-y: auto;
    border: 1px solid #00B4FF;
}
*/

.screen-footer {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);

    padding: 0px 14px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);

    background: rgba(0,0,0,0.35);
    border-radius: 6px;

    text-align: center;
    z-index: 1000;
}

.footer-tagline {
    font-size: 11px;
    opacity: 0.8;
    letter-spacing: 1px;
}


@media (max-width: 900px) {
    .overlay-panel {
		min-height: 35vh;   
        padding: 1rem;
    }
}

@media (max-width: 600px) {

    .screen-title {
        font-size: 0.75rem !important;
    }

    .overlay-softkey,
    .overlay-extkey,
    .overlay-guidance-key {
        width: auto;
        min-width: 4rem;
        font-size: 0.65rem !important;
    }

    .panel-title {
        font-size: 0.9rem;
    }

}
