:root {
  --draft-pick-color: #29e529;
  --draft-previous-color: #e5e529;
  --draft-suggested-color: #c683f2;
  --draft-future-color: #ef7e58;
}

html,
body {
  background-color: #292929;
  height: 100%;
  overflow: hidden;
}

/* This site follows the type scale of base font size 15px and a ratio of 1.333.
 * https://type-scale.com/?size=15&scale=1.333&text=17%20Lands%20type%20scale&font=Lato&fontweight=400&bodyfont=body_font_default&bodyfontweight=400&lineheight=1.75&backgroundcolor=%23292929&fontcolor=%23e5e5e5&preview=false
 *
 * This means mostly using these rem sizes for fonts:
 * 0.75, 1, 1.333, 1.777, 3.157 and 4.209
 *
*/

html {
  font-size: 15px;
}

body {
  font-size: 1rem;
}

#app {
  height: 100%;
}

details summary > * {
  display: inline;
  vertical-align: middle;
}

/*
.modal {
    top: auto;
    left: auto;
    height: auto;
}
*/

@media (max-width: 640px) {
  .blog-post {
    margin: 10px !important;
    padding: 10px !important;
    width: fit-content !important;
  }
}

.main-text {
  color: #e5e5e5;
}
.wide-container {
  color: #e5e5e5;
}
.tier-container {
  margin-left: 35px;
  margin-right: 35px;
}
.about_image {
  border-style: solid;
  width: 100%;
  border-width: 2px;
  border-radius: 2px;
  border-color: #e9ecef;
  margin-bottom: 3px;
}
.getting-started-image {
  max-width: 600px;
  width: 100%;
}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2px;
  margin-bottom: 2px;
}
.text-anchor-middle {
  text-anchor: middle;
}
.mtg-bg-w {
  background-color: #f0f2c0;
}
.mtg-bg-u {
  background-color: #b5cde3;
}
.mtg-bg-b {
  background-color: #aca29a;
}
.mtg-bg-r {
  background-color: #db8664;
}
.mtg-bg-g {
  background-color: #93b483;
}
.mtg-fg-w {
  color: #fae9ba;
}
.mtg-fg-u {
  color: #0e68ab;
}
.mtg-fg-b {
  color: #160b00;
}
.mtg-fg-r {
  color: #d3202a;
}
.mtg-fg-g {
  color: #00733e;
}
.mtg-fg-z {
  color: #fcf4df;
}
.mana-splash {
  font-size: 1.5em;
  vertical-align: -3px;
}
.mtg-splash-fg-w {
  color: #f0f2c0;
}
.mtg-splash-fg-u {
  color: #b5cde3;
}
.mtg-splash-fg-b {
  color: #7f7976;
}
.mtg-splash-fg-r {
  color: #db8664;
}
.mtg-splash-fg-g {
  color: #93b483;
}
.trophy {
  color: #fad671;
}
.under {
  width: 149px;
  height: 26px;
  object-fit: cover;
  object-position: top;
}
.over {
  width: 149px;
  height: 208px;
  object-position: top;
}
.ui.accordion .title:not(.ui) {
  color: #e5e5e5;
}

.pick {
  z-index: 1;
  outline: 2px solid var(--draft-pick-color);
}
.suggested {
  z-index: 1;
  outline: 2px solid var(--draft-suggested-color);
}
.future {
  z-index: 1;
  outline: 2px solid var(--draft-future-color);
}
h2 {
  font-size: 1.777rem;
  margin-block-start: 0.2em;
  margin-block-end: 0.2em;
}
h3 {
  margin-block-start: 0.2em;
  margin-block-end: 0.2em;
}
h4 {
  margin-block-start: 0.2em;
  margin-block-end: 0.2em;
}
.alert.fitted {
  width: fit-content;
}
.ui.accordion .title:not(.ui) {
  color: #e5e5e5;
}
.ui.buttons:after {
  margin-right: 3px;
}
.card-body {
  background-color: #292929;
  color: #e5e5e5;
}
.accordion.installer {
  max-width: 900px;
}
div.user-filter {
  align-items: center;
  margin: 0.75rem 0px;
}

.date-picker-container {
  display: flex;
  align-items: center;
}
.date-picker-container > .react-datepicker-wrapper {
  width: 110px;
}
.react-datepicker__tab-loop > .react-datepicker-popper {
  z-index: 10;
}
.table.color-performance {
  max-width: 500px;
}
.DateRangePicker {
  z-index: 2;
}

.ui.checkbox.card-performance-checkbox label {
  padding-left: 20px;
}
.card-performance-checkbox {
  margin-left: 11px;
}
.performance-chart-label {
  font-size: 0.75rem;
}
.list_card {
  display: flex;
}
.list_card_name {
  flex: 1;
}
a.list_card_name {
  color: white;
  text-decoration: underline;
}
div.embedded_card_tiers_wrapper {
  margin: 3px;
}
div.tier-grid {
  display: grid;
  flex-direction: column;
}
div.tier-column-header {
  grid-row: 1;
  text-align: center;
}

div.tiers-input {
  display: flex;
  flex-direction: horizontal;
  align-items: baseline;
}
.tiers-name {
  flex: 1;
  max-width: 30em;
  margin-left: 4px;
  margin-right: 4px;
}

.tier_card_preview {
  position: relative;
}
.tier_card_preview div.card_preview {
  display: none;
}
.tier_card_preview:hover div.card_preview {
  z-index: 10;
  display: inline;
  position: absolute;
  border-style: solid;
  border-width: 4px;
  border-radius: 8px;
  border-color: #e5e5e5;
  background-color: #292929;
  padding: 0.3em;
}

.tier_card_preview:hover div.left {
  left: 20px;
}
.tier_card_preview:hover div.right {
  right: 20px;
}
.tier_card_preview:hover div.top {
  top: 46px;
}
.tier_card_preview:hover div.mid {
  top: -240px;
}
.tier_card_preview:hover div.bottom {
  bottom: 46px;
}

.tier_card {
  border-left: 3px solid;
  border-radius: 2px;
  background-color: #eeeeee;
  color: black;
  margin-bottom: 0.25rem;
  cursor: move;
  float: left;
  display: flex;
}
.tier_card.dragging {
  opacity: 0.4;
}
.tier_card_name {
  flex: 1;
}
.tier_card_comment {
  color: #eeeeee;
  padding: 0.3em;
}

.tier_card.rarity_M {
  border-color: #da2d00;
}
.tier_card.rarity_R {
  border-color: #beaa00;
}
.tier_card.rarity_U {
  border-color: #b7b7b7;
}
.tier_card.rarity_C {
  border-color: black;
}
.tier_card.filtered_out {
  background-color: #666666;
}

.tier_bucket {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  background-color: #454545;
  padding: 0.5rem;
  text-align: center;
  line-height: normal;
  float: left;
  display: flex;
  flex-direction: column;
}
.tier_bucket.CFB.W {
  background-color: #d3d4cb;
}
.tier_bucket.CFB.U {
  background-color: #9dafbf;
}
.tier_bucket.CFB.B {
  background-color: #828282;
}
.tier_bucket.CFB.R {
  background-color: #bfa79d;
}
.tier_bucket.CFB.G {
  background-color: #a8bf9d;
}
.tier_bucket.CFB.M {
  background-color: #bfbf9d;
}
.tier_bucket.CFB.C {
  background-color: #b09dbf;
}
.tier_bucket.CFB.L {
  background-color: #bfaf9d;
}
.tier_bucket.active {
  background-color: darkgreen;
}
.tier_bucket.droppable {
  background-color: darkkhaki;
}

.modal_comment {
  width: fit-content;
  max-width: 100%;
}
.modal-content {
  width: fit-content;
}
.modal_comment form {
  margin-top: 10px;
}
.tier_comparison_card {
  display: flex;
}
.tier_comparison_card_name {
  flex: 1;
}
.tiers-url {
  flex: 1;
  margin-left: 4px;
  margin-right: 4px;
}
.tier_text {
  font-size: 1rem;
}
.embedded_tiers_context {
  margin-bottom: 0.5rem;
  text-align: center;
}

.right-pad {
  margin-right: 4px;
}

.color-summary {
  background-color: #888888;
}

/* Blogs */

.blog-post {
  background-color: #f0f0f0;
  color: black;
  max-width: 800px;
  margin: 30px auto;
  padding: 15px 20px;
}

.blog-post p {
  line-height: 1.55em;
}

.scrollable-blog-table {
  height: 250px;
  overflow-y: scroll;
}
.scrollable-xy-blog-table {
  max-height: 350px;
  max-width: 100%;
  overflow-y: scroll;
  overflow-x: scroll;
  margin: 12px 0 20px 0;
}
.blog-plot {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 350px;
}
.blog-plot-title {
  margin-left: 60px;
  text-align: center;
}
.blog-plot-wide {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 450px;
}
.custom-tooltip-wrapper {
  margin: 0px;
  padding: 3px;
  background-color: white;
  color: black;
  border: 1px solid #454545;
  border-radius: 2px;
  white-space: nowrap;
}
.top-legend {
  margin-right: 60px;
}
.blog-table-small {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 400px;
  margin-bottom: 10px;
}
.blog-draft-layout {
  min-width: 50%;
  max-width: 100%;
  width: 450px;
  border: 2px solid #d0d0d0;
}
@media (min-width: 725px) {
  .blog-draft-layout:hover {
    transform: scale(1.5);
  }
}
.blog-figure-small {
  max-width: 100%;
  width: 200px;
}
.blog-figure-wide {
  min-width: 50%;
  max-width: 100%;
  width: 750px;
  border: 2px solid #d0d0d0;
}
@media (min-width: 1250px) {
  .blog-figure-wide:hover {
    transform: scale(1.5);
  }
}
.blog-figure-caption {
  text-align: center;
  margin-bottom: 1em;
}
.table-division-bottom {
  border-bottom: 1px solid #d0d0d0;
}
img.blog-llu-mana {
  max-width: 550px;
}
@media (max-width: 611px) {
  img.blog-llu-mana {
    max-width: 90%;
  }
}

.blog-manabase-evaluator-state {
  margin-left: 12px;
  margin-bottom: 6px;
  padding: 6px;
  border-left: 2px solid #888888;
}
.blog-manabase-evaluator-state p {
  padding: 0px;
  margin: 0px;
}
.blog-manabase-evaluator-card-list {
  margin-bottom: 6px;
  min-width: 100px;
  max-width: 100%;
  width: 150px;
  border: 2px solid #d0d0d0;
}
.blog-manabase-evaluator-card-list:hover {
  transform: scale(2);
}

.tier_card_long_form {
  max-width: 300px;
  border-style: solid;
  border-width: 0px;
  border-radius: 10px;
  background-color: #292929;
}
.set_review_text {
  padding-top: 10px;
}
.set_review_card_name {
  padding-top: 16px;
}
.grade_header {
  background-color: #f0f0f0;
}
.ui.checkbox label {
  color: #f0f0f0 !important;
}
.chart-symbol-wrapper {
  width: 32px;
  height: 32px;
}

.inventory-area {
  float: right;
  margin-top: 6px;
  color: #aaa;
}
.inventory-toggle {
  margin-left: 20px;
}
.packs-needed-popup {
  padding-left: 20px;
  margin-bottom: 0px;
}

div::-webkit-scrollbar-thumb {
  background-color: #e2e3e5;
}
.ui.table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #202020 !important;
}
.ui.table thead th {
  color: white;
}

.scrolling-table {
  width: 100%;
  height: 100vh;
  overflow: auto;
}

.ui-chart-tooltip {
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  width: 350px;
}
.ui-chart-tooltip-content {
  box-shadow:
    0 19px 38px rgba(0, 0, 0, 0.3),
    0 15px 12px rgba(0, 0, 0, 0.72);
  background-color: #292929;
  opacity: 0.65;
  padding: 5px 5px;
}
img.draft_metagame_card {
  width: 340px;
  height: 480px;
}

.error-container {
  padding: 20px;
}
.error-message {
  width: 1000px;
  height: 400px;
  resize: none;
}

div.draft_card_space {
  width: 149px;
  height: 208px;
}

.keyboard-hint {
  margin: 0px 10px;
}

div.compact-selection-row {
  display: flex;
  width: fit-content;
  align-items: baseline;
}

div[data-mid] {
  z-index: 100;
}

@media (max-width: 425px) {
  h2 {
    font-size: 1.333rem;
  }
  body {
    font-size: 1rem;
  }
  .container {
    padding-left: 0px;
    padding-right: 0px;
  }
  .ui.table thead th {
    padding: 5px;
  }
  .blog-post {
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
  }
  .form-control {
    font-size: 0.75rem;
    padding: 0.15rem;
  }
  .ui.checkbox.card-performance-checkbox label {
    font-size: 0.75em;
    padding-left: 20px;
  }
  .card-performance-checkbox {
    margin-left: 6px;
  }
  .keyboard-hint {
    display: none;
  }
}

@media (max-width: 1000px) {
  .tier_text {
    font-size: 0.8rem;
  }
}
@media (max-width: 800px) {
  .tier_text {
    font-size: 0.7rem;
  }
}
@media (max-width: 700px) {
  .tier_text {
    font-size: 0.6rem;
  }
  .tier_bucket {
    margin-right: 0.1rem;
    margin-bottom: 0.1rem;
    padding: 0.1rem;
  }
}
@media (max-width: 600px) {
  .tier_text {
    font-size: 0.5rem;
  }
  .tier_card {
    border-left: 0px;
    border-radius: 1px;
    margin-bottom: 0.1rem;
    margin-right: 0.04rem;
    margin-bottom: 0.04rem;
  }
}
@media (max-width: 400px) {
  .tier_text {
    font-size: 0.35rem;
  }
}

.bar-wrapper {
  display: flex;
  align-items: center;
}
.segmented-bar-wrapper {
  display: flex;
  align-items: center;
  margin: 15px 10px;
}
.segmented-bar {
  display: flex;
  border-radius: 5px;
  flex: 1;
  margin-bottom: 2px;
}
.segmented-bar-label {
  width: 50px;
}
.bar-segment {
  padding: 5px 10px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  position: relative;
  border: 4px solid transparent;
  outline: 1px solid black;
  margin-right: 1px;
  background: #ababab;
  color: black;
}
.bar-segment.opponent-turn {
  background: #565656;
  color: #b9b9b9;
}
.bar-segment.active {
  border-color: white;
}
.bar-segment:hover:not(.disabled) {
  filter: brightness(0.85);
}
.bar-segment.disabled {
  background: #7a7a7a;
  color: #9d9d9d;
  cursor: not-allowed;
}
.turn-item {
  width: 50px;
  max-width: 50px;
}
.turn-item.mulligan {
  width: 90px;
  max-width: initial;
}
.phase-item {
  width: 150px;
}
.replay-navigator {
  user-select: none;
  -webkit-user-select: none;
  margin-top: 20px;
}
.replay-navigator-inner {
  flex: 1;
}
.replay-navigator-bar-container {
  display: flex;
}
.replay-navigator-bar {
  width: 100%;
  height: 70px;
  background: #444444;
  border-left: 2px solid #7e7e7e;
  border-right: 2px solid #7e7e7e;
  position: relative;
  cursor: grab;
}
.replay-navigator-bar-segment {
  position: absolute;
  height: 100%;
  border-top: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
}
.replay-navigator-bar-segment.dark {
  background: #303030;
}
.replay-navigator-bar-segment.light {
}
.replay-navigator-bar.dragging {
  cursor: grabbing;
}
.replay-navigator-needle {
  height: 100%;
  width: 3px;
  background: red;
  position: absolute;
  transform: translateX(-50%);
}
.turn-labels-container {
  position: relative;
  height: 20px;
  display: flex;
  flex-flow: row;
}
.turn-label {
  position: absolute;
  transform: translateX(-50%);
}
.auto-advance-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.auto-advance-play-button.ui.button {
  margin-bottom: 10px;
}
