/*
 * COPYRIGHT - CUBIC TRANSPORTATION SYSTEMS ("CUBIC"). ALL RIGHTS RESERVED.
 *
 * Information Contained Herein is Proprietary and Confidential.
 * The document is the property of "CUBIC" and may not be disclosed,
 * distributed, or reproduced without the express written permission of
 * "CUBIC".
 */

@font-face {
  font-family: Lato;
  src: url('../fonts/Lato-Regular.ttf');
}

/* ==========================================================================
 * Basic CSS Reset
 * ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'Lato', sans-serif;
}

/* ==========================================================================
 * Page Layout
 * ========================================================================== */

/* Main content container */
.bodyContent {
  margin-top: 10px;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;

  width: 100%;
  min-height: 100vh;
  color: #2b384b;
  display: grid;
  grid-template-rows: 1fr auto;
  background: url('../images/background.png') no-repeat center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 960px) {
  .bodyContent {
    background: url('../images/background-mobile.png') no-repeat center center fixed;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

/* Main container inside the content */
.bodyContent #mainContainer {
  display: flex;
  flex-direction: column;
  position: relative;

  width: 470px;
  min-height: 360px;
  padding: 24px;

  margin-top: 24px;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;

  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.176);
  border-radius: 6px;
  box-sizing: border-box;
}

.bodyContent #mainContainer #logoContainer,
.bodyContent #mainContainer #messageContainer,
.bodyContent #mainContainer #buttonContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: center;
  line-height: 48px;
}

.bodyContent #mainContainer #logoContainer img {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  max-height: 33px;
}

.bodyContent #mainContainer #messageContainer {
  margin-top: 64px;
  margin-bottom: 0;
  padding-bottom: 0;
  line-height: 24px;
}

.bodyContent #mainContainer #messageContainer p {
  margin-bottom: 0;
  padding-bottom: 0;
}

.bodyContent #mainContainer #messageContainer h1 {
  line-height: 1.1101em;
}

/* Action buttons inside the main container */
.bodyContent #mainContainer #buttonContainer {
  padding-top: 24px;
}

.bodyContent #mainContainer #buttonContainer button {
  cursor: pointer;
}

.bodyContent #mainContainer #buttonContainer button[disabled],
.bodyContent #mainContainer #buttonContainer button.disabled {
  cursor: default;
  background-color: #ccc;
  color: #eee;
}

.fatalError {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: auto;
  padding: 24px;

  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.176);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;

  background-color: white;
}

.fatalError h1 {
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
}

.fatalError p {
  margin-bottom: 16px;
}

/* ==========================================================================
 * Footer Styling
 * ========================================================================== */

/* Footer image – for example, a logo */
.footer-image {
  height: 38px;
  object-fit: contain;
}

/* Footer panel wrapper */
.footerPanelWrapper {
  min-height: 110px;
  color: white;
  margin-top: 24px;
}

/* Copyright link style */
.footerPanelWrapper a.copyrightLink {
  color: #E6DDFE;
  font-size: 9px;
  line-height: 80%;
  font-style: normal;
  font-weight: 600;
  text-align: left;
}

/* Footer links (language selector and other links) */
.footerPanelWrapper .linksPanel a,
.footerPanelWrapper .currentLanguage a {
  font-family: Lato, sans-serif;
  color: white;
  font-size: 14px;
  line-height: 2rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  text-align: center;
  margin: auto;
  white-space: nowrap;
  flex-grow: 1;
}

@media screen and (max-width: 960px) {
  .footerPanelWrapper {
    background-color: #001341;
  }
}

/* Footer main content area */
.footerPanelContent {
  position: relative;
  top: 0;
  min-height: 110px;
  line-height: 1.1;
  background-color: transparent;
  max-width: 100vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
}

/* Footer image panel within the content */
.footerPanelContent .imgPanel {
  margin-left: 10px;
  align-self: center;
}

.footerPanelContent .imgPanel div {
  margin-top: 0;
}

/* Extra footer shape element (currently hidden) */
.footerPanel {
  z-index: 0;
  background-color: #001341;
  width: 200%;
  position: relative;
  left: -50%;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  display: none;
}

/* Link groups inside the footer (links and language selector) */
.linksPanel,
.currentLanguage {
  display: inline-flex;
  align-items: center;
  text-align: center;
  padding: 2px 10px 10px 10px;
}

.currentLanguage {
  white-space: nowrap;
}

/* Icons within the current language selector */
.currentLanguage .notificationIcon,
.currentLanguage .selectLanguageIcon {
  display: inline-block;
}

@media screen and (max-width: 960px) {
  .footerPanel p {
    max-width: 100vw;
  }
  .footerPanelContent {
    grid-template-columns: 25% 1fr;
  }
  .footerPanelContent .imgPanel {
    padding-right: 10px;
  }
}

/* Version label styling */
.versionLabel {
  display: block;
  font-size: 9px;
  color: #001341;
}

/* Responsive Links Panel */
.linksPanel {
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  padding-right: 10px;
  margin: auto;
  max-width: 960px;
  width: 100%;
}

.linksPanel.grow a {
  margin: auto;
}
