/* MATERIAL THEME */

.body {
  overflow: auto;
}

.main {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  justify-items: center;
  vertical-align: middle;
  min-height: 100vh;
  box-sizing: border-box;
  flex-direction: column;
}

body {
  background: #efefef;
}

body,
.dialog,
p {
  color: rgba(0, 0, 0, 0.54);
}

p,
body,
span {
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 26px;
}

p a {
  font-weight: bolder;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: bold;
  margin-block-start: 0;
  margin-block-end: 0;
  margin: 6px 0;
}

form > h2,
form > h3,
.dialog > h2,
.dialog > h3 {
  /* text-align: center; */
}

h3,
h2,
h1 {
  font-size: 24px;
  line-height: 28px;
}

h4 {
  font-size: 16px;
  line-height: 16px;
  margin: 12px 0 0 0;
}

a {
  color: rgb(70, 88, 182);
  outline: none;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  box-sizing: border-box;
  display: inline-block;
  white-space: normal;
}

.dialog h2:first-child {
  /* margin-bottom: 25px; */
}

.hint {
  font-family: Work Sans;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 26px;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.error-text {
  color: #f65d2a !important;
  /* padding: 8px; */
}

.recaptcha-message {
  display: flex;
  position: absolute;
  /* background: grey; */
  top: 50%;
  transform: translateY(-50%);
  left: 1px;
  right: 1px;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* max-width: 100%; */
  background-color: rgb(224, 224, 224);
  color: rgba(0, 0, 0, 0.26) !important;
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 48px;
  text-transform: none;
  padding: 0 8px;
  justify-content: center;
}

.recaptcha-container {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.recaptcha-container .mdl-button:disabled {
  /* color: transparent; */
}

.qr-container {
  display: block;
}

.qr-container .qr-code {
  width: 150px;
  height: 150px;
  display: inline-block;
  vertical-align: top;
}

.qr-container .qr-description {
  display: inline-block;
  vertical-align: top;
}

.layout-fill {
  margin: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
}

.bg {
  position: absolute;
  min-height: 100%;
  min-width: 100%;
  overflow: hidden;
}

.bg .yellow,
.bg .blue,
.bg .line,
.bg .green {
  position: absolute;
}

.bg .green {
  top: 0;
  right: 0;
  left: 50%;
  width: 50%;
  /* height: auto; */
}

.bg .yellow {
  top: 0;
  right: 0;
  left: 30%;
  width: 70%;
  /* height: auto; */
}

.bg .blue {
  bottom: 0;
  left: 0;
  right: 50%;
  width: 50%;
  /* height: auto; */
}

.form-container {
  border-radius: 15px;
  max-height: 100vh;
  width: 477px;
  max-width: 100%;
  display: flex;
  padding: 30px 70px 63px 70px;
  box-shadow: 0px 22px 26px rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.87);
  background-color: rgb(255, 255, 255);

  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mdl-textfield .mdl-textfield__input {
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 32px;
  height: 50px;
  padding: 9px 16px 9px;
}

.mdl-textfield.input-outline {
  padding: 0;
  width: unset;
  /* margin-left: -8px;
  margin-right: -8px; */
}

.mdl-textfield.input-outline .hint {
  position: absolute;
  top: 100%;
  left: 0;
}

.mdl-textfield.input-outline {
  margin: 15px 0 20px;
}

.mdl-textfield.input-outline .mdl-textfield__input {
  border: none !important;
  background-color: transparent;
  order: 2;
  display: block;
  margin-top: 0;
  background: none;
  width: 100%;
  box-sizing: border-box;
  float: left;
  outline: none;
}

.mdl-textfield.input-outline .input-outline-container {
  display: flex;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  text-align: left;
  pointer-events: none;
}

.mdl-textfield.input-outline .input-outline-container .input-outline-leading,
.mdl-textfield.input-outline .input-outline-container .input-outline-notch,
.mdl-textfield.input-outline .input-outline-container .input-outline-trailing {
  box-sizing: border-box;
  height: 100%;
  border-width: 1px;
  border-style: solid;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0.38);
}

.mdl-textfield.input-outline.is-invalid .input-outline-container .input-outline-leading,
.mdl-textfield.input-outline.is-invalid .input-outline-container .input-outline-notch,
.mdl-textfield.input-outline.is-invalid .input-outline-container .input-outline-trailing {
  border-color: #b53f18;
}

.mdl-textfield.input-outline.is-invalid .input-outline-container label {
  color: #b53f18;
}

.mdl-textfield.input-outline.is-focused .input-outline-container .input-outline-leading,
.mdl-textfield.input-outline.is-focused .input-outline-container .input-outline-notch,
.mdl-textfield.input-outline.is-focused .input-outline-container .input-outline-trailing {
  border-color: rgb(70, 88, 182);
}

.mdl-textfield.input-outline.is-focused .input-outline-container label {
  color: rgb(70, 88, 182);
}

.mdl-textfield.input-outline.md-input-has-value .input-outline-container .input-outline-notch,
.mdl-textfield.input-outline.md-input-focused .input-outline-container .input-outline-notch,
.mdl-textfield.input-outline.only-float .input-outline-container .input-outline-notch {
  border-top: none;
}

.mdl-textfield.input-outline .input-outline-container .input-outline-leading {
  border-right: none;
  width: 22px;
  border-radius: 4px 0 0 4px;
}

.mdl-textfield.input-outline .input-outline-container .input-outline-notch {
  flex: 0 0 auto;
  width: auto;
  max-width: calc(100% - 12px * 2);
  border-left: none;
  border-right: none;
}

.mdl-textfield.input-outline .input-outline-container .input-outline-trailing {
  border-left: none;
  flex-grow: 1;
  border-radius: 0 4px 4px 0;
}

.mdl-textfield.input-outline .input-outline-container .input-outline-notch label {
  display: inline-block;
  position: relative;
  max-width: 100%;
  left: 4px;
  right: initial;
  bottom: initial;
  top: 50%;
  /* transform: translate(-10px, -50%); */
  transform-origin: left top;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  overflow: hidden;
  will-change: transform;
  width: 100%;
  order: 1;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  padding-left: 3px;
  padding-right: 0;
  z-index: 1;
  font-family: "Work Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 32px;
}

.input-outline-notch label,
.mdl-textfield.input-outline.md-only-float .input-outline-container .input-outline-notch label {
  transform: translateY(-36px) scale(0.75);
}

.mdl-button {
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 26px;
  text-transform: none;
  min-height: 50px;
  padding: 12px;
}

.mdl-button[type="submit"],
.recaptcha-container {
  margin: 38px 0 15px 0;
}

.recaptcha-container .mdl-button[type="submit"] {
  margin: 0;
}

.mdl-checkbox {
  height: unset;
}

/* .mdl-button--raised.mdl-button--colored {
  background: #4658B6;
  color: rgb(255,255,255, 0.87);
}

.mdl-button--raised.mdl-button--colored:focus, .mdl-button--raised.mdl-button--colored:focus:not(:active) {
  background: #2f3c94;
} */

header {
  display: flex;
  flex-direction: row;
  padding: 40px;
  position: relative;
}

header .banner img {
  width: 140px;
  height: 93px;
}

header h2 {
  color: white;
}

header h2,
header h3 {
  text-align: right;
}

footer {
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
  height: 172px;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 0 65px;
}

footer svg {
  margin: 8px;
  height: 66px;
}

/* DEFAULT THEME */

.layout-align-center-center {
  justify-content: center;
  align-items: center;
  align-content: center;
  max-width: 100%;
  display: flex;
}

.layout,
.layout-column,
.layout-row {
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
}

.layout-column {
  flex-direction: column;
}

.layout-row {
  flex-direction: row;
}

.layout-fill {
  margin: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
}

.mdl-card__actions {
  display: flex;
  box-sizing: border-box;
  align-items: center;
}

.dialog {
  /* max-width: 300px;
    width: 100%; */
  margin: 20px auto;
  border-radius: 15px;
  /* max-height: 100vh; */
  width: 477px;
  max-width: 100%;
  display: flex;
  padding: 63px 72px;
  box-shadow: 0px 22px 26px rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.87);
  background-color: rgb(255, 255, 255);

  position: relative;
  /* overflow: auto;
    -webkit-overflow-scrolling: touch; */
  flex-shrink: 0;
}

.dialog img {
  max-width: 100%;
  /* margin: auto; */
}

.dialog .banner {
  text-align: center;
  margin-bottom: 50px;
}

.dialog .banner:first-child {
  margin-top: -20px;
}

.dialog .banner img {
  width: auto;
  height: 70px;
}

.dialog form a {
  /* padding: 16px 32px; */
  /* text-align: center; */
}

.dialog form .mdl-checkbox {
  margin: 2px 0;
}

.mdl-padding {
  padding: 8px 0;
}

.mdl-layout__header.mdl-layout__header--transparent,
.mdl-layout__header.mdl-layout__header--transparent .mdl-navigation__link {
  color: #222;
}

.mdl-grid-justify-center {
  align-items: center;
  justify-content: center;
}

.mdl-card-center {
  margin: auto;
}

.mdl-card-grow {
  width: 100%;
}

.dialog.mdl-card-grow {
  max-width: unset;
}

.score-container {
  font-size: 0;
}

.score-container > .score-placeholder {
  margin-left: -1px;
  width: 20%;
  height: 5px;
  display: inline-block;
  transition: background-color 250ms linear;
  border-top: 1px solid lightgrey;
  border-bottom: 1px solid lightgrey;
}

.score-container > .score-placeholder:focus {
  outline-style: none;
  box-shadow: none;
  border-color: lightgrey;
}

.score-container > .score-placeholder:first-child {
  border-left: 1px solid lightgrey;
}

.score-container > .score-placeholder:last-child {
  border-right: 1px solid lightgrey;
}

.dialog-container {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.align-text-center {
  text-align: center;
}

/* MOBILE */

@media screen and (max-width: 600px) {

  main {
    padding: 0;
  }
  
  .dialog .banner {
    text-align: center;
    margin-bottom: 50px;
  }

  .dialog .banner:first-child {
    margin-top: 10px;
  }

  .dialog .banner img {
    width: auto;
    height: 60px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  h3 {
    font-size: 16px;
    line-height: 24px;
  }

  h4 {
    font-size: 12px;
    line-height: 16px;
  }

  body {
    background-color: #ffffff;
  }

  .dialog {
    background-color: transparent !important;
    box-shadow: none;
    overflow: initial;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto auto auto;

  }

  .dialog h2,
  .dialog h3 {
    text-align: left;
  }

  .mdl-layout__content {
    /* padding: 120px 0 100px 0; */
    /* display: contents; */
    overflow: initial;
  }

  .mdl-layout {
    height: unset;
  }

  header .banner img {
    width: 76px;
    height: auto;
  }

  form > h2:first-child,
  form > h3:first-child {
    margin-bottom: 15px;
  }

  footer {
    padding-right: 29px;
    height: 103px;
  }
}

/* Reptcha bagde */

.grecaptcha-badge {
  box-shadow: 2px 3px 1px rgba(0, 0, 0, 0.15) !important;
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0 1px 1px;
  z-index: 20;
  border-radius: 4px !important;
  bottom: 74px !important;
}

/* Divider */

.layout-row {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

.layout-column {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.divider {
  display: flex;
  flex: 1;
  border-top-width: 1px;
  border-top-style: solid;
  margin: 0;
  border-top-color: rgba(0, 0, 0, 0.12);
}

.divider-label {
  margin: 0 8px;
}

/* NAV LIST (profile settings) */

.nav-list {
  padding-left: 0;
}

.nav-list-item {
  list-style: none;
  display: flex;
  flex-direction: row;
  position: relative;
}

.nav-list-item-content {
  flex: 1;
  flex-shrink: 0;
}

.nav-list-item-content,
.nav-list-item-content.mdl-button {
  text-align: left;
  padding: 8px 16px;
  margin: 2px -16px;
  height: unset;
  font-weight: inherit;
  display: flex;
  flex-direction: row;
}

.nav-list-avatar {
  flex: 0;
  width: 40px;
  background-position: 50% 30%;
  background-size: 80px 80px;
  padding: 0;
  margin: 0 16px 0 0;
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-style: inset;
  box-sizing: border-box;
}

.nav-list-item-middle {
  /* display: flex;
  flex-direction: row; */
  flex: 1;
}

.nav-list-item-body {
  flex: 1;
}

.nav-list-item-content span {
  line-height: 20px;
}

.nav-list-item-text-body {
  display: block;
  color: rgba(0, 0, 0, 0.54);
}

.nav-list-item-secondary-content {
  flex: 0;
  flex-shrink: 0;
  position: absolute;
  right: 0px;
  top: 8px;
}

.nav-list-item-content .nav-list-item-secondary-content {
  position: relative;
  top: unset;
  right: -8px;
  display: flex;
}

.nav-list-item-content .nav-list-item-secondary-content .nav-list-item-secondary-action {
  /* margin-top: 8px; */
  margin: auto;
  text-align: center;
}

.nav-list-item-secondary-content-spacing .nav-list-item-content {
  padding-right: 48px;
}

.mdl-button.mdl-button--fab.maps {
  background-position: 50% 30%;
  background-size: 80px 80px;
  padding: 0;
  margin: 0;
  /* background-size: cover; */
  width: 40px;
  height: 40px;
  min-height: unset;
  min-width: unset;
  /* border-radius: 50%; */
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-style: inset;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 8px;
  overflow: hidden;
  min-width: unset;
  min-height: unset;
  line-height: 1;
}
