body {
  margin: 0;
}

#root {
  display: flex;
}

.landing-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

.left-split {
  width: 43%;
  margin: 45px;
}

.right-split {
  width: 57%;
}

.login-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login {
  max-width: 450px;
}

.login p {
  text-align: left;
  font: normal normal normal 24px/35px Roboto;
  letter-spacing: 0px;
  color: #3c679b;

  margin-bottom: 62px;
}

.login button {
  padding-left: 50px;
  padding-right: 50px;
  min-height: 60px;
  background: #2a7de1 0% 0% no-repeat padding-box;
  border-radius: 30px;
  font: normal normal bold 20px/26px Roboto;
  letter-spacing: 0px;
  color: #ffffff;
  border: none;
}

nav {
  width: 13em;
  min-height: 100vh;

  font: normal normal bold 24px/32px Roboto;
  letter-spacing: -0.48px;
  color: #03336c;

  /* Ensure the shadow is on top of the main content. */
  z-index: 1;
  box-shadow: 0px 10px 30px #2a7de129;
}

nav a:visited {
  color: #03336c;
}

.logo {
  margin-top: 27px;
  margin-left: 30px;
  width: auto;
  height: 53px;
  max-width: 75%;
}

nav ul {
  margin-top: 88px;
}

nav li {
  height: 66px;
  list-style-type: none;

  /* vertically align text in the middle */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

nav li.active {
  border-right: 5px solid #2a7de1;
}

nav li.active a {
  color: #2a7de1;
}

a {
  text-decoration: none;
  color: #03336c;
}

main {
  /* Take the remaining width */
  flex: 1;

  /* Make it scrollable */
  overflow: auto;

  background: #f8fbff;
}

section {
  padding-left: 112px;
  padding-right: 112px;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  font: normal normal bold 20px/26px Roboto;
  letter-spacing: -0.4px;
  color: #03336c;

  border-bottom: 1px solid #cadff8;
  background-color: #fff;

  height: 103px;
}

header .menu.closed {
  animation: fadeout 0.06s ease-in forwards;
}

header .menu {
  padding: 20px;

  animation: fadein 0.06s ease-in;

  position: absolute;
  background-color: white;
  width: 200px;

  top: 74px;

  box-shadow: 0px 10px 30px #2a7de129;
  border-radius: 8px;
}

header .menu a {
  font: normal normal bold 20px/26px Roboto;
  letter-spacing: -0.4px;
  color: #03336c;
}

.nav-icon {
  margin-right: 17px;
  vertical-align: middle;
}

.user-profile {
  margin-right: 60px;

  display: flex;
  align-items: center;

  font: normal normal bold 20px/26px Roboto;
  letter-spacing: -0.4px;
  color: #03336c;

  cursor: pointer;
}

.user-profile .down-arrow {
  margin-left: 5px;
  width: 25%;
  height: auto;
  cursor: pointer;
}

.user-profile .profile-image {
  border-radius: 20px;
  margin: 10px;
}

/* Needs a transition group here. */
/* section {
  animation: fadein 5s ease-in-out;
} */

.loading {
  /* @keyframes name | duration | easing-function | delay */
  animation: fadeindelayed 0.2s ease-in;

  /* Obscure the rest of the app behind the loading modal. */
  position: fixed;
  display: flex;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;

  /* TODO: Confirm values from XD. */
  background-color: rgba(0, 0, 0, 0.2);

  /* Center the loading spinner in the middle of the page. */
  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 1;
}

.loading.hidden {
  display: none;
  opacity: 0;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fadeindelayed {
  from {
    opacity: 0;
  }

  25% {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

button {
  font: normal normal bold 18px Roboto;
  color: #fff;

  min-width: 140px;
  min-height: 45px;

  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;

  background: #2a7de1 0% 0% no-repeat padding-box;
  border-radius: 100px;
  border: none;
}

.pagination-button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;

  min-width: auto;
  min-height: auto;

  width: 1em;

  /* Create a column */
  display: flex;
  flex-direction: column;
  /* Center in the main axis */
  justify-content: center;
  /* Center in the cross axis */
  align-items: center;
}

.rot-90 {
  transform: rotate(90deg);
}
.rot-270 {
  transform: rotate(270deg);
}

.searchbox-container {
  display: flex;
  justify-content: end;
}

.searchbox {
  min-width: 270px;
  min-height: 43px;

  background: #e7f0fd 0% 0% no-repeat padding-box;
  border-radius: 4px;
  border: none;

  background-image: url("/search.svg");
  background-repeat: no-repeat;
  background-position-x: 96%;
  background-position-y: 50%;

  margin-top: 20px;
  margin-bottom: 20px;

  padding-left: 15px;

  font: normal normal normal 16px/35px Roboto;
  letter-spacing: 0px;
  color: #3c679b;
}

.searchbox::placeholder {
  color: #3c679b;
}

.flip {
  transform: rotate(180deg);
}

.consent-list {
  margin-top: 70px;
  margin-bottom: 70px;
}

.consent-list h1 {
  margin-top: 20px;
  margin-bottom: 60px;
}

.consent-list .back-text {
  /* Align icon and logo in a row. */
  display: flex;
  align-items: center;

  cursor: pointer;

  font: normal normal bold 20px/26px Roboto;
  letter-spacing: -0.4px;
  color: #03336c;
}

.consent-list .label {
  font: normal normal 500 18px/35px Roboto;
  letter-spacing: 0px;
  color: #3c679b;
}

.consent-list .value {
  font: normal normal bold 24px/35px Roboto;
  letter-spacing: 0px;
  color: #03336c;
}

.consent-list .split-down {
  display: flex;
  align-items: flex-start;
}

.consent-list .consent-list-table {
  /* Fill remaining space. */
  width: 100%;

  background: #ffffff 0% 0% no-repeat padding-box;
  box-shadow: 0px 10px 30px #2a7de129;
  border-radius: 8px;

  /* Ensure the border-radius clips the child table. */
  overflow: clip;
}

.consent-list .consent-list-table .header {
  padding-top: 10px;
  padding-left: 23px;
  padding-right: 23px;
}

.consent-list .consent-list-table h2 {
  flex-grow: 1;
}

.consent-list h2 {
  font: normal normal bold 35px/46px Roboto;
  letter-spacing: -0.7px;
  color: #03336c;
}

.consent-list .event-details {
  margin-right: 67px;
  min-width: 250px;
}

.consent-list table {
  box-shadow: none;
}

.consent-list table td {
  padding-left: 26px;
  padding-right: 26px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.consent-list table thead td {
  border-bottom: none;
  padding-right: 40px;
}

.consent-list .info-group {
  margin-top: 10px;
  margin-bottom: 10px;
}

.consent-list .event-details-header {
  font: normal normal bold 30px/39px Roboto;
  letter-spacing: -0.6px;
  color: #03336c;
}

hr {
  border: none;
  border-top: 2px solid #c4dfff;
  margin: 20px 0;
}

/* Forms */

.form-container {
  z-index: 1;

  animation: fadein 0.06s ease-in;

  /* Obscure the rest of the app behind the loading modal. */
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;

  background-color: rgba(0, 0, 0, 0.2);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-container .cancel-btn {
  margin: 20px;
  cursor: pointer;
}

.form h2 {
  font: normal normal bold 35px/46px Roboto;
  letter-spacing: -0.7px;
  color: #03336c;
  margin: 0;
  margin-bottom: 32px;
}

.form select {
  width: 100%;
  min-height: 60px;

  background: #e7f0fd 0% 0% no-repeat padding-box;
  border-radius: 4px;
  border: none;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 97%;
  background-position-y: 50%;

  /* background-position: center right;
  background-repeat: no-repeat; */

  font: normal normal normal 18px/35px Roboto;
  color: #03336c;

  margin: 0;
  overflow: hidden;

  padding-left: 15px;
  padding-right: 25px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

button {
  cursor: pointer;
}

.form {
  padding: 48px 40px;

  width: 480px;
  background-color: #fff;
  box-shadow: 0px 10px 30px #2a7de129;
  border-radius: 12px;

  /* Don't obscure the cancel button if the form height is too large. */
  max-height: 80%;
  overflow-y: scroll;
}

.form.page {
  padding: 48px 40px;

  width: 100%;
  /* width: 480px; */
  background-color: unset;
  box-shadow: unset;
  border-radius: unset;
}

.form.page button {
  max-width: 480px;
}

.form.page select {
  max-width: 480px;
}

.form .field {
  font: normal normal normal 18px/35px Roboto;
  letter-spacing: 0px;
  color: #3c679b;
}

.form .field .form-label {
  font: normal normal normal 12px/35px Roboto;
}

.form .field label {
  padding-left: 0.25em;
}

.form input[type="text"],
.form input[type="number"] {
  min-width: 400px;
  min-height: 60px;
  background: #e7f0fd 0% 0% no-repeat padding-box;
  border-radius: 4px;
  border: none;
  padding-left: 15px;
  font: normal normal normal 18px/35px Roboto;
  letter-spacing: 0px;
  color: #03336c;
}

.form input[type="number"] {
  /* Align the up and down arrows nicely. */
  padding-right: 15px;
}

.form button {
  width: 100%;
  min-height: 60px;
  background: #2a7de1 0% 0% no-repeat padding-box;
  border-radius: 4px;
  font: normal normal bold 18px/35px Roboto;
  letter-spacing: 0px;
  color: #ffffff;
  border: none;
}

/* For messages/confirmations. */
.form p {
  text-align: left;
  font: normal normal normal 35px/46px Roboto;
  font-weight: normal;
  letter-spacing: -0.7px;
  color: #03336c;
}

.form .bad-cell {
  background-color: rgb(222 70 43 / 16%);
  border-radius: 4px;
  margin-left: 0.25em;
  margin-right: 0.25em;
}

.form .error-row {
  background-color: rgba(255, 99, 71, 0.126);
  height: 2.5em;
}

.form .details {
  text-align: left;
  font: normal normal bold 24px Roboto;
  color: #03336c;
}

.form .buttons {
  margin-top: 20px;
}

.form button {
  margin-top: 20px;
}

.form button.primary.dangerous {
  background: #db0065 0% 0% no-repeat padding-box;
}

.form button.secondary {
  background: transparent;
  font: normal normal bold 18px/35px Roboto;
  letter-spacing: 0px;
  color: #03336c;
  margin-top: 0px;
}

.pages {
  display: flex;
  justify-content: flex-end;
}

.page-count {
  font-size: medium;
  padding-right: 1em;
}

.page-btn {
  cursor: pointer;
  font: normal normal normal 16px/21px Roboto;
  letter-spacing: 0px;
  color: #03336c;
  margin: 10px;
}

.page-btn.current {
  font-weight: 600;
}

.spaced-icon {
  margin: 5px;
}
