/*****************************************************************************/
/** GLOBAL **/
/*****************************************************************************/

:root {
  --color-background: #0E0E15;
  --color-secondary: rgba(255, 255, 255, 0.5);
  --color-card: #21212C;
  --color-badge: #2c62f7;
  --color-white: #ffffff;
  --color-google: #376fd7;
  --color-twitch: #9146ff;
}

* {
  box-sizing: border-box;
}

html {
  height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-background);
  color: var(--color-white);
  font-family: "Saira", sans-serif;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

body.privacy {
  overflow: auto;
}

h1 {
  color: var(--color-white);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

h2.subtitle {
  color: var(--color-secondary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 30px 0;
  text-align: center;
}

.d-none {
  display: none;
}

/*****************************************************************************/
/** LINKS **/
/*****************************************************************************/

a,
a:visited {
  text-decoration: none;
}

/*****************************************************************************/
/** HEADER **/
/*****************************************************************************/

#header {
  align-items: center;
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 24px;
}

#logo {
  height: 25px;
}

#show-leaderboard {
  align-items: center;
  background: linear-gradient(315deg, #FF6400 -1.16%, #FF0000 101.16%);
  border-radius: 200px;
  box-shadow: 0px 0px 5.95349px rgba(255, 45, 1, 0.4);
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  padding: 8px 16px;
  text-transform: uppercase;
}

#show-leaderboard img {
  padding-right: 5px;
}

#show-leaderboard span {
  display: inline-block;
}

/*****************************************************************************/
/** MAIN **/
/*****************************************************************************/

#overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1000;
}

.button {
  align-items: center;
  background-color: var(--color-badge);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.07), 0px 8px 20px rgba(0, 0, 0, 0.1);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  justify-content: center;
  margin-bottom: 8px;
  min-width: 298px;
  text-align: center;
  text-transform: uppercase;
}

.button.disabled {
  background: var(--color-background);
  box-shadow: none;
  color: var(--color-secondary);
}

a.privacy:link,
a.privacy:visited,
a.privacy:hover,
a.privacy:active {
  color: var(--color-badge);
  text-decoration: none;
}

/*****************************************************************************/
/** MENU **/
/*****************************************************************************/

.dropdown-wrapper {
  display: flex;
  font-size: 18px;
  justify-content: center;
  margin: 12px 0 40px;
  padding-top: 0px;
  text-align: center;
}

.dropdown-wrapper .list {
  align-items: center;
  background: linear-gradient(315deg, #2C62F7 -1.16%, #841C9D 101.16%);
  border-radius: 4px;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  height: 36px;
  justify-content: space-between;
  margin: 0 8px;
  padding: 0 12px 0 16px;
  position: relative;
  text-transform: uppercase;
}

.dropdown-wrapper svg {
  margin-left: 4px;
}

.dropdown-wrapper .list ul {
  background: linear-gradient(315deg, #2C62F7 -1.16%, #841C9D 101.16%);;
  border-radius: 4px;
  left: 0;
  padding: 0;
  margin: 0;
  position: absolute;
  text-align: left;
  top: 0;
  z-index: 2000;
}

.dropdown-wrapper .list ul .active {
  display: block;
}

.dropdown-wrapper .list li {
  list-style: none;
}

.dropdown-wrapper .listli:first-child a {
  color: var(--color-badge);
}

.dropdown-wrapper .list a {
  color: var(--color-white);
  display: inline-block;
  padding: 6px 16px;
  position: relative;
  transition: all 0.4s;
  width: 100%;
}

.dropdown-wrapper .list a:after {
  background: var(--color-white);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: all 0.4s ease-out;
  width: 0;
}

.dropdown-wrapper .list a:hover {
  color: var(--color-white);
  cursor: pointer;
}

.dropdown-wrapper .list a:hover:after {
  width: 100%;
}

.dropdown-wrapper .placeholder {
  align-items: center;
  display: flex;
  justify-content: center;
}

.dropdown-wrapper .placeholder:hover {
  color: var(--color-white);
}

#genre-dropdown {
  width: 132px;
}

#genre-dropdown ul {
  width: 132px;
}

#platform-dropdown {
  width: 160px;
}

#platform-dropdown ul {
  width: 160px;
}

/*****************************************************************************/
/** GAME **/
/*****************************************************************************/

.gameboard {
  max-width: 1144px;
  margin: 0 auto;
  padding: 20px;
}

#game-board {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#game-board > div {
  width: 46%;
}

.game-meta {
  position: relative;
}

.title {
  font-family: "Saira Condensed", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 26px;
  margin-bottom: 0;
  margin-top: 16px;
  overflow: hidden;
  padding-right: 48px;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.year {
  color: var(--color-secondary);
  font-family: "Saira Condensed", sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
}

.cover {
  border-radius: 8px;
  bottom: -10px;
  box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.1) 0px 6px 12px 0px
    rgba(0, 0, 0, 0.07);
  left: -10px;
  position: absolute;
  width: 100px;
}

.game {
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;
  display: block;
  height: 300px;
  left: 10px;
  position: relative;
  top: -10px;
}

.game-load {
  animation: fade 1s linear;
  -moz-animation: fade 1s linear;
  -o-animation: fade 1s linear;
  -webkit-animation: fade 1s linear;
}

.game-exit {
  animation: fadeOut 1s linear;
  -moz-animation: fadeOut 1s linear;
  -o-animation: fadeOut 1s linear;
  -webkit-animation: fadeOut 1s linear;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

.spinner {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.vote {
  background-color: var(--color-card);
  border-radius: 8px;
  left: 50%;
  opacity: 0;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  transition: visibility 0s, opacity 0.3s linear;
  visibility: hidden;
}

.vote p {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  padding: 14px 48px;
  text-align: center;
}

.game:hover .vote {
  opacity: 1;
  visibility: visible;
}

/*****************************************************************************/
/** FOOTER **/
/*****************************************************************************/

#footer {
  margin: 20px 0;
}

.skip {
  background-image: url(/img/icon-skip.svg);
  background-size: 100%;
  display: inline-block;
  height: 18px;
  margin: 1px 0px 0px 3px;
  width: 18px;
}

.skip-bar {
  background-color: var(--color-card);
  border-radius: 8px;
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  font-size: 11px;
  font-weight: 600;
  height: 50px;
  justify-content: space-between;
  text-transform: uppercase;
}

.skip-bar a {
  align-items: center;
  color: var(--color-white);
  display: flex;
  padding: 18px 24px 16px 24px;
}

.skip-bar a:hover {
  color: var(--color-secondary);
}

.skip-bar p {
  margin: 0;
}

.skip-bar span {
  line-height: 18px;
}

.skip-bar-right {
  align-content: flex-end;
  display: flex;
  flex-flow: column wrap;
}

.skip-bar .skip-a {
  align-items: center;
  display: flex;
}

.skip-bar .skip-a-b {
  text-align: center;
}

.skip-bar .skip-b {
  align-content: flex-end;
  align-items: center;
  display: flex;
  text-align: right;
}

/*****************************************************************************/
/** LEADERBOARD **/
/*****************************************************************************/

#sidepanel {
  background: var(--color-card);
  border-bottom-left-radius: 20px;
  border-top-left-radius: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.12), 0px 8px 20px rgba(0, 0, 0, 0.18);
  color: var(--color-white);
  height: 100vh;
  overflow: hidden;
  padding: 20px;
  position: fixed;
  right: -400px;
  top: 0;
  transform: translateZ(0);
  transition: right 240ms ease-out;
  width: 375px;
}

#sidepanel h2 {
  font-size: 26px;
  font-weight: 600;
  margin-top: 60px;
}

#sidepanel p {
  color: var(--color-secondary);
  margin-top: 0;
}

#sidepanel .close-btn {
  align-items: center;
  display: flex;
  height: 40px;
  justify-content: center;
  left: 8px;
  position: absolute;
  top: 16px;
  width: 40px;
}

#sidepanel.show {
  right: 0;
}

#sidepanel table {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

#sidepanel table td {
  line-height: 18px;
  padding-bottom: 8px;
  vertical-align: top;
}

#sidepanel table td:first-child {
  color: var(--color-secondary);
  width: 5%;
}

#sidepanel table td:last-child {
  text-align: right;
  width: 8%;
}

#leaderboard-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}

#leaderboard-header p {
  font-size: 12px;
  padding-bottom: 14px;
  text-transform: uppercase;
}

#leaderboard span.year {
  color: var(--color-secondary);
  font-size: 0.7rem;
}

#leaderboard .vote-first {
  color: var(--color-secondary);
  display: block;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-transform: none;
}

.user-info {
  margin-top: 40px;
}

.user-info h2 {
  margin-bottom: 0;
}

.social-button {
  align-items: center;
  border-radius: 8px;
  color: var(--color-white);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  margin-bottom: 8px;
  padding: 0 14px;
  text-transform: uppercase;
  width: 100%;
}

.social-button:hover span {
  color: var(--color-white);
  opacity: 0.8;
}

.social-button svg {
  display: inline-block;
  margin-right: 12px;
}

#twitch-signin-button {
  background-color: var(--color-twitch);
}

#google-signin-button {
  background-color: var(--color-google);
}

.privacy-link {
  bottom: 20px;
  color: var(--color-white);
  font-size: 12px;
  position: fixed;
}

.app-store-link {
  border-radius: 13px;
  bottom: 10px;
  display: inline-block;
  position: fixed;
  right: 20px;
}

.app-store-link img {
  height: 40px;
  width: 120px;
}

/*****************************************************************************/
/** MOBILE **/
/*****************************************************************************/

@media screen and (max-width: 600px) {
  h1 {
    margin-top: 20px;
  }

  .gameboard {
    padding: 0 20px 80px;
  }

  #game-board {
    align-items: flex-end;
  }

  .game {
    align-items: flex-end;
    background: none !important;
    display: flex;
    height: auto;
    min-height: 120px;
  }

  .game-meta {
    min-height: 120px;
  }

  .vote {
    display: none;
  }

  .cover {
    position: relative;
    width: 100%;
  }

  .title {
    font-size: 20px;
    padding: 0;
  }

  .pin {
    display: none;
  }

  .skip-bar {
    bottom: 0;
    left: 16px;
    position: fixed;
    right: 16px;
  }

  #leaderboard-preview > img {
    width: 350px;
  }

  #show-leaderboard span {
    display: none;
  }

  #show-leaderboard img {
    padding-right: 0px;
  }

  #logo img {
    height: 40px;
  }
}

@media screen and (min-width: 1600px) {
  #sidepanel {
    right: 0;
  }

  #sidepanel .close-btn {
    display: none;
  }

  main {
    padding-right: 375px;
  }

  body.privacy main {
    padding-right: 0;
  }
}
