@import url('https://api.fonts.coollabs.io/css2?family=Open+Sans:wght@400;700&display=swap');
@import url('https://api.fonts.coollabs.io/icon?family=Material+Icons');

body {
  background: #191414;
  color: white;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  text-align: center;
}

h1 {
  font-weight: 700 !important;
}

.lucida-link {
  width: 100%;
}

.lucida-notice {
  text-align: center;
  background-color: red;
  width: fit-content;
  padding: 10px;
  border-radius: 4px;
  margin: 10px auto;
}

.lucida-notice p {
  margin: 0;
}

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

.underlined {
  text-decoration: underline !important;
}

iframe {
  max-width: 100% !important;
}

code {
  word-break: break-all; 
  padding: 2px;
  background: #000000;
}

hr {
  width: 50%;
}

#success-status > a,
.foot a,
#results > p > a {
  text-decoration: underline !important;
}

.spty {
  background: #1DB954;
  color: white;
}

.res .spty {
  border: 0;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  margin-top: 5px;
  font-weight: bold;
  margin-right: 4px;
}

.icon {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  user-select: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: bottom;
}

#dl-input-label {
  border-radius: 10px;
  border: 0;
  display: block;
  margin: 0 auto;
  margin-bottom: 8px;
  color: #807d7d;
  font-size: 0.75em;
  text-align: left;
}

.dl-input-wrapper {
  display: grid;
  border-radius: 10px;
  overflow: hidden;
  grid-template-columns: 1fr 75px;
}

.dl-form {
  width: 270px;
  margin: 0 auto;
  min-width: 50vw;
  max-width: 100%;
}

.footer,
.footer a {
  color: #807d7d;
  font-size: small;
  margin: 0;
}

.footer a:hover, 
.footer a:focus {
  color: #ffffff;
}

.totally-not-an-ad {
  background: #000000;
  width: 330px;
  height: 110px;
  overflow: hidden;
  text-align: center;
  margin: 0 auto;
}

.totally-not-an-ad > p {
  margin: 7px;
  padding: 5px;
}

.totally-not-an-ad > iframe {
  background: #000000;
  width: 320px;
  height: 100px;
  padding: 10px;
  text-align: center;
  border: 0;
  padding: 0;
  margin: 5px;
}

#dl-input {
  padding: 7px;
  border: 0;
  flex-grow: 1;
  min-width: 0;
}

#dl-button {
  padding: 7px;
  border: 0;
  cursor: pointer;
}

#error,
#success,
#prompt,
#prompt-captcha {
  width: auto;
  padding: 10px;
  border-radius: 4px;
  margin: 10px;
}

#loader img {
  margin: 0 auto;
}

#loader {
  width: calc(100% - 20px);
}

#error {
  text-align: center;
  background: red;
}

#success {
  background: #1DB954;
}

#prompt,
#prompt-captcha {
  background: gray;
  color: white;
}

#error > h1, 
#success > h1,
#error > p,
#success > p,
#prompt > h1,
#prompt > p,
#prompt-captcha > h1,
#prompt-captcha > p {
  margin: 2px;
}

#prompt button {
  cursor: pointer;
  margin: 3px;
  padding: 5px;
  border: 0;
  border-radius: 4px;
  background: #1DB954;
  color: white;
}

.res {
  background: black;
  text-align: left;
  padding: 6px;
  width: 1000px;
  max-width: 90vw;
  border-radius: 8px;
  margin-bottom: 5px;
  height: 150px;
}

.res > .cover {
  float: left;
  overflow: auto;
}

.res > .cover::after {
  content: "";
  clear: both;
  display: table;
}

.res > .cover {
  width: 150px;
  height: 150px;
  margin-right: 4px;
  margin-bottom: 4px;
}

@media (max-width: 500px) {
  .res > .cover {
    width: 30%;
    height: auto;
  }
}

.textwall {
  width: 50%;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 975px) {
  .textwall {
    width: 80%;
  }
}

@media (max-width: 600px) {
  .textwall {
    width: 100%;
    margin: 0;
  }
}

.res > .metadata {
  width: 100%;
  height: 150px;
}

.res > .metadata > h2,
.res > .metadata > h3 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 750px) {
  .res > .metadata > h2 {
    font-size: large; 
  }

  .res > .metadata > h3 { 
    font-size: small;
  }
}

@media (max-width: 300px) {
  .res > .metadata > h3 { 
    display: none;
  }
}

.record {
  animation-name: spinning;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  /* linear | ease | ease-in | ease-out | ease-in-out */
  animation-timing-function: linear;
  border-radius: 50%;
  object-fit: cover;
  width: 100px;
  height: 100px;
  margin: 5px;
}

#record > p {
  margin: 0;
}

.q {
  margin-bottom: 0;
}

.q > a {
  display: none;
  color: gray;
}

.q:hover > a {
  display: inline;
}

#recently-downloaded {
  margin: 10px;
}

#recently-downloaded > h2 {
  margin: 0;
}

#recently-downloaded > #downloads,
#recently-downloaded > #downloads > p {
  margin: 0;
}

@keyframes spinning {
  from { transform: rotate(0deg) }
  to { transform: rotate(360deg) }
}

@media (prefers-reduced-motion) {
  @keyframes spinning {
    from { transform: rotate(0deg) }
    to { transform: rotate(0deg) }
  }
}