:root {
  --sidebar-width: 250px;
  --sidebar-bg-color: #292841;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #f9fcfd;
  color: #444;
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;
}

section {
  padding: 0 0 2rem;
  text-align: center;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: 'Bungee', sans-serif;
  color: var(--sidebar-bg-color);
}

h1,
h2 {
  margin: 0 auto 1rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
}

a {
  text-decoration: none;
  color: var(--sidebar-bg-color);
}

.pane {
  height: 100vh;
  padding: 2rem;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--sidebar-width);
  padding: 3rem 0 0;
  overflow-y: auto;
  background-color: var(--sidebar-bg-color);
  color: #fff;
}

.sidebar a,
.sidebar .btn {
  color: #fff;
}

.sidebar header a {
  text-decoration: none;
}

.amazon {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.5rem 1rem;
  margin: 1.5rem 1rem 1rem;
  background-color: #fff;
}

.amazon img {
  height: 180px;
}

.amazon .btn {
  margin: 0.5rem 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.amazon .btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.amazon p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1;
  color: #999;
}

header,
footer {
  text-align: center;
}

footer {
  padding: 1rem 0;
  background-color: var(--sidebar-bg-color);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

a {
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.menu-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 1.5rem 1rem 1rem;
  background-color: #9a6bd8;
  text-align: center;
}

.menu-item p {
  font-size: 0.8rem;
}

.menu-item .btn {
  min-width: 125px;
  margin: 1rem 0 0;
}

#more {
  display: none;
}

.game-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

.tagline {
  font-weight: 400;
  font-style: italic;
}

.logo {
  margin: 0 auto 1rem;
  width: 80px;
  max-width: 100%;
  text-align: center;
}

.title {
  width: 200px;
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 0 2rem;
}

.main {
  width: calc(100vw - var(--sidebar-width));
  overflow: auto;
}

.container {
  width: 100%;
  height: 100%;
  text-align: center;
}

.row {
  display: flex;
  padding: 4rem 0;
}

.col {
  width: 25%;
}

.tout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tout .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--sidebar-bg-color);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
}

.tout h2 {
  margin: 1rem 0 0;
}

.tout p {
  margin-top: 0.5rem;
}

.list-games {
  width: 1000px;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.list-games.center {
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: bold;
  outline: none;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
}

.btn i:not(:last-child) {
  margin-right: 0.5rem;
}

.btn-large,
.btn-xlarge {
  display: inline flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  padding: 2rem;
  margin: 0;
  background-color: #5765f2;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.btn-large:hover,
.btn-xlarge:hover {
  background-color: #4751c4;
  color: #fff;
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.3);
}

.btn-large {
  width: calc(25% - 9px);
}

.btn-xlarge {
  width: calc(50% - 6px);
  align-items: center;
  align-self: stretch
}

#table {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  overflow: hidden;
}

#addPlayer {
  display: inline-block;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.4);
  font-size: 1.5rem;
  line-height: 1;
}

#addPlayer:hover {
  color: inherit;
}

.handsontable {
  font-size: 16px;
}

.handsontable th,
.handsontable td {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.handsontable th,
.handsontable tbody th.ht__highlight {
  background-color: #ecf1f5;
}

.handsontable .htDimmed {
  background-color: #ecf1f5;
  color: inherit;
}

.handsontable .playerName,
.handsontable .score,
.handsontable .rowHeader {
  line-height: 1.2;
}

.handsontable .playerName {
  padding: 0 1rem;
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

.handsontable .htPlaceholder {
  color: #ccc;
}

.handsontable .score {
  color: #000;
  font-size: 24px;
  font-weight: bold;
}

dialog {
  position: relative;
  min-width: 200px;
  min-height: 200px;
  padding: 0;
  background-color: var(--sidebar-bg-color);
  border: none;
  outline: none;
}

.dialog[open] {
  display: inline-block;
}

dialog .dialog-body {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem 2rem;
  text-align: center;
}

dialog .btn {
  width: 100%;
  margin: 0.5rem 0;
}

::backdrop {
  background-color: rgba(0, 0, 0, .8);
  opacity: 0.75;
}

.fa::before {font-family:FontAwesome;}

.fa {
    position: relative;
    text-rendering: optimizeLegibility;
}

@media (max-width: 1200px) {
  .btn-large,
  .btn-xlarge {
    padding: 2rem 1rem;
    font-size: 1rem;
  }

  .btn-large {
    width: calc(33.3333% - 16px);
  }

  .btn-xlarge {
    width: 100%;
  }
}
    @media (max-width: 800px) {
      .main {
        height: auto;
        padding: 2rem 1rem 0;
      }

      h1 {
        font-size: 1.4rem;
      }

      h2 {
        font-size: 1rem;
      }

      section {
        padding-bottom: 1rem;
      }

      section.screenshot {
        padding: 0;
      }

      section.games {
        margin: 0 -1rem;
        padding: 2rem 1rem;
      }

      .list-games {
        padding: 0;
        text-align: center;
      }

      .btn-large {
        width: calc(50% - 12px);
        font-size: 1rem;
      }
    }


    @media (max-width: 600px) {
      .btn-large {
        width: 100%;
      }
    }

@media (max-width: 1000px) {

  :root {
    --sidebar-width: 200px;
  }

  .sidebar {
    padding-top: 0;
  }

  .main {
    padding: 1rem;
  }

  header {
    margin-bottom: 1rem;
  }

  footer {
    margin-top: 0;
  }

  .row {
    flex-wrap: wrap;
  }

  .col {
    width: 50%;
  }

  .logo {
    width: 60px;
    padding-top: 1rem;
  }

  .menu-item {
    padding: 1rem 0.5rem;
  }

  .game-title {
    font-size: 1rem;
  }

  .handsontable {
    font-size: 14px;
  }

  .handsontable .playerName {
    padding: 0 1rem;
    font-size: 14px;
  }

  .handsontable .score {
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  body {
    min-height: 0;
    flex-direction: column;
  }

  .pane {
    width: 100vw;
    height: auto;
    padding: 1rem;
  }

  .sidebar {
    position: fixed;
    display: flex;
    height: 70px;
    padding: 0.5rem;
    z-index: 1000;
  }

  .main {
    margin-top: 70px;
  }

  .handsontable .playerName {
    padding: 0 0.2rem;
  }

  .row {
    flex-direction: column;
  }

  .col {
    width: 100%;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
  }

  .title {
    width: 140px;
    padding: 0;
    margin: 0;
    vertical-align: 16px;
  }

  .sidebar.game .title {
    display: none;
  }

  .logo {
    padding-top: 0;
    margin-bottom: 0;
    width: 50px;
  }

  .menu-item {
    display: flex;
    width: auto;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    margin: 0.5rem;
  }

  footer,
  .tagline,
  .amazon,
  .actions,
  .sidebar .all-games {
    display: none;
  }

  #more {
    display: inline-block;
    margin: 0 0 0 0.5rem;
  }
}
