p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--primary-font);
}

body {
  margin: 0;
  padding: 2rem 1rem;
}

.danger-text {
  color: var(--danger-color);
  opacity: 0.7;
}

.small {
  font-size: 0.8rem;
}

.button {
  background-color: var(--primary-color);
  font-family: var(--primary-font);
  width: calc(100% - 5rem);
  padding: 1rem 1.5rem;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  text-decoration: none;
  margin: 2rem 1rem 0rem 1rem;
  box-shadow: var(--box-shadow-left-1);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secondary.button {
  background-color: white;
  color: var(--primary-color);
}

.button-group {
  display: flex;
  justify-content: space-between;
}

.button-group > .button {
  width: calc(50% - 3.5rem);
}

.button.center {
  text-align: center;
  display: block;
}


/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: var(--primary-color); /* Black background color */
  color: white; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 1rem; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  right: 1rem;
  top: 1rem;
  font-size: 1rem;
  font-family: var(--primary-font);
  box-shadow: var(--box-shadow-disabled-1);
  width: calc(100% - 4rem);
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.modal-container {
  width: 100%;
  height: calc(100% + 2rem);
  background-color: rgba(0, 0, 0, .3);
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  display: none;
}

.modal {
  position: absolute;
  background-color: white;
  box-shadow: var(--box-shadow-left-1);
  color: var(--primary-color);
  padding: 1.5rem 2rem;
  border-radius: 0.25rem;
  z-index: 101;
  left: 0;
  right: 0;
  top: 20vh;
  margin: 0 auto;
  width: calc(100vw - 10rem);
  max-width: 800px;
  font-family: var(--primary-font);
  border: 1px solid white;
  display: none;
}

.modal > h1 {
  margin: 0;
}

.modal > .modal-content > h3 {
  margin: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.modal > .modal-content > small {
  opacity: 0.8;
}

.modal > .modal-content > .button-group > .button {
  margin: 0;
  margin-top: 1rem;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {right: 0; opacity: 0;}
  to {right: 1rem; opacity: 1;}
}

@keyframes fadein {
  from {right: 0; opacity: 0;}
  to {right: 1rem; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {right: 1rem; opacity: 1;}
  to {right: 0; opacity: 0;}
}

@keyframes fadeout {
  from {right: 1rem; opacity: 1;}
  to {right: 0; opacity: 0;}
}
