/* Shared Styles */
/* Used across the web site */
html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow: auto;

  /* Auto Layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Header styles */
header {
  /* Auto layout */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0px;
  gap: 1rem;
  
  width: 95%;
  max-width: 80.75rem;
  max-height: 9.375rem;

  font-style: normal;
  font-weight: 700;
  font-size: 2.625rem;
  line-height: 3rem;
  text-align: center;
  letter-spacing: -0.02em;
  
  color: #113f71;
  /* Inside auto layout */
  flex: none;
  order: 0;
}

/* Sign in/out button style */
#sign-in-out-button {
  cursor: pointer;
  color: #fff;
  width: 12.5rem;
  height: 3.75rem;
  font-size: 1.5rem;

  background: #113f71;
  border-radius: 16px;
  border-width: 0;
}

/* Navigation styles */
nav {
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  max-width: 79rem;
  width: calc(100% - 24px);
  padding: 5px 0px 5px 24px;
}

nav ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin-right: 20px;
}

nav a {
  color: #000;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Background goes outside of main to
 * provide inner rounded border effect
 * */
#background {
  /* Auto layout */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 10px;
  gap: 10px;
  width: calc(100% - 2rem);

  max-width: 80.25rem;

  background: #113f71;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

/* Main styles */
main {
  display: flex;
  justify-self: stretch;
  justify-content: stretch;
  width: 100%;
  max-width: 80.25rem;
  border-radius: 8px;
  background-color: #fff;

  padding: 3rem;
}

main#column {
  flex-direction: column;
  justify-content: center;
}

/* Footer styles */
footer {
  margin-top: auto;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
}

h1 {
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 2.8125rem;
  color: #113f71;
}

h1.start {
  align-self: flex-start;
  margin: 0;
}

h1.center {
  align-self: center;
}

h2 {
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 2rem;
  line-height: 2.5rem;
  color: #113f71;
  margin: 20;
}

h2.sub { /* Used for grayed out subheadings */
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
  color: rgb(115, 115, 115);
  margin: 0px;
}

h2.start {
  align-self: flex-start;
}

/* Increases contrast on select2 placeholder texts */
.select2-selection__placeholder {
  color: rgba(117, 117, 117, 1) !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: rgba(240, 240, 240, 1) !important;
}

/* CSS for modals */
.modal {
  display: none; /* Hide the modal by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black with transparency */
}

/* Modal content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  max-width: 80%; /* Could be more or less, depending on screen size */
}

/* Div style for dynamically added json response properties */
.json-property {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 1.75rem;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.loader-background {
  color: #fff;
  position: relative;
  top: calc(50% - 2.5rem);
  left: calc(50% - 2.5rem);
}

.loader {
  align-self: center;
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #113f71; /* Blue */
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  animation: spin 2s linear infinite;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 20rem;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}

.tooltip:hover .tooltip-text a {
  color: white;
}

.infolink:after {
  content: '?';
  display: inline-block;
  font-family: sans-serif;
  font-weight: bold;
  text-align: center;
  font-size: 0.8em;
  line-height: 0.8em;
  border-radius: 50%;
  margin-left: 6px;
  padding: 0.13em 0.2em 0.09em 0.2em;
  color: inherit;
  border: 1px solid;
  text-decoration: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 812px) {
  html {
    font-size: 20px;
  }

  p {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width: 640px) {
  .small-hidden {
    display: none;
  }
}