﻿/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root{
  --footer-height: 12vh;
  --navbar-height: 10vh;
  --bottom-navbar-height: 11vh;

  --md-filled-tonal-button-container-shape: 8px;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Header CSS */
header{
  height: 10vh;
}

header .title{
  display: flex;
  flex: 1;
  justify-content: center;
}

.title{
  position:absolute;
  left: 50%;
  transform: translate(-50%, 0%);
}

.home-content{
  margin-bottom: var(--navbar-height);
}

/* Navbar CSS */
.navbar {
  background-color: var(--md-sys-color-surface);
  height: var(--navbar-height);
  width: 100vw;

  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Home Bottom Navbar CSS */
.home-nav-bar {
  background-color: var(--md-sys-color-surface);
  height: var(--bottom-navbar-height);
  width: 100vw;

  padding-top: 1vh;
  padding-bottom: 1vh;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 2em;
}

.nav-button-container{
  height: (var(--bottom-navbar-height) - 2vh);
  width: 5em;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navbar-icon-container{
  margin-left: min(1em, 10px)
}
.navbar-icon {
  width: 100%
}

.nav-button-label{
  margin-top: 0.8em;
}


/* Body CSS */
html, body {
  display: flex;
  flex: 1; 
  max-height: 100vh;
}

body{
  height: 100vh - var(--footer-height);
  width: 100%;
  flex-direction: column;
}

main {
  flex-grow: 1;
  width: 100%;
  max-height: 100% - var(--footer-height);

  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: var(--footer-height);

  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* Footer CSS */
footer {
  --footer-colour: #4CAF50;
  box-shadow: 0 -2px 0 var(--md-sys-color-outline);
}

#footer-container{
  position: fixed;
  bottom: 0;

  width: 100%;
  height: var(--footer-height);

  display: flex;
  flex-direction: column;
  
  background-color: var(--footer-colour, #FFF);
}

.footer-contents {
  width: inherit;
  height: inherit;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.footer-contents img {
  object-position: center;
  max-height: calc(var(--footer-height) - 1em);
}

.footer-error{
  width: 100%;
  background-color: #ff8080;
  color: black;
  font-weight: bold;
  text-align: center;
}



/* Preferences CSS */
#preferences-tab {
  position: absolute;
  left: 0;
  height: 100%;
  width: 80vw; /* todo, responsive for desktop */

  flex-direction: column;
  align-items: start;
  padding: 1em;

  border-radius: 0px 1em 1em 0px;

  background-color: var(--md-sys-color-surface-container-low, #FFF);
}

#preferences-tab.open {
  display: flex;
}

#preferences-tab.closed {
  display: none;
}

#preferences-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}


/* ID Dialog */
#request-id-container, #welcome-container{
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1em;
}