  html {
    background-color: #1a1a1e;
    color: #ececed;
    font-family: "Quicksand", sans-serif;
  }

  body {
    margin: 0;
    display: block;
  }

  .container {
    padding: 1rem;
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
    min-height: 90vh;
  }
  .row {
    display: flex;
  }
  .fade-in {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
  }
  .cell {
    background-color: blue;
    border-radius: 0.5rem;
    width: 3.75rem;
    height: 2.5rem;
    margin: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

    .cell-black {
        background-color: #444444;
    }

    .cell-blue {
      background-color: #4455CC;
    }

    .cell-green {
      background-color: green;
    }

    .cell-red {
      background-color: rgb(255, 84, 84);
    }

    @keyframes slideIn {
      to {
          opacity: 1;
          transform: translateX(0);
      }
    }

* { box-sizing: border-box; }

.carousel-cell {
  width: 100%;
  height: 100%;
  min-height: 85vh;
  background-color:#4455CC;
  padding: 1rem 3rem;
}

@media (max-width: 500px)
{
  .carousel-cell {
    max-height: 80vh;
    min-height: 80vh;
  }
}

.carousel-container .flickity-prev-next-button {
  width: 30px;
  height: 30px;
  mix-blend-mode: screen;
}

.carousel-container {
  margin: 0 auto;
  max-width: 500px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

.carousel-container .flickity-page-dot {
  background: rgb(141, 141, 141);
  width: 15px;
  height: 15px;
}

.carousel-container .flickity-page-dot.is-selected {
  background: rgb(246, 246, 246);
}

.carousel-container .flickity-prev-next-button {
  top: 50%;
}

.carousel-container .flickity-viewport {
  cursor: default !important;
}

ul {
  padding-inline-start: 1rem;
}

.carousel-header {
  user-select: none;
  z-index: 1;
  background-color: #1a1a1e;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
}

.carousel-header img {
  background-color: #1a1a1e;
  border-radius: 30px;
  width: 30px;
  height: 30px;
  outline: 2px solid #ececed;
  outline-offset: -1px;
  margin: 0 1rem 0 1rem;
  z-index: 1;
}

.carousel-header img.server {
  z-index: 0;
  margin-left: -32px;
}

a.link-button {
  text-decoration: none;
  color: #ececed;
  padding: 0.6rem 1rem 0.6rem 1rem;
  display: inline;
}

.hover-highlight:hover {
  box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.2);
}

.error-flash {
  background-color: rgb(255, 84, 84);
  width: 100%;
  text-align: center;
}

.error-flash p {
  margin: 0;
  padding: 1rem 0 1rem 0;
}

.profile-header {
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid gray;
}

.avatar {
  display: flex;
}

tr.highlight {
  font-weight: 700;
  border: 1px solid black;
}

tr {
  vertical-align: middle;
}

.table-container {
  overflow-y: auto;
  max-height: 85%;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}

.leaderboard {
  width: 100%;
  padding: 0.5rem 1rem;
}

.leaderboard .avatar {
  background-color: #1a1a1e;
  border-radius: 30px;
  width: 30px;
  height: 30px;
  outline: 2px solid var(--fg);
  outline-offset: -1px;
  margin: 0;
  z-index: 1;
}

.profile-page img {
  background-color: #1a1a1e;
  border-radius: 40px;
  width: 40px;
  height: 40px;
  outline: 2px solid #ececed;
  outline-offset: -1px;
  margin-right: 1rem;
  margin-left: 0.5rem;
}

button.flickity-prev-next-button:disabled {
  display: none;
}

.submenu {
  display: none;
  position: absolute;
  background-color: #1a1a1e;
  z-index: 1;
  margin-top: 38px;
  margin-right: -1rem;
  text-align: center;
  min-width: 120px;
}

.submenu li {
  list-style-type: none;
}

.submenu a, button {
  color:rgb(246, 246, 246);
  width: 100%;
  height: 100%;
  display: block;
  padding: 0.75rem;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.submenu button {
  background-color: #1a1a1e;
  border: 0;
}

.menu {
  text-align: right;
  flex-grow: 1;
  margin-right: 1rem;
  display: flex;
  justify-content: flex-end;
}

.menu svg {
  cursor: pointer;
}

.menu > svg:focus + .submenu, .submenu:hover {
  display: block;
}

.carousel-cell:nth-of-type(4n + 1) { 
  --bg: #4455CC;
  --fg: #ececed;
 }
 .carousel-cell:nth-of-type(4n + 2) { 
  --bg:rgb(148, 245, 201);
  --fg:rgb(128, 2, 80);
 }
 .carousel-cell:nth-of-type(4n + 3) { 
  --bg:rgb(255, 236, 94);
  --fg:rgb(220, 96, 135);
 }
 .carousel-cell:nth-of-type(4n) { 
  --bg:rgb(21, 166, 123);
  --fg: #ececed;
 }

.carousel-cell {
  background-color: var(--bg);
  color: var(--fg);
}

.subtitle {
  margin-top: 0;
  text-align: center;
}

.title {
  text-align: center;
  font-size: 80px;
  margin: 0;
}

.swipeNudge {
  margin-top: 7rem;
  text-align: center;
  font-size: 1.25rem;
}

a.profile-link {
  color: #ececed;
}

.summary-cells {
  display: flex;
  flex-wrap: wrap;
}

.summary-cell {
  min-width: 50%;
  text-align: center;
  margin-top: 10px;
}

.summary-cell-title {
  margin: 0;
  font-size: 32px;
}

.summary-cell-subtitle {
  margin: 0;
}

.bar {
  background-color: var(--fg);
  display: inline-block;
}

.graph-row {
  display: flex;
  margin-bottom: 2px;
}

.graph-text {
  text-align: center;
  width: 5%;
  margin-right: 5px;
  margin-left: 5px;
}

.summary-graph {
  margin: 1rem 1rem 0 1rem;
}
