* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

/* https://www.sarasoueidan.com/blog/focus-indicators/ */
:focus-visible {
  outline: 9px double black;
  box-shadow: 0 0 0 6px white;
  border-radius: 0.5em;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/agileBase/resources/fonts/OpenSans-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    src: url('/agileBase/resources/fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'Open Sans';
    src: url('/agileBase/resources/fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: bold;
}
 
html {
  min-height: 100%;
}

body, input, button {
  font-family: "Open Sans";
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  min-height: 100vh;
}

body.cloud_agilebase {
  background-color: var(--ab-brand-green);
}

body.cloud_agilebase #logo {
  width: 100%;
  height: auto;
}

form, div.error, .chaser.thanks {
  width: 30em;
  background-color: rgba(255,255,255,0.75);
  padding-left: 6em;
  padding-right: 6em;
  padding-top: 2em;
  padding-bottom: 2em;
  border-radius: 0.25em;
  backdrop-filter: blur(0.5em);
}

.chaser.thanks.with_artwork {
  width: 60%;
  min-width: 40em;
}

.chaser.thanks h1 {
  font-size: 10pt;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.chaser.thanks h2 {
  font-size: 10pt;
  margin-top: 0;
  margin-bottom: 0;
}

.chaser.thanks h1 a, .chaser.thanks h2 a {
  color: black;
}

.chaser.thanks h2 small {
  font-size: 10pt;
  font-weight: lighter;
}

.chaser.thanks #artwork, .chaser.thanks #artwork img {
  width: 100%;
}

form.chaser, div.error {
  background-color: rgba(255,255,255,0.85);
}

form.chaser .ab_row {
  height: 2.5em;
}

form.chaser .ab_row div.date {
  display: inline-block;
  min-width: 14em; /* Ensure there's enough space for the whole date to fit on one line */
}

input, select, textarea {
  font-size: 12pt;
  background-color: white;
  border: 0;
  padding: 0.25em;
  width: 100%;
}

.login-screen-container .form-horizontal label {
  color: white;
}

.chaser .date input, .chaser .date select, .chaser input[type=radio] {
  width: auto;
}

.chaser input[type=radio] {
  float: left;
  clear: left;
  margin-right: 0.5em;
}

.chaser input[type=radio] + label {
  display: block;
}

.chaser {
  width: 40em;
}

.container.passwordreset {
  font-size: 12pt;
  line-height: 1.5em;
}

.passwordreset a {
  text-decoration: underline;
}

button, .passwordreset button {
  font-size: 12pt;
  background-color: #4984B3;
  background-image: none;
  text-shadow: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  color: white;
  border: 0;
  cursor: pointer;
}

button[disabled], .login-screen-container button[disabled] {
  opacity: 0.5;
}

#forgotten_password {
  width: 100%;
  text-align: right;
  display: inline-block;
}

#forgotten_password a {
  text-decoration: none;
  color: black;
  display: inline-block;
  margin-top: 0.5em;
}

#forgotten_password a:hover {
  text-decoration: underline;
}

#loginrow {
  text-align: right;
}

/* http://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
}

#logo {
  height: 5em;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

#poweredby {
  width: 100%;
  text-align: center;
  font-size: 10pt;
}

#poweredby img {
  height: 3em;
  vertical-align: middle;
  margin-bottom: 1em;
}

#strapline {
  color: white;
  margin-top: 2em;
  border-radius: 0.25em;
  padding-left: 1em;
  padding-right: 1em;
}

#strapline.standout {
  /* To add to backgrounds where the text isn't clearly visible otherwise */
  background-color: rgba(73,132,179, 0.75);
}

#fast, #friendly, #flexible {
  display: none; /* will be replaced with 'flex' to show one */
  width: 100%;
  align-items: center;
  justify-content: center;
}

.word {
  font-size: 30pt;
  font-weight: 300;
}

.word, .equals, .explanation {
  display: inline-block;
  text-align: left;
  margin-right: 0.25em;
}

.equals {
  font-size: 40pt;
}

.fieldname {
	text-transform: capitalize;
}

body.failed_login {
	font-size: 12pt;
	line-height: 2em;
}

.failed_login #nav_home {
	height: 61px;
	margin-bottom: 3em;
}

.failed_login .alert {
	color: black;
}

.sitename {
  text-align: center;
}

#custom_strapline a {
  color: white;
}

#custom_strapline img {
    height: 3em;
}

/* Login screen with historical figures custom styling */

.login-screen-container {
  margin: 0; 
  width: 100vw;
  top: 0;
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: var(--ab-brand-green);
}

.login-screen-container .form-horizontal {
  background: none;
  width: 40em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

/* Polychromatic: positions login inputs on mobile and iPad */

@media (max-width: 468px) {
	.login-screen-container .form-horizontal {
    margin: 10em 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.login-screen-container .form-horizontal {
    margin: 10em 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.login-screen-container {
    justify-content: center;
  }
}

.login-screen-container .form-horizontal input, #passwordresetform input {
  padding: 0.75em;
  margin-top: 0.5em;
}

.login-screen-container .form-horizontal p {
  margin-bottom: 0;
}

.login-screen-container #strapline {
  display: none;
}

.image-container {
  background: url("/agileBase/website/images/ada_lovelace.jpg");
  width: 50%;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: center;
  position: relative;
}

/* Hides image on mobile and iPad */

@media (max-width: 1024px) {
	.image-container {
    display: none;
  }
}


.historical-figures-container {
  width: 20em;
  display: flex;
  padding: 1em;
  background: var(--ab-brand-green);
  color: white;
  position: absolute;
  right: 3em;
  top: 3em;
}

.historical-figures-container.bottom {
  top: auto;
  bottom: 3em;
}

.historical-figures-diamond {
  height: 2em;
  margin-right: 1em;
}

.historical-figures-name {
  font-size: 1.5em;
  padding-bottom: 0.2em;
}

.historical-figures-chevron {
  padding-top: 0.5em;
  cursor: pointer;
  color: var(--ab-yellow2);
  text-decoration: none;
}

.historical-figures-attribution {
  bottom: 1em;
  left: 1em;
  padding: 0 1em;
  position: absolute;
  background: rgba(2, 62, 67, 0.5);
  color: white;
  font-size: 0.7em;
}

.historical-figures-attribution a, .historical-figures-description a {
  color: white;
}

.login-screen-container #forgotten_password a {
  color: white;
}

.login-screen-container button {
  background: var(--ab-yellow2);
  color: var(--ab-gray);
  padding: 0.5em 1em;
  opacity: 1;
}

#passwordresetform button {
  padding: 0.5em 1em;
}

.float-right {
  float: right;
}

.width100 {
  width: 100%;
}
