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

.app-toolbar {
  background-color: var(--primary-bg-color);
  color: var(--primary-fg-color);
  --icon-color: #fff;
}

.app-toolbar-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.bg-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  opacity: 1;
  top: 0;
  left: 0;
  --animation-duration: 400ms;
  --animation-timing: cubic-bezier(0.24, 1.5, 1, 1);
  position: fixed;
}

.bg-overlay--fade-in {
  animation: bg-overlay-in-animation var(--animation-duration)
    var(--animation-timing) forwards;
}

.bg-overlay--fade-out {
  animation: bg-overlay-out-animation var(--animation-duration)
    var(--animation-timing) forwards;
}

@keyframes bg-overlay-in-animation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bg-overlay-out-animation {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.bottom-nav {
  bottom: 0;
  position: fixed;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);
}

.bottom-nav__element {
  color: var(--secondary-fg-color);
  padding: 8px;
  text-decoration: none;
}

.bottom-nav__content {
  display: flex;
  justify-content: space-between;
  text-align: center;
  text-transform: uppercase;
  font-size: var(--font-x-small);
  align-items: center;
  margin: 0 8px;
}

.bottom-nav__element--active {
  color: var(--secondary-btn-color);
}

.bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  --animation-duration: 300ms;
  --animation-timing: ease-out;
  --icon-color: #fff;
}

.bottom-sheet--active {
  pointer-events: auto;
}

.bottom-sheet-container {
  position: absolute;
  width: 100%;
  max-height: 80%;
  box-shadow: 2px 0px 14px 0px rgba(0, 0, 0, 0.5);
  background-color: #fff;
  margin: auto;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
}

.bottom-sheet-content {
  overflow-y: auto;
  flex-grow: 1;
}

.bottom-sheet-header {
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
}

.bottom-sheet-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.bottom-sheet-container--swipe-in {
  animation: bottom-sheet-swipe-in-animation var(--animation-duration)
    var(--animation-timing) forwards;
}

.bottom-sheet-container--swipe-out {
  animation: bottom-sheet-swipe-out-animation var(--animation-duration)
    var(--animation-timing) forwards;
}

@keyframes bottom-sheet-swipe-in-animation {
  from {
    transform: translateY(104%);
  }
  to {
    transform: translateY(0%);
  }
}

@keyframes bottom-sheet-swipe-out-animation {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(104%);
  }
}

@keyframes bottom-sheet-fade-in-animation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bottom-sheet-fade-out-animation {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.button-group {
  display: flex;
  flex-direction: row;
}

/* TODO(fixme): Breaks encapsulation */
.button-group .btn {
  flex: 1 0 0;
  margin-right: 8px;
  min-width: 0;
}

.button-group .btn:last-child {
  margin-right: 0;
}

.btn {
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: 0;
  cursor: pointer;
  height: 28px;
  margin: 0;
  padding: 0 15px;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--font-small);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn:focus {
  outline: none;
}

.btn--flat {
  --color: var(--primary-btn-color);
  color: var(--primary-btn-color);
  background: none;
  text-align: center;
  min-width: 88px;
  padding: 10px 8px;
  height: auto;
}

.btn--round {
  border-radius: 50%;
  padding: 0;
  border: 1px solid;
  width: 30px;
  height: 30px;
}

.btn--large {
  height: var(--large-button-height);
}

.btn--icon {
  height: var(--button-height);
  width: var(--button-height);
  display: flex;
  color: inherit;
  border: 0;
  padding: 0;
  margin: 0;
  background-color: transparent;
  justify-content: center;
  align-items: center;
}

.btn--raised {
  min-width: 88px;
  color: var(--primary-fg-color);
  background-color: var(--primary-btn-color);
}

.btn--disable {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--white {
  background: #fff;
  color: var(--primary-btn-color);
}

.btn--orange {
  color: #ffffff;
  border-color: #f6a623;
  background: #f6a623;
}

.btn--blue {
  color: #ffffff;
  border-color: #4990e2;
  background: #4990e2;
}

.btn--text-grey {
  color: #888;
  border-color: #888;
}

.btn--bordered {
  border: 1px solid var(--color);
  --color: var(--primary-btn-color);
  color: var(--primary-btn-color);
  background: none;
  text-align: center;
  min-width: 88px;
}

.btn--green {
  color: #ffffff;
  border-color: #2db23e;
  background: #2db23e;
}

.btn--thin {
  padding: 0;
  min-width: 0;
}

.btn--small {
  min-width: 60px;
  height: 25px;
}

.btn--bordered--white {
  border-color: #ffffff;
}

.text-color--white {
  color: #ffffff;
}

.btn--background--white {
  background-color: #ffffff;
}

.btn--grey-bordered {
  border-color: #d6d6d6;
}

.new-button:focus {
  outline: none;
}

.check-box--selected {
  color: #3b5998;
}

.check-box--unselected {
  color: #d6d6d6;
}

.choose-team {
  padding: 105px 0 55px 0;
}

.choose-team__title {
  text-align: center;
  padding: 8px 0;
}

.choose-team__footer {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  background-color: var(--primary-btn-color);
  bottom: 0;
  padding: 8px;
  position: fixed;
  width: 100%;
}

.contest-code-dialog__content {
  color: #7b7a7a;
}

@keyframes contest-footer-animate-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0%);
  }
}

.contest-joiner__create-team-confirmation-content {
  color: #7b7a7a;
}

.contest-card__in-progress {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin: 8px;
  text-decoration: none;
  color: var(--color);
  display: block;
}

.contest-card__in-progress__row-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

.contest-card__in-progress__team-info-footer {
  background: #ebf0fc;
}

.contest-card__row-item {
  background-color: #ffffff;
  box-shadow: 0 0px 2px 0px rgba(0, 0, 0, 0.2);
}

.contest-card__row-item--selected {
  box-shadow: 5px 2px 20px 1px rgba(0, 0, 0, 0.5);
  margin: 16px 0;
}

.contest-card__row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 8px;
  min-height: 65px;
}

.contest-card__team-winner-column {
  color: #7b7a7a;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: var(--font-small);
}

.contest-card__progressbar {
  background-color: #d6d6d6;
  border-radius: 2px;
  height: 2px;
  margin: 4px 0;
  width: 80%;
}
.contest-card__progressbar-wrapper {
  width: 100%;
  flex-direction: column;
  align-items: center;
  display: flex;
}

.contest-card__progressbar--complete {
  background-image: linear-gradient(to right, #f59e23, #f13535);
  height: 2px;
  animation: contest-card__progressbar--complete--animate-in 300ms linear;
  transform-origin: left;
  max-width: 100%;
}

@keyframes contest-card__progressbar--complete--animate-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.contest-card__team-winner-column__bottom-section {
  align-items: center;
  display: flex;
  color: var(--primary-btn-color);
}

.contest-card__tnc {
  color: #9b9b9b;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.contest-card__tnc--icon {
  align-items: center;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  height: 15px;
  justify-content: center;
  margin: 0 4px 0 0;
  text-align: center;
  width: 15px;
}

.contest-card__win-conf {
  background-color: #68a9c7;
}

.contest-card__multi-entry {
  background-color: #67cba5;
}

.contest-card__tnc-row {
  align-items: center;
  display: flex;
  padding: 8px 0;
  font-size: var(--font-x-small);
}

.contest-card__tnc-row:not(:first-of-type) {
  padding: 0 0 8px;
}

.contest-card__loader {
  display: flex;
  flex-direction: column;
  height: 160px;
  justify-content: center;
  margin: auto;
  width: 30px;
}

.contest-card__winnings-title {
  color: #7b7a7a;
  font-size: var(--font-small);
}

.contest-card__winner-card {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  width: 100%;
}



.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: var(--icon-size); /* Preferred icon size */
  width: var(--icon-size);
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: #fafafa;
  color: var(--color);
  font-family: 'Montserrat', sans-serif, -apple-system, BlinkMacSystemFont,
    “Segoe UI”, Roboto, “Helvetica Neue”, Ubuntu, Arial, sans-serif;
  font-size: var(--font-medium);

  font-weight: 500;
  user-select: none;
}

