@import url(https://fonts.googleapis.com/css?family=Roboto);
@import url(https://fonts.googleapis.com/css?family=Raleway);

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

body {
  padding: 50px 6% 70px 6%;
  background: linear-gradient(160deg, #ff6183, #ff4870, #dd2d53) fixed;
  color: #0f0a0c;
  font-family: 'Roboto', sans-serif;
  font-size: 19px;
  --color-light: #ccc;
  --color-dark: #0f0a0c;
  --color-highlight: #5e0027;
  --color-title: white;
  --color-good: #52ffb7;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

::selection {
  background-color: #fffa;
}

h1, h2 {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  text-align: center;
}
h1 {
  color: var(--color-title);
  font-size: 40px;
}
h2 {
  font-size: 30px;
}

p {
  margin: 0;
}

@media screen and (max-width: 600px) {
  .no-mobile {
    display: none;
  }

  #conflicts {
    gap: 2px;
  }

  .conflict:not(.slim) {
    flex-wrap: wrap;
  }
  .conflict > .meta {
    width: auto !important;
    text-overflow: ellipsis;
  }
  .conflict:not(.slim) > a > .square {
    --size: 60px !important;
  }

  .matches .square {
    --size: 28px !important;
  }

  .matches td:nth-child(2) {
    width: 45% !important;
  }

  .matches td:nth-child(n+4) {
    display: none;
  }
}

header, footer {
  position: fixed;
  left: 0;
  width: 100%;
  display: flex;
  box-sizing: border-box;
  font-size: 16px;
}
header {
  top: 0;
  padding: 24px;
}
footer {
  bottom: 0;
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 20px 16px;
  gap: 16px;
  flex-direction: row;
  justify-content: center;
  z-index: 100;
}

.icon {
  height: 60px;
}

@media screen and (max-width: 600px) {
  .icon {
    height: 40px;
  }

  header {
    padding: 16px;
  }
  footer {
    padding: 12px;
    justify-content: space-evenly;;
  }
}

.section {
  position: absolute;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  padding: inherit;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 100px;
  animation: slideout 0.5s ease-in;
  animation-fill-mode: both !important;
}
.section.show {
  pointer-events: all;
  animation: slidein 0.5s ease 0.3s;
}
.section:not(.init) {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}
.section > p {
  text-align: center;
}

@keyframes slidein {
  from { left: 500px; opacity: 0; }
  to { left: 0; opacity: 1; }
}
@keyframes slideout {
  from { left: 0; opacity: 1; }
  to { left: -500px; opacity: 0; }
}

#authSection {
  gap: 20px;
  padding: 8%;
}
#conflictSection {
  height: 100%;
}

.no-margin {
  margin: 0;
}

div.square {
  --size: 80px;
  min-width: var(--size);
  width: var(--size);
  height: var(--size);
  margin-right: 6px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
div.square > img {
  height: 100%;
}

input {
  outline: none;
  border: none;
  border-radius: 0;
  font: inherit;
  background-color: transparent;
  box-sizing: border-box;
  border-bottom: 1px solid white;
  color: white;
  margin-bottom: 5px;
  opacity: 0.5;
}
input:focus {
  opacity: 1;
}
input::placeholder {
  color: white;
}
input:focus::placeholder {
  opacity: 0.5;
}

a {
  color: inherit;
}
a:hover {
  color: white;
}

button {
  border: none;
  color: inherit;
  background-color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  border-radius: 4px;
  padding: 10px 12px;
  outline: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #0003;
}
button:enabled {
  cursor: pointer;
}
button:enabled:hover {
  box-shadow: 2px 2px 0 #0003;
}
button:disabled {
  background-color: #ddd7;
}

button > a {
  color: inherit !important;
}

.checkbox {
  background-color: #ff899c;
}
.checkbox.checked {
  background-color: var(--color-good);
}

.shrink:hover::after {
  content: attr('aria-label');
}

.grid {
  display: grid;
  gap: 2px;
  margin: 20px 0;
  width: 100%;
}
.grid.big {
  grid-template-columns: repeat(auto-fit, [col-start] minmax(350px, 1fr) [col-end]);
  max-height: 50vh;
  overflow-y: auto;
}

.responsive, button {
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
.responsive:hover, button:enabled:hover {
  transform: scale(0.98);
  transition-duration: 0.2s;
}
.responsive:active, button:enabled:active {
  transform: scale(0.95);
}

li.playlist {
  overflow: hidden;
  height: var(--size);
  user-select: none;
}
li.playlist > .square {
  border: 1px solid #fff;
}

li.playlist.ignored {
  opacity: 0.35;
}

ul {
  padding-inline-start: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  gap: 1px;
  margin: 0;
}

li {
  background-color: var(--color-dark);
  display: flex;
  flex-direction: row;
  padding: 6px;
  user-select: none;
  transition-duration: 0.05s;
  text-align: start;
  color: var(--color-light);
  gap: 4px 0;
  font-size: 16px;
}
li:hover {
  background-color: #000000c0 !important;
}
li {
  --size: 80px;
}

.meta {
  display: flex;
  flex-direction: column;
}
.meta h3 {
  margin: 0;
  font-weight: normal;
  color: white;
}

.slim {
  flex-direction: row;
}
.meta.slim {
  width: 100%;
}
.slim > * {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: center;
}
.conflict > a:hover {
  filter: brightness(1.3);
}

.conflict.slim h3 {
  font-size: 16px;
  flex: none;
  width: auto;
}
.conflict.slim span::before {
  content: '-';
  margin: 0 5px;
}
.conflict.slim > .matches {
  display: none;
}

.conflict.slim > .meta {
  width: 100%;
}
.conflict.slim > a {
  width: auto;
}
.conflict.slim > a >.square {
  --size: 32px;
}
.conflict.artist > a > .square {
  border-radius: 50%;
  border: 2px solid white;
}

.matches {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.matches:empty {
  display: none;
}

.matches > tr {
  align-items: center;
  display: flex;
  cursor: pointer;
  padding-right: 4px;
}
.matches > tr.selected {
  background-color: #4447;
  color: white;
  text-decoration: underline;
}
.matches > tr:hover {
  background-color: #0007;
  color: white;
}

.matches .square {
  --size: 20px;
  vertical-align: bottom;
}

.matches td {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  flex: none;
}
.matches td:nth-child(n+3) {
  padding-left: 20px;
}
.matches td:nth-child(2) {
  width: 30%;
  color: white;
}
.matches td:nth-child(3) {
  width: 50%;
  flex: auto;
}
.matches td:last-child {
  width: 120px;
  text-align: end;
  padding: 0;
}

.matches > .search {
  width: 100%;
  background: url('search.svg') no-repeat scroll 0px 4px;
  padding-left: 15px;
}

#conflictProgress {
  color: white;
}

#conflicts.hide-matched .conflict.matched {
  display: none;
}
.conflict.matched::after {
  content: url('check-mark.svg');
  align-self: center;
  position: relative;
  top: 2px;
  margin-right: 5px;
  opacity: 0.75;
}

.matches > .status {
  display: grid;
  height: 100%;
  align-items: center;
  font-weight: bold;
}
.matches > tr ~ .status {
  display: none;
}

li.slim .source-duration {
  display: none;
}

.conflict > .meta {
  width: 35%;
}

.hidden {
  display: none;
}

#conflictSub {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

#likesSection > span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

#processLog {
  display: flex;
  flex-direction: column;
  height: 300px;
  background-color: #0007;
  color: white;
  font-family: monospace;
  font-size: 17px;
  gap: 4px;
  border-radius: 4px;
  padding: 8px;
  min-width: 50%;
  overflow-y: auto;
  box-sizing: border-box;
}
#processLog > .done {
  color: var(--color-good);
}

.inline {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-around;
  gap: 4px;
}
.inline > button {
  white-space: nowrap;
}
.inline > :first-child {
  margin-right: auto;
}

.warning {
  font-size: 19px;
}
b {
  color: var(--color-highlight);
}
.highlight {
  color: var(--color-highlight);
  font-weight: bold;
}

#iframeContainer {
  position: fixed;
  opacity: 0;
  transition-duration: 0.1s;
  pointer-events: none;
  padding: 20px;
  border: 20px solid transparent;
}
#iframeContainer.show {
  opacity: 1;
  pointer-events: all;
}
iframe {
  box-shadow: 0 0 10px #000a;
}