:root {
  --color-grey10: #D2D2D2;
  --color-grey30: #494949;
  --color-grey50: #101010;
  --color-pink: #FF347D;
  --color-red: #FF4646;
  --color-teal: #2AE9A6;
}

@font-face {
  font-family: 'Satoshi-Regular';
  src: url('../fonts/Satoshi-Regular.woff2') format('woff2'),
      url('../fonts/Satoshi-Regular.woff') format('woff'),
      url('../fonts/Satoshi-Regular.ttf') format('truetype');
      font-weight: 400;
      font-display: swap;
      font-style: normal;
}

@font-face {
  font-family: 'Satoshi-Bold';
  src: url('../fonts/Satoshi-Bold.woff2') format('woff2'),
      url('../fonts/Satoshi-Bold.woff') format('woff'),
      url('../fonts/Satoshi-Bold.ttf') format('truetype');
      font-weight: 700;
      font-display: swap;
      font-style: normal;
}

html,
body {
  background: #000;
  color: #fff;
  font-family: "Satoshi-Regular", sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

body.site {
  display: grid;
  grid-template:
      ". header ." 70px
      ". content ." auto / 30px auto 30px;
  grid-row-gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  padding-top: 30px;
  width: 100%;
}

h1 {
  font-family: "Satoshi-Bold", sans-serif;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.75px;
}

h2 {
  font-family: "Satoshi-Bold", sans-serif;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.5px;
}

h3 {
  font-family: "Satoshi-Bold", sans-serif;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.5px;
}

h4 {
  font-family: "Satoshi-Bold", sans-serif;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.5px;
}

a {
  color: inherit;
  text-decoration: none;
}

p, span, label, input, li {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.25px;
  margin: 0;
}

p.p-padding {
  padding-bottom: 20px;
}

.font-mono {
  font-family: Menlo, monospace;
  font-size: 15px;
}

body.site main {
  grid-area: content;
}

.content-container {
  background-color: var(--color-grey50);
  border-radius: 12px;
  margin-bottom: 30px;
  padding: 30px 50px;
}

.note {
  color: var(--color-grey30);
  padding-bottom: 20px;
}

.mobile-hide {
  display: table-cell;
}

/* Buttons */

button {
  all: unset;
}

.button {
  align-items: center;
  border: none;
  border-radius: 28px;
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.25px;
  justify-content: center;
  padding: 10px 24px;
  text-decoration: none;
  transition: all 120ms ease-out;
}

.primary-button {
  background: #ffffff;
  color: #000000;
}

.secondary-button {
  background: #000000;
  color: #ffffff;
  font-size: 14px;
}

.danger-button {
  background: var(--color-red);
  color: #ffffff;
}

.cta-button {
  background: var(--color-pink);
  color: #ffffff;
}

.save-button {
  margin: 50px 0px 20px 0px;
}

.table-button {
  margin-bottom: 5px;
}

.small-button {
  font-size: 14px;
  padding: 6px 20px;
}

.button-margin {
  margin-left: 10px;
}

.button-height {
  max-height: 20px;
}

/* Forms */

.success {
  background-color: var(--color-teal);
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 10px;
}

.error {
  background-color: var(--color-red);
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 10px;
}

input[type=text],
input[type=password],
input[type=datetime-local],
input[type=date],
input[type=number],
textarea,
select {
  all: unset;
  border-radius: 4px;
  border: 1px solid var(--color-grey30);
  padding: 5px 10px;
  background-color: var(--color-grey50);
  color: #ffffff;
}

::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.data-form input[type=date],
.data-form input[type=datetime-local] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23494949' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 5px;
  padding: 7px 10px;
}

.inline-form {
  padding-top: 30px;
}

.divider {
  background-color: var(--color-grey30);
  height: 2px;
  margin-top: 30px;
  width: 100%;
}

.data-form .form-row {
  margin-bottom: 10px;
}

.data-form label {
  display: inline-block;
  width: 150px;
}

.data-form .form-check label {
  width: 400px;
}

.data-form .form-check input[type=number] {
  margin: 0px 3px 5px 3px;
  width: 60px;
}

.form-check-input {
  margin: 0 10px 10px 0;
}

.data-form input[type=text],
.data-form textarea {
  width: 400px;
  color: #ffffff
}

.multi-form .save-button{
  margin: 10px 0px 20px 0px;
}

.trending-options {
  margin-top: 40px;
}

/* Tables */

table {
  border-spacing: 0;
  text-align: left;
  width: 100%;
}

table.bordered th, table.bordered td {
  padding: 5px 20px 5px 0px;
  border-bottom: 1px solid var(--color-grey30);
}

/* Nav */

nav {
  align-items: center;
  display: flex;
  grid-area: header;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
}

nav ul li {
  margin: 0 10px 0 0;
}

nav div {
  display: none;
}

nav a {
  opacity: 0.8;
}

nav a:hover {
  opacity: 1;
  transition: 0.5s opacity linear;
}

nav .logout {
  margin-left: 20px;
  color: var(--color-grey10);
}

.mobile-nav {
  display: none;
}

.desktop-nav {
  display: block;
}

/* Login */

.login-container {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
}

.login {
  text-align: center;
}

.login-button {
  min-width: 200px;
}

.login table {
  margin: 0 auto;
}

.login-container input[type=text],
.login-container input[type=password] {
  margin-bottom: 10px;
  min-width: 260px;
  text-align: left;
}

.login-container table {
  text-align: center;
}

.errors {
  color: var(--color-red);
  padding-top: 20px;
}

/* News */

.news-story {
  display: grid;
  grid-template:
      "news-img news-meta news-action" 113px / 200px auto 30px;
  margin-bottom: 20px;
  grid-column-gap: 30px;
}

.news-story img {
  grid-area: news-img;
}

.news-story .title {
  grid-area: news-meta;
}

.news-story .news-checkbox {
  grid-area: news-action;
}

.news-story img,
.game img {
  border-radius: 12px;
  border: 1px solid var(--color-grey30);
  margin-bottom: 5px;
}

/* Notifications */

.create-notification {
  padding-top: 50px;
}

.notifications table {
  text-align: left;
}

.search-select {
  width: 400px;
}

.search-disabled {
  opacity: 0.5;
}

.hidden {
  display: none !important;
}

/* Games */

.added-game {
  margin-bottom: 5px;
}

.added-game span {
  display: inline-block;
  width: 500px;
}

/* Subscriptions */

.subscriptions-nav {
  display: flex;
  justify-content: space-between;
}

.subscriptions-menu {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.subscriptions-menu li {
  margin-right: 10px;
}

.subscriptions-menu a {
  display: inline-block;
  height: 25px;
}

.subscriptions-menu a.active {
  border-bottom: 2px solid var(--color-teal);
}

.select-platforms {
  width: 250px;
}

/* Highlighted games */

.highlighted-game {
  padding-bottom: 5px;
}

.highlighted-game-last {
  border-bottom: 1px solid var(--color-pink);
  padding-bottom: 15px;
}

.highlighted-game h4 {
  font-size: 16px;
  display: inline-block;
  margin: 0 5px 0 0;
}

.highlighted-game span {
  color: var(--color-grey10);
  font-size: 14px;
}

/* Choose screenshot */

#screenshots div {
  display: inline-block;
  margin: 20px;
  text-align: center;
  width: 200px;
}

#screenshots a {
  display: block;
}

#screenshots img {
  border: 1px solid var(--color-teal);
  width: 200px;
}

/* Spinner - https://loading.io/css/ */

.lds-ring {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  margin: 2px;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  body.site {
    grid-template:
        ". header ." 50px
        ". content ." auto / 10px auto 10px;
      grid-row-gap: 10px;
  }

  nav ul {
    display: none;
  }

  nav div {
    display: block;
  }

  nav .logout {
    margin-left: 0;
  }

  nav li {
    font-size: 12px;
  }

  .mobile-nav {
    display: block;
    width: calc(100% - 20px);
  }

  .desktop-nav {
    display: none;
  }

  .logo {
    width: 50px;
  }

  .content-container {
    padding: 30px 15px;
  }

  .news-story img, .game img {
    width: 80px;
  }

  .news-story {
    display: grid;
    grid-template: "news-img news-meta news-action" 50px / 80px auto 30px;
    margin-bottom: 20px;
    grid-column-gap: 10px;
    overflow: hidden;
  }

  .news-story p {
    font-size: 12px;
  }

  .news-story p.date {
    display: none;
  }

  .inline-form {
    padding-top: 10px;
  }

  .mobile-hide {
    display: none;
  }

  .data-form label {
    display: block;
    padding-bottom: 5px;
  }

  .data-form input[type=text],
  .data-form input[type=select],
  .data-form textarea,
  .search-select,
  .select-platforms,
  #timezone {
    width: calc(100% - 20px);
  }

  .button-margin {
    margin-left: 0px;
    margin-top: 5px;
  }

  .added-game span {
    display: inline-block;
    padding-right: 20%;
    width: 50%;
  }

  .data-form input[type=date],
  .data-form input[type=datetime-local] {
    -webkit-min-logical-width: calc(100% - 20px);
  }

  .actions {
    text-align: right;
  }

  .lds-ring {
    margin-top: 5px;
  }
}