@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
  --accent-colour: #e589fd;
  --background-colour: #1f1e1f;
  --text-colour: #efe7ef;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes rainbow {
  0% {
    color: #e589fd;
  }

  14% {
    color: #fd89b5;
  }

  28% {
    color: #fdbf89;
  }

  42% {
    color: #dafd89;
  }

  56% {
    color: #89fdac;
  }

  70% {
    color: #89e4fd;
  }
a
  84% {
    color: #9889fd;
  }
}


@keyframes rainbow-background {
  0% {
    background-color: #e589fd;
  }

  14% {
    background-color: #fd89b5;
  }

  28% {
    background-color: #fdbf89;
  }

  42% {
    background-color: #dafd89;
  }

  56% {
    background-color: #89fdac;
  }

  70% {
    background-color: #89e4fd;
  }

  84% {
    background-color: #9889fd;
  }
}


.rainbow {
  animation: rainbow 1s linear infinite;
}

.rainbow:hover {
  animation: rainbow-background 1s linear infinite;
}

.blink {
  animation: blink 1.4s steps(2, start) infinite;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 100%;
  align-items: flex-end;
  gap: 0.5em;
}

@media (max-width: 660px) {
  header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  header>nav {
    align-self: flex-start !important;
    justify-content: flex-start !important;
  }
}

header>nav{
  align-self: flex-end;
}

#title {
  font-family: "Courier Prime", sans-serif;
  font-size: 2em;
  padding: 0;
  transform: translateY(0.17em);
}

main {
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  gap: 2em;
  min-height: 100%;
  flex-flow: flex-start;
}

nav {
  max-width: fit-content;
  gap: 1em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: right;
  align-content: center;
  row-gap: 0;
  overflow: visible;
}

header, footer, main {
  max-width: 777px;
  margin: auto;
  padding: 1em;
  width: 100%;
  min-height: 100%;
}

strong {
  font-weight: 700;
}

body {
  background-color: var(--background-colour);
  color: var(--text-colour);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-style: normal;
  max-width: 100vw;
  display: grid;
  grid-template-rows: auto 1fr 6em;
  min-height: 100vh;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1em; 
  margin: 0.5em 0;
}

a {
  color: var(--accent-colour);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  height: min-content;
  padding: 0.1em;
}

a:hover {
  cursor: pointer;
  background-color: var(--accent-colour);
  color: #efeeef;
  border-radius: 0.1em;
}

.highlight-background, .rankgrid>* {
  background-color: #292729;
  padding: 0.5em;
  border-radius: 0.3em;
  position: relative;
}

#pgpkeycontainer {
  max-width: 90vw;
  position: relative;
}

#pgpkey, #pgpsignature {
  white-space: nowrap;
  font-size: 0.8em;
  display: block;
  overflow: scroll;
  max-width: 100%;
  max-width: 90vw;
}

.download-button {
  position: absolute;
  right: 1em;
  bottom: 1em;
  padding: 0.2em;
  background-color: var(--background-colour);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 0.1em;
}

#contacts-list {
  list-style-type: none;
}

.rank-game {
  font-weight: 500;
}

.rankgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}
