@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,200;0,400;0,600;0,700;1,100;1,400;1,600;1,700&display=swap');
@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:400,semibold");

/* ====================================================================================== */
/* Dark & light themes */
/* ====================================================================================== */

body.light-theme {
    --page-theme-text: "\263C";
    --background-default: #FFFFFF;
    --background-light-blue: #DCE3F2;
    --background-table-light: #F8F8F8;
    --background-table-moderate: #EEEEEE;
    --background-table-dark: #CCCCCC;
    --background-pagetop: #002060;
    --background-pagetop-button: #4568AF;
    --background-pageleft: #DCE3F2;
    --background-pageleft-button: #FFFFFF;
    --background-pageleft-button-hover: #A9CAEF;
    --background-region-button: #A9CAEF;
    --background-region-button-hover: #699CE1;
    --background-main-element: #FFFFFF;
    --background-main-button: #EAEAEA;
    --background-main-button-hover: #CCCCCC;
    --background-modal-x: red;
    --background-research-section: #E3EFFC;
    --background-left-global: #4568AF;
    --background-left-global-button: #2D4C8D;
    --background-left-global-button-hover: #002060;

    --text-default: #000000;
    --text-url: blue;
    --text-url-hover: #0055FF;
    --text-url-links: #444444;
    --text-url-links-hover: blue;
    --text-research-title: #153CBE;
    --box-shadow-default: 0px 0px 15px rgba(0, 0, 0, 0.5);
    --box-shadow-pagetop: 0px 10px 15px rgba(0,0,0,.3);
    --box-shadow-white: 0px 0px 15px #cccccc;
    --box-shadow-topbar: 0px 10px 15px rgba(0,0,0,.3);
    --box-shadow-light: 0px 0px 15px rgba(0, 0, 0, 0.2);
    --color-percentile-high: #7A1111;
    --color-percentile-low: #144985;
    --main-button-border: #4568AF;
}
  
body.dark-theme {
    --page-theme-text: "\263D";
    --background-default: #2C2C2C;
    --background-light-blue: #454548;
    --background-table-light: #646464;
    --background-table-moderate: #575757;
    --background-table-dark: #4A4A4A;
    --background-pagetop: #131317;
    --background-pagetop-button: #42547A;
    --background-pageleft: #39393B;
    --background-pageleft-button: #525252;
    --background-pageleft-button-hover: #686868;
    --background-region-button: #3c4958;
    --background-region-button-hover: #58687B;
    --background-main-element: #353535;
    --background-main-button: #4A4A4A;
    --background-main-button-hover: #575757;
    --background-modal-x: #770000;
    --background-research-section: #454548;
    --background-left-global: #6A6A73;
    --background-left-global-button: #2D4C8D;
    --background-left-global-button-hover: #002060;

    --text-default: #D6D6D6;
    --text-url: #7B94A9;
    --text-url-hover: #577186;
    --text-url-links: #D6D6D6;
    --text-url-links-hover: #577186;
    --text-research-title: #6B859B;
    --box-shadow-default: 0px 0px 15px rgba(0, 0, 0, 0.7);
    --box-shadow-pagetop: 0px 10px 15px rgba(0,0,0,.6);
    --box-shadow-white: 0px 0px 15px #000;
    --box-shadow-topbar: 0px;
    --box-shadow-light: 0px 0px 15px rgba(0, 0, 0, 0.6);
    --color-percentile-high: #E9B6B6;
    --color-percentile-low: #BAD3F0;
    --main-button-border: #7B94A9;
}

.no-transition * {
    transition: none !important;
}

/* ====================================================================================== */
/* General page elements */
/* ====================================================================================== */

html,
body {
  font-family: "Libre Franklin", trebuchet ms;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-descriptor a {
	text-decoration: none;
	color: var(--text-url);
	font-weight: bold;
}

.page-descriptor a:hover {
    color: var(--text-url-hover);
}

button {
	font-family: "Libre Franklin", trebuchet ms;

	border: 0px;
	cursor: pointer;
    color: var(--text-default);
	
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;

	-moz-transition: background-color 0.2s;
	-webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

button:focus {
    outline: 0;
}

select {
    background: var(--background-default);
    color: var(--text-default);
	font-family: "Libre Franklin", trebuchet ms;
	padding: 5px;
	font-size: 16px;
	max-height: 300px;
    border: 1px solid var(--text-default);
}

select:focus {
    outline: 0;
}

.no-select {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.bold {
    font-weight: bold;
}

/* ====================================================================================== */
/* Mobile hamburger menu */
/* ====================================================================================== */

.top-bar-mobile {
    position: fixed;
    top: 50px;
    left: 0px;
    background-color: #222222;
    opacity: 0.95;
    z-index: 20;
    display: none;
}

.top-bar-mobile button {
    width: 300px;
    display: block;
    margin-bottom: 5px;
    background-color: #444444;
    padding: 8px 10px;
    color: white;
    font-size: 16px;

    -moz-transition: background-color 0.2s;
	-webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

.top-bar-mobile button:hover {
    background-color: #666666;
}

.mobile-element-displayed {
    display: block;
}

@media (min-width: 1001px) {
    .mobile-element-displayed {
        display: none;
    }
}

/* ====================================================================================== */
/* Page-top */
/* ====================================================================================== */

.mobile-button {
    display: none;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#mobileButton {
    background-color: var(--background-pagetop);
    font-size: 25px;
    cursor: pointer;

    -moz-transition: background-color 0.2s;
	-webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

#mobileButton:hover {
    background-color: var(--background-pagetop-button);
}

.title-text {
    text-align: center;
    font-size: 28px;
}

.top-bar {
    height: 50px;
    color: white;
    background-color: var(--background-pagetop);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    position: relative;
    z-index: 4;
    text-align: center;
    font-size: 24px;

    -moz-transition: background-color 0.2s;
	-webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
}

.top-bar-shadow {
    box-shadow: var(--box-shadow-topbar);
}

.top-buttons-container {
    flex-grow: 1;
}

.top-buttons {
    display: flex;
    flex-grow: 1;
    margin-left: auto;
}

@media (max-width: 1000px) {
    .mobile-button {
        display: flex;
    }

    .title-text {
        flex: 1;
    }

    .top-buttons-container {
        display: none;
    }
}

@media (min-width: 1001px) {
    .mobile-button {
        display: none;
    }

    .title-text {
        width: 480px; /* 330px */
    }
}


.top-buttons a {
    display: flex; /* Makes it act like a block element */
    width: 20%;    /* Move the width property from button to anchor */
    height: 50px;  /* Move the height property from button to anchor */
}

.top-buttons button {
    width: 100%;   /* Makes button take full width of its parent anchor */
    height: 100%;  /* Makes button take full height of its parent anchor */
    border: none;  /* Remove default border if you don't want it */
    background: transparent; /* Makes button background transparent so anchor styling takes over */
    padding: 0;    /* Remove default padding if you don't want it */
    margin: 0;     /* Remove default margin if you don't want it */
}

.top-bar button {
    font-size: 16px;
    color: #BCD0E6;
    background-color: var(--background-pagetop);
}

.top-bar button:hover {
    background-color: var(--background-pagetop-button);
}

.top-bar button.top-buttons-active {
    background-color: var(--background-pagetop-button);
}

@media (max-width: 1200px) {
    .top-buttons button {
        font-size: 14px;
    }
}

.dark-mode-button {
    width: 50px;
    height: 50px;
}

#darkModeButton::before {
    content: var(--page-theme-text);
    font-size: 33px;
}

@media (max-width: 700px) {
    #darkModeButton:hover {
        background-color: var(--background-pagetop);
    }
}

.top-buttons a {
    text-decoration: none; /* Removes underline */
    color: inherit;        /* Inherits the color of its parent, so it won't have the typical blue color */
    cursor: pointer;       /* To maintain the pointer cursor on hover */
}

.top-buttons a:hover, .top-buttons a:focus {
    text-decoration: none; /* Ensures underline doesn't appear on hover or focus */
    color: inherit;        /* Inherits the color of its parent on hover and focus */
}

.top-buttons a:visited {
    color: inherit;        /* Inherits the color of its parent for visited links */
}

.top-buttons a:active {
    color: inherit;        /* Inherits the color of its parent when link is active */
}

/* ====================================================================================== */
/* Main body | key elements */
/* Note - individual settings to be controlled by individual pages */
/* ====================================================================================== */

.main {
    flex: 1;
    display: flex;
    overflow: hidden;
    max-width: 1800px;
    width: 100%;
    background-color: var(--background-default);
    color: var(--text-default);
}
  
@media (max-width: 1800px) {
    .main {
        justify-content: center;
    }
}

#pageTitleMain {
    font-size: 24px;
}

@media (max-width: 1000px) {
    #pageTitleMain {
        font-size: 22px;
    }
}

@media (max-width: 800px) {
    #pageTitleMain {
        font-size: 20px;
    }
}

/* ====================================================================================== */
/* Popup window */
/* ====================================================================================== */

.modal-window select{
    text-align: center;
    width: 100%;
}

.modal-window button{
    font-size: 16px;

    padding-left: 15px;
	padding-right: 15px;
	padding-top: 8px;
	padding-bottom: 8px;

    color: var(--text-default);
	background: var(--background-region-button);
}

.modal-window button:hover {
    background: var(--background-region-button-hover);
}

.modal-window {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 101;
    color: var(--text-default);
}

.modal-window.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-window input[type="text"] {
    font-size: 18px;
    width: 100%;
    padding: 5px;
    color: var(--text-default);
    font-family: "Libre Franklin", trebuchet ms;
    text-align: center;
    background-color: var(--background-main-element);
    border: 1px solid var(--text-default);
}
  
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 102;
}
  
.modal-body {
    background-color: var(--background-main-element);
    position: relative;
    z-index: 103;
}
  
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}
  
.modal-header .left-element {
    background-color: var(--background-pagetop);
    padding: 5px 15px 5px 15px;
    flex: 1;
    color: white;
    font-size: 20px;
}
  
.modal-header .right-element {
    background-color: var(--background-modal-x);
    padding: 5px 15px 5px 15px;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.modal-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.modal-content .table-container {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 15px;
}
  
.modal-content .table-row {
    display: flex;
}
  
.modal-content .table-cell {
    flex: 1;
    padding: 4px 10px 4px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content .table-cell select {
    background-color: var(--background-main-element);
    border: 1px solid var(--text-default);
}

.modal-content .button-container {
    text-align: center;
}
  
.modal-content .centered-button {
    display: inline-block;
    margin-top: 15px;
}

.modal-content #generating-gif {
    margin-top: 15px;
    color: #3E79C9;
}
  
@media screen and (min-width: 800px) {
    .modal-content {
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
}
  
@media (min-width: 800px) {
    .modal-body {
        width: 600px;
        height: 300px;
    }
}
  
@media (max-width: 800px) {
    .modal-body {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 700px) {
    #titleText::before {
      content: "AIFS Panels";
    }
}
  
@media (min-width: 701px) {
    #titleText::before {
      content: "AIFS Panels";
    }
}

/* ====================================================================================== */
/* Main body */
/* ====================================================================================== */

.left-side,
.right-side {
  overflow: auto;
}

.left-side {
  width: 300px;
  background-color: var(--background-light-blue);
  padding: 15px;
}
  
.right-side {
  flex: 1;
  background-color: var(--background-default);
  padding: 15px;
}

/* ====================================================================================== */
/* Right side */
/* ====================================================================================== */

.top-content button {
  margin-right: 10px;
}

@media (min-width: 801px) {


    .top-content {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 15px;
    }

    #hour-slider {
        flex: 1;
    }
}

.top-content button{
    font-size: 16px;

    padding-left: 15px;
	padding-right: 15px;
	padding-top: 8px;
	padding-bottom: 8px;

    color: var(--text-default);
	background: var(--background-region-button);
}

.top-content button:hover {
    background: var(--background-region-button-hover);
}

.keyboard-info {
    margin: 15px auto;
    color: gray;
    font-size: 14px;
    width: 100%;
}

.keyboard-info2 {
    margin: 15px auto;
    color: gray;
    font-size: 14px;
    width: 100%;
}

#map {
  display: block;
  width: 85%;
  margin: 15px auto;
}

#imageContainer {
    position: relative;
    display: inline-block;
}

#loadingText {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    font-weight: bold;
    color: black;
    transform: translate(-50%, -50%);
}

@media (max-width: 800px) {
    .content-top {
        display: flex;
        flex-wrap: wrap;
    }
      
    #button-container {
        text-align: center;
        flex-basis: 100%;
        margin-right: 0;
    }
    
    #hour-slider {
        margin: auto;
        flex-basis: 90%;
        margin-top: 10px;
        width: 100%;
    }
}

/* ====================================================================================== */
/* Left side */
/* ====================================================================================== */

.left-side select{
    border: none;
}

.container-left {
    width: 100%;
    margin-bottom: 30px;
}
  
.row-top {
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.row-bottom {
    width: 100%;
    text-align: center;
}

/* Buttons on left side & mobile menu side of page */
#homeButton{
    width: 100%;

    padding-top: 7px;
    padding-bottom: 7px;
    margin-bottom: 7px;
    font-size: 15px;

	background: var(--background-pageleft-button);

    -moz-transition: background 0.2s;
	-webkit-transition: background 0.2s;
    transition: background 0.2s;
}

#homeButton:hover {
    background: var(--background-pageleft-button-hover);
}

/* Special setting for button to go back to main menu */
#homeButton {
    box-shadow: 0px 0px 15px rgba(0,0,0,0.5);
    font-weight: bold;
}

/* ====================================================================================== */
/* Mobile settings */
/* ====================================================================================== */

  .mobile-menu {
    display: none;
    width: 100%;
    background-color: var(--background-light-blue);
  }

  .container-mobile {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .text {
    margin-right: 10px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-default);
  }
  
  .input-select {
    flex: 1;
  }

  .mobile-menu select{
    border: none;
}

/* ====================================================================================== */
/* Mobile layout */
/* ====================================================================================== */

@media (max-width: 800px) {
  .keyboard-info::before {
    content: "Swipe up/Down = Change model | Swipe left/Right = Change valid time";
  }
  .centered-text {
    text-align: left;
    margin-left: 15px;
}
}

@media (min-width: 801px) {
  .keyboard-info::before {
    content: "Up/Down arrow keys = Change model | Left/Right arrow keys = Change valid time";
  }
}

@media (max-width: 1200px) {
    #map {
        width: 93%;
    }
}

@media (max-width: 1000px) {
    #map {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .left-side {
      display: none;
    }
    
    .right-side {
      width: 100%;
    }

    .mobile-menu {
      display: block;
    }

    select{
        font-size: 16px;
    }

    .text {
        font-size: 16px;
    }
}