:root {
  --background: #f1f1f1;
  --foreground: #171717;
}

@font-face {
  font-family: 'Quicksand';
  src: url("/static/fonts/Quicksand.woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Square';
  src: url("/static/fonts/square.woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: Quicksand, cursive;
}

header {
  font-family: Square, cursive;
  font-size: 3rem;
  padding: 1rem;
  padding-top: 1.2rem;
  background-color: #00c8ff;
  color: white;
  text-align: center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  background-color: #54daff;
}

.top-menu-button {
  display: flex;
  margin: 0.65rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  opacity: 25%;
}

.top-menu-button img {
  width: 2rem;
  height: 2rem;
}

.selected {
  opacity: 90%;
}

.selected:hover {
  opacity: 90%;
}

.top-menu-button:hover {
  opacity: 60%;
}

a {
  text-decoration: none;
  color: var(--foreground);
}

.board-menu {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  gap: 1rem;
  justify-content: center;
}

.board-button {
  display: flex;

  width: 10rem;
  height: 10rem;
  border-radius: 10%;
  background-color: white;

  align-items: center;
  justify-content: center;
  text-align: center;
}

.board-button > span {
  font-size: 1.25rem;
}

table {
  width: 100%;
  table-layout: fixed;
  margin-top: 1em;
}

h2 {
  text-align: center;
  font-size: 1.5rem;
}

.name-row {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}

input[type=text] {
  padding: 10px;
  border-radius: 6px;
  border-style: hidden;
  border-color: #00c8ff;
  margin: 5px;
}

input[type=text]#name {
  font-size: medium;
}

input[type=text]:focus-visible {
  outline: #00c8ff solid medium;
}

input[type=color] {
  border-radius: 6px;
  border-style: hidden;
  margin: 5px;
  padding: 0;
  height: 35px;
  width: 35px;
}

div.phrase-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

div.container {
  display: flex;
  text-align: center;
  margin: auto;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: center;
}

div.save-row {
  margin: 0.5rem auto auto;
}

div.phraseTable {
  margin-left: auto;
  margin-right: auto;
  align-content: center;
}

main {
  max-width: 350px;
  margin: auto;
}

.edit-button {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background-image: url("/static/icons/edit.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% - 10px);
  cursor: pointer;
}

.outer-div {
  position: relative;
}