/* global */
html, * {
  font-family: sans-serif;
}

button[disabled] {
  opacity: 0.5;
}

.push-down {
  margin-bottom: 3em;
}

.pushed-down {
  margin-top: 3em;
}

/* loading */
.toast {
  z-index: 1000;
  position: fixed;
  top: 0;
  padding: 0.5em;
}
.toast .toast.close {
  position: absolute;
  right: 0;
}
.toast.loading {
  width: 5em;
  left: 50%;
  margin-left: -3em;
  background-color: orange;
}
.toast.error {
  width: 50%;
  left: 25%;
  color: white;
  background-color: red;
}
.toast.error .toast.close {
  color: white;
}

/* loading spinner */

.lds-grid {
  display: inline-block;
  position: relative;
  top: 0.25em;
  left: 50%;
  margin-left: -40px;
  width: 80px;
  height: 80px;
}
.lds-grid div {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #444;
  animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
  top: 8px;
  left: 8px;
  animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
  top: 8px;
  left: 32px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
  top: 8px;
  left: 56px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
  top: 32px;
  left: 8px;
  animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
  top: 32px;
  left: 32px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
  top: 32px;
  left: 56px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
  top: 56px;
  left: 8px;
  animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
  top: 56px;
  left: 32px;
  animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
  top: 56px;
  left: 56px;
  animation-delay: -1.6s;
}
@keyframes lds-grid {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* login/logout buttons */

.main-container {
  width: 60em;
  margin: 0 auto;
  text-align: center;
}

.main-header {
  width: 100%;
  position: relative;
}

.logout-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.main-footer {
  font-size: small;
}

/* share buttons */

.share-btn {
  display: inline-block;
  color: #ffffff;
  border: none;
  padding: 0.1em 0.6em;
  outline: none;
  text-align: center;
  font-size: 0.9em;
  margin: 0 0.2em;
  padding: 0.75em;
}

.share-btn:focus,
.share-btn:hover {
  text-decoration: none;
  opacity: 0.8;
}

.share-btn:active   { color: #e2e2e2; }

.share-btn.twitter  { background: #55acee; }
.share-btn.facebook { background: #3B5998; }
.share-btn.linkedin { background: #4875B4; }
