body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 10px;
    background-color:transparent;
    background-color:black;
    font-family: Arial, Helvetica, sans-serif;
}

/* Fullscreen mode body */
body.fullscreen-mode {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* For Webkit browsers (Chrome, Safari, etc.) */
body::-webkit-scrollbar {
    display: none;
}

/* For all browsers */
html, body {
    scrollbar-width: none;  /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}


.tablet {
    width: 550px;
    height: 750px;
    background-color: #333;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px 3px #f2ececb4;
    padding-top: 10px;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 40px;
    position: relative;
    border: white;
}

/* Fullscreen tablet mode */
.tablet.fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background-color: #222;
}

.menu-bar {
    height: 50px;
    display: block;
    align-items: center;
    background-color: #333; /* Slightly lighter gray for contrast */
    padding: 0 10px; /* Increased padding for better spacing */ 
    border-radius: 30px; /* Rounded corners for the menu bar */
    color: white;
    padding-right: 7px;
    font-size: small;
    justify-content: space-between; /* Pushes left and right elements apart */
    align-items: center;
}

/* Fullscreen menu bar */
.tablet.fullscreen .menu-bar {
    border-radius: 0;
    padding: 0 20px;
    background-color: #222;
    border-bottom: 1px solid #555;
}

.screen {
    height: 250px;
    max-height: 250px;
    width:100%;
    max-width: 100%;
    min-width: 100%;
    overflow: hidden; /* Ensure content does not cause overflow */
    background-color: black;
    border: 2px solid #888; /* Light gray border for the screen area */
    justify-content: left;
    align-items: left;
    padding: 5px;
    box-sizing: border-box; /* Ensure padding/border is included in height calculation */
    border-radius: 20px;
    margin-bottom: 5px;
}

/* Fullscreen screen - flexible height */
.tablet.fullscreen .screen {
    height: auto;
    max-height: none;
    flex: 1;
    border-radius: 0;
    margin: 0;
    border: 1px solid #555;
    border-top: none;
    border-bottom: none;
}






.table-container {
    margin-top: 5px;
    width:100%;
    height: 300px; /* Reduced height to fit within the tablet */
    background-color: #222222;
    border-radius: 20px;
    border: 2px solid #888; /* Light gray border for the table container */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto; /* Push to the bottom of the tablet */
    box-sizing: border-box; /* Ensure padding/border is included in height calculation */
    overflow: hidden; /* Turn off scrollbars */
    background: black;
}

/* Fullscreen table container - flexible height */
.tablet.fullscreen .table-container {
    height: auto;
    flex: 1;
    border-radius: 0;
    margin: 0;
    border: 1px solid #555;
    border-top: none;
    border-bottom: none;
}

.footer-bar {
    width: 100%;
    height: 40px; /* Increased size for the footer */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px; /* Margin to space out from other elements */
}

/* Fullscreen footer bar - fixed height, repositioned elements */
.tablet.fullscreen .footer-bar {
    height: 40px; /* Keep constant height */
    margin: 0;
    background-color: #222;
    border-top: 1px solid #555;
    padding: 0 20px;
    width: 100vw; /* Use viewport width to fill screen */
    margin-left: calc(-50vw + 50%); /* Center and extend to edges */
    box-sizing: border-box;
}

/* Right-aligned elements repositioning for fullscreen */
.tablet.fullscreen .rightIcons {
    margin-left: auto;
}

.tablet.fullscreen .footer-span {
    display: flex;
    align-items: center;
    justify-content: center; /* Center align text in fullscreen mode */
    white-space: nowrap; /* Prevent wrapping only in fullscreen */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure icons container has enough space in fullscreen */
.tablet.fullscreen .icons-span {
    width: 50%;
    padding-right: 15px;
}

.footer-content {
    color: white;
    font-size: 18px;
}

/* Additional fullscreen layout adjustments */
.tablet.fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

/* Ensure content sections take available space */
.tablet.fullscreen .screen,
.tablet.fullscreen .table-container {
    min-height: 200px; /* Minimum height for usability */
}

/* Responsive fullscreen behavior for very wide screens */
@media (min-width: 1200px) {
    .tablet.fullscreen .screen,
    .tablet.fullscreen .table-container {
        max-height: 50vh;
    }
}

/* Ensure proper spacing in fullscreen */
.tablet.fullscreen .menu-bar,
.tablet.fullscreen .footer-bar {
    flex-shrink: 0; /* Don't shrink these elements */
}


/*************** Drop down menus ***************/

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Fullscreen dropdown adjustments */
.tablet.fullscreen .dropdown {
    margin: 0 5px;
}

/* Fullscreen dropdown button styling */
.tablet.fullscreen .dropbtn {
    background-color: #222222;
}

/* Dropdown button */
.dropbtn {
    background-color: #333;
    color: white;
    font-size: small;
    border: none;
    cursor: pointer;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(200, 196, 196, 0.2);
    z-index: 1;
    font-size: small;
    width: 160px;
    z-index: 5000;
    border-radius: 20px;
    border-bottom-right-radius: 30px;
    border-top-right-radius: 30px;
}




/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-narrow {
    width: 100px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #575757}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #575757;
}

/*************** ***************/

.fas {
    padding-left: 5px;
    padding-right: 5px;
}

#ATSULabel {
    font-weight: bold;
    width: 80px;


}

.ATSUSpan {
    width:120px;
    padding-left: 2px;

}

.tabulator {
    width:100%;
    white-space: normal;
    word-wrap: break-word;
}

.tabulator-cell {
    white-space: normal;
    word-wrap: break-word;
}

.tabulator .tabulator-tableHolder {
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: black;
}

.tabulator .tabulator-tableHolder::-webkit-scrollbar {
    display: none;
}


/***** Blink *****/
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  /* Blinking class */
  .blink {
    animation: blink 1s step-start infinite;
  }

  /*    footer */
.footer-span {
    display: inline-block;
    width: 25%; /* Reduced width for span1 and span2 */
    color: white;
    text-align: left; /* Left align text in normal mode */
    /* Allow wrapping in normal mode */
}

/* Icons span gets more width for multiple icons */
.icons-span {
    display: inline-block;
    width: 50%; /* Increased width for icon container */
    color: white;
    text-align: center;
}


#span2 {
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 11pt;
    font-family: B612;
    line-height: 1.2;
}





#clockSpan {
 /*   padding-left:60px; */
    right: 11px; 
    top: 0px;
    z-index: 5000;
    color: greenyellow;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; 

 }

.screenImage{
    background-color: #151415;
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;

}

#ACARSIndicator {
    padding-left: 20px;
}


.pdcSync {
    color: white;
    position: absolute;
    font-size: medium;
    z-index: 5000;
    left: 35;
    top: 5;
}


.simple-keyboard.hg-layout-default .hg-button.hg-green {


    background-color: darkgreen;
    color: white;
}

.simple-keyboard.hg-layout-default .hg-button.hg-red {
    background-color: rgba(173, 22, 22, 0.915);
    color: white;
}

.simple-keyboard.hg-layout-default .hg-button.hg-amber {
    background-color:rgba(194, 132, 25, 0.64);
    color: white;
}


  .label.hg-cyan {
    color:cyan
}

#acarStatus.label.hg-cyan {
    color:rgb(38, 255, 0)
}



.label.hg-white {
    color:rgb(255, 255, 255)
}


/*   cookie banner */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(97 95 96 / 93%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    display: none;
}

.cookie-banner p {
    margin: 0;
    padding-right: 20px;
    flex-grow: 1;
}

.cookie-banner button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-banner button:hover {
    background-color: #45a049;
}

/*   overlaytext */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background with transparency */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
    opacity: 0;
    transition: opacity 0.5s ease; /* Smooth fade-in and fade-out */
}

/* Visible state */
.overlay.show {
    display: flex;
    opacity: 1;
}

/* Image inside the overlay */
.overlay-image {
    max-width: 100%;
    max-height: 80%;
    border: 3px solid white;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
    cursor: pointer; /* Indicate the user can click */
}

.closeOverlay{
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}


/** version */
.versiondiv {
    position:absolute;
    left:0px;
    bottom:0px;
    padding-bottom: 5px;


    color:rgb(206, 205, 205);
    font-size: smaller;    
    opacity: 1;
    transition: opacity 10s ease;
}


  .fade-out {
    opacity: 0;
  }


  .fade-out {
    opacity: 0;
  }

  /*** Tooltip ***/ 
   /* Tooltip text */
   .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 800;
    font-size: small;
    font-weight: lighter;
}
.tooltip_left {
    top: 0px;      
    right: 50px;
    font-size: medium;
      
}

.tooltip_right {
    top: 0px;      
    left: 40px;
    font-size: medium;
      
}

.tooltip_top {
    bottom: 70px;      
    font-size: medium;
    left:-60px;      
}

.tooltip_bottom {
    top: 50px;      
    font-size: medium;
    right:0px;
      
}


/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    z-index: 800;
}

.bottomIcon {
    padding-left: 8px;
    padding-right: 8px;
}

/* Additional spacing for fullscreen mode */
.tablet.fullscreen .bottomIcon {
    padding-left: 10px;
    padding-right: 10px;
}

i:hover {
    cursor: pointer;
}

/**** flight ID *****/
#flight_id {    
    color: rgb(255, 255, 255);
    font-family: 'B612';
    display: block;
    text-align: center;
}

#CALLSIGN {
   min-width:120px;
   width:120px
}

.callsign {
    min-width:100px;
    width:100px
 }

.ICAO {
    min-width: 65px;
}

/* #aboutDropdown {
    position: relative;
    display: block;
    margin-right: 10px;
} */