:root {
  --color-highlight: #c8c8c8;
}

html[data-theme='lol'] {
  --color-highlight: #00c8c8;
}

html[data-theme='val'] {
  --color-highlight: #ff4655;
}

html, body {
  padding: 0;
  margin: 0;
  font-family: 'Helvetica', sans-serif;
  font-size: 14px;
  color: #f9f9f9;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  color: inherit;
}
h1, h2, h3, h4, h5, h6 {
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
}

.app {
  background-color: #0a0e13;
  height:100vh;
}

header {
  background-color: #111111;
  border-bottom: 2px solid #191919;
  height: 8rem;
}
footer {
  user-select: none;
  color: #8fa3b0;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  opacity: 0.3;
}
footer:hover {
  opacity: 0.9;
  transition: opacity .1s ease-out;
}
footer a {
  color: #8fa3b0;
  text-decoration: none;
}

.content {
  display: flex;
  flex-flow: row nowrap;
}

.selector {
  display: inline-flex;
  flex-flow: column nowrap;

  height: calc(100vh - 8rem);
  overflow-y: auto;
  scrollbar-width: none;
  min-width: 25rem;
  max-width: 25rem;
}
.selector::-webkit-scrollbar {
  display: none;
}
.selector .loader {
  font-weight: normal;
  font-size: 18px;
  color: #768793;
  margin: 2rem;
  text-transform: uppercase;
  text-align: center;
  animation: alternate infinite pulsate .7s ease-in-out;
}
@keyframes pulsate {
  from {
    color: #768793;
  }

  to {
    color: white;
  }
}

.selector .league {
  display: flex;
  cursor: pointer;
  background: transparent;
  text-align: left;
  border: 0;
  flex-flow: row nowrap;
  padding: .5rem;
  border-bottom: 1px solid #252c32;
  border-left: 4px solid transparent;
}
.selector .league:hover, .selector .league.selected {
  background-color: black;
  border-left: 4px solid var(--color-highlight);
}
.selector .league img {
  width: 60px;
  height: 60px;
  margin: 0 12px 0 24px;
  opacity: .3;
}
.selector .league.selected img, .selector .league:hover img {
  opacity: 1;
  transition: opacity .1s ease-out;
}

.selector .league .card {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  height: 100%;
}
.selector .league .card h1 {
  font-weight: normal;
  font-size: 18px;
  color: #768793;
}
.selector .league.selected .card h1 {
  font-size: 18px;
  color: white;
}
.selector .league .card h2 {
  font-size: 14px;
  font-weight: bold;
  color: #8fa3b0;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  flex-grow: 1;
  padding: 8rem;
}
.page .title {
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 2rem;
}

.page .title .add-from {
  cursor: help;
  text-decoration: dotted underline;
  white-space: nowrap;
}

.result {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin: 1rem;
  max-width: 75rem;
}

.ical {
  flex-grow: 1;
  outline: none;
  margin: .3rem;
  text-align: center;
  font-size: 16px;
  height: 60px;
  color: white;
  border: 3px solid var(--color-highlight);
  border-radius: 3px;
  background-color: #111111;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  letter-spacing: 1px;
}

.copy {
  cursor: pointer;
  min-width: 200px;
  background: var(--color-highlight);
  font-size: 1.6rem;
  border: 0;
  height: 60px;
  border-radius: 30px;
  margin: .3rem;
  color: black;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color .3s ease-in-out;
}

.copy.clicked {
  color: white;
}

@media only screen and (max-width: 600px) {
  header {
    height: 1rem;
  }
  .content {
    flex-flow: column-reverse wrap;
  }
  .selector {
    width: 100%;
    height: calc(100vh - 1rem - 12rem);
    border-top: 1px solid #252c32;
    border-right: 0;
  }
  .page {
    height: 12rem;
    padding: 0 1rem;
    display: flex;
    width: 100%;
    align-items: center;
  }
  .page .title {
    display: none;
  }
  .page .result {
    flex-grow: 1;
    flex-flow: column wrap;
    margin: 0;
  }
}

.overlays {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.overlays .add-from-help-modal {
  position: fixed;
  width: 400px;
}
.overlays .add-from-help-modal img {
  border-radius: 8px;
}
