@font-face {
  font-family: "Keynote Sans";
  src: url("https://www.suvatypefoundry.ee/wp-content/uploads/keynotesans.woff")
    format("woff");
}

html {
  background-color: white;
  font-size: 60px;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: "Keynote Sans", sans-serif;
  margin: 0;
  letter-spacing: 0.3px;
}

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

h3 {
  margin: 0;
}

nav {
  position: fixed;
  display: flex;
  width: 100%;
  height: auto;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 10px 20px;
  color: black;
  align-items: center;
  letter-spacing: 1px;
  font-family: "Keynote Sans";
}

@media (max-width: 1000px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
  }
}

button {
  font-family: "Keynote Sans", sans-serif;
}

button:focus {
  outline: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-direction: row;
  font-size: 0.8rem;
  color: #cd64ff;
}

@media (max-width: 1000px) {
  .logo-link {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.logo {
  font-size: 0.8rem;
  display: flex;
}

.logo-letter {
  position: relative;
}

.type-foundry {
  color: #cd64ff;
  font-size: 0.3rem;
  margin-left: 5px;
  border: 1px solid #cd64ff;
  border-radius: 50%;
  background-color: white;
  transition: 0.2s;
  height: 30px;
  text-align: center;
  line-height: 0.5rem;
  padding: 0 10px;
}

@media (max-width: 400px) {
  .type-foundry {
    font-size: 0.2rem;
  }
}

.type-foundry:hover {
  color: white;
  background-color: #cd64ff;
}

.menu {
  display: flex;
  line-height: 0;
  align-items: center;
}

.menu-letter {
  display: flex;
  box-sizing: border-box;
  border: solid 1px #cd64ff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color: white;
  color: #cd64ff;
  margin: 0 0px;
  font-size: 0.3rem;
  transition: 0.2s;
  margin-left: auto;
  margin-right: auto;
  padding: 0 9px;
}

@media (max-width: 400px) {
  .menu {
    font-size: 0.2rem;
  }
}

.menu-letter:hover {
  border: none;
  background-color: #cd64ff;
  color: white;
}

.active {
  border: none;
  background-color: #cd64ff;
  color: white;
}

.info-link {
  background-color: #cd64ff;
  color: white;
  border: solid 1px #cd64ff;
  border-radius: 50%;
  font-size: 0.3rem;
  height: 32px;
  width: 55px;
  text-align: center;
  line-height: 0.5rem;
  transition: 0.2s;
  box-sizing: border-box;
}

.info-link:hover {
  background-color: white;
  color: #cd64ff;
}

.page-links {
  display: flex;
  line-height: 0;
}

.page-link {
  color: #cd64ff;
  border: solid 1px #cd64ff;
  border-radius: 50%;
  font-size: 0.3rem;
  text-align: center;
  line-height: 0.25rem;
  background-color: white;
  transition: 0.2s;
  box-sizing: border-box;
  padding: 7px 20px;
  margin: 0;
}

@media (max-width: 400px) {
  .page-link {
    font-size: 0.2rem;
  }
}

.page-link:hover {
  background-color: #cd64ff;
  color: white;
}

.table {
  box-sizing: border-box;
  padding-top: 100px;
  display: table;
  flex-wrap: wrap;
  align-items: center;
  width: 100vw;
}

@media (max-width: 1000px) {
  .table {
    padding-top: 130px;
  }
}

.tablerow {
  display: table-row;
}

.bubble {
  display: table-cell;
  border-radius: 50%;
  border-width: 2px;
  border-color: black;
  border-style: solid;
  transition: font-size 1s;
  background-color: white;
  vertical-align: middle;
  text-align: center;
}

.bubble:not(.nohover):hover {
  background-color: black;
  color: white;
}

.letter {
  box-sizing: border-box;
  transition: font-size 1s;
  height: 50%;
}

.bubble:not(.nohover):hover .letter {
  font-size: 10rem;
}

@media (max-width: 500px) {
  .bubble {
    display: block;
  }
  .bubble:not(.nohover):hover .letter {
    font-size: inherit;
  }
}

.info {
  font-size: 0.25rem;
}

.info:hover {
  font-size: 1rem;
}

footer {
  padding: 20px 20px;
  height: 100%;
  background-color: #cd64ff;
  background-image: linear-gradient(white, #cd64ff 80%, #cd64ff);
  /* margin-top: 50px; */
  font-size: 0.3rem;
}

footer p {
  margin-top: 0;
  margin-bottom: 15px;
}

footer a {
  text-decoration: underline;
  transition: 0.2s;
}

footer a:hover {
  color: white;
}

.font-page-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.font-page-container .table {
  box-sizing: border-box;
  display: table;
  flex-wrap: wrap;
  align-items: center;
  width: 60vw;
  padding-top: 20px;
}

.font-page-container .bubble {
  display: table-cell;
  font-size: 2rem;
  border-radius: 50%;
  border-width: 2.2px;
  border-color: black;
  border-style: solid;
  /* width: 1.2em;
  height: 1em; */
  transition: font-size 1s;
  /* padding: 0.1em; */
  background-color: white;
  vertical-align: middle;
  text-align: center;
}

@media (max-width: 1300px) {
  .font-page-container .bubble {
    font-size: 1rem;
  }
}

@media (max-width: 650px) {
  .font-page-container .bubble {
    font-size: 0.5rem;
  }
}

@media (max-width: 400px) {
  .font-page-container .bubble {
    font-size: 0.4rem;
  }
}

.font-page-container .wide-table {
  display: table;
  width: 100vw;
  padding-top: 100px;
  height: 100vh;
}

@media (max-width: 1000px) {
  .font-page-container .wide-table {
    padding-top: 130px;
  }
  .font-page-container .bubble {
    border: solid 1px black;
  }
}

.font-page-container .download-bubble {
  box-sizing: border-box;
  font-size: 0.4rem;
  font-family: "Keynote Sans", sans-serif;
  background-color: black;
  color: white;
  border-color: black;
}

.font-page-container .download-bubble:hover {
  font-size: 3rem;
  padding: 10px;
  background-color: #cd64ff;
  color: white;
  border-color: #cd64ff;
}

@media (max-width: 1000px) {
  .font-page-container .download-bubble {
    font-size: 0.3rem;
  }
}

@media (max-width: 600px) {
  .font-page-container .download-bubble {
    font-size: 0.2rem;
  }

  .font-page-container .download-bubble:hover {
    font-size: 0.4rem;
    background-color: #cd64ff;
    color: white;
    border-color: #cd64ff;
  }
}

@media (max-width: 400px) {
  .font-page-container .download-bubble {
    font-size: 0.15rem;
  }
}

.footer-link {
  transition: 0.2s;
}

.footer-link:hover {
  color: white;
}

.columns {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.column {
  width: 50%;
  align-items: center;
  margin-right: 100px;
}

.last-column {
  margin-right: 0;
}

@media (max-width: 800px) {
  .columns {
    flex-direction: column;
  }

  .column {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.font-name {
  color: white;
  background-color: #cd64ff;
  transition: 0.2s;
}

.font-name:hover {
  color: #cd64ff;
  background-color: white;
}

.size-1 {
  font-size: 2.5rem;
}

.size-2 {
  font-size: 2rem;
}

.size-3 {
  font-size: 3rem;
}

.size-4 {
  font-size: 4rem;
}

.size-5 {
  font-size: 4rem;
}

#pretzel {
  font-size: 1rem;
}

@media (max-width: 1000px) {
  .size-1 {
    font-size: 1.25rem;
  }

  .size-2 {
    font-size: 1rem;
  }

  .size-3 {
    font-size: 1.5rem;
  }

  .size-4 {
    font-size: 2rem;
  }

  .size-5 {
    font-size: 2.5rem;
  }

  #pretzel {
    font-size: 0.5rem;
  }
}

@media (max-width: 600px) {
  .size-1 {
    font-size: 0.8rem;
  }

  .size-2 {
    font-size: 0.5rem;
  }

  .size-3 {
    font-size: 0.75rem;
  }

  .size-4 {
    font-size: 1rem;
  }

  .size-5 {
    font-size: 1.25rem;
  }

  #pretzel {
    font-size: 0.5rem;
  }
}

@media (max-width: 600px) {
  .size-1 {
    font-size: 2rem;
  }

  .size-2 {
    font-size: 1.5rem;
  }

  .size-3 {
    font-size: 2.5rem;
  }

  .size-4 {
    font-size: 3.5rem;
  }

  .size-5 {
    font-size: 4.5rem;
  }

  #pretzel {
    font-size: 0.5rem;
  }
}

.bubble:hover #pretzel {
  font-size: 3rem;
}

.download-button {
  background-color: none;
  color: black;
  border: solid 1px black;
  border-radius: 50%;
  font-size: 0.3rem;
  text-align: center;
  line-height: 0.5rem;
  transition: 0.2s;
  box-sizing: border-box;
  text-decoration: none;
  padding: 5px 15px;
}

.download-button:hover {
  background-color: black;
  color: white;
}

@media (max-width: 1200px) {
  .menu-letter:nth-child(even) {
    display: none;
  }
}

@media (max-width: 800px) {
  .menu-letter:nth-child(3n) {
    display: none;
  }
}

@media (max-width: 400px) {
  .menu-letter:nth-child(5n) {
    display: none;
  }
}

.errormessage {
  display: flex;
  height: 72vh;
  width: 100vw;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.errormessage a {
  text-decoration: underline;
  transition: 0.2s;
}

.errormessage a:hover {
  color: #cd64ff;
}

.column p:last-child {
  margin-bottom: 0;
}
