* {
  color: #fff;
  font-family: "Bahnschrift", sans-serif;
  font-size: 16px;
}

html {
  height: 100%;
}

h1 {
  font-size: 32px;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 30px;
  margin-right: 20px;
}

nav {
  display: flex;
  gap: 5px;
  margin-right: 20px;
  border-radius: 9999px;
  padding: 5px;
}

nav a {
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 9999px;
  margin: 1px 1px;
}

nav a:hover {
  background-color: #fff;
}

main {
  max-width: 1000px;
  padding: 20px;
  text-align: center;
}

.content-box {
  padding: 20px;
  margin-bottom: 30px;
}


table {
  margin: auto;
  border-spacing: 50px 0px;
}

tr > td {
  text-align: left;
}

td + td {
  text-align: right;
}

.instruction {
  margin-bottom: 10px;
}

.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 360px;
  gap: 10px;
  margin: 40px auto;
}

.hex {
  width: 100px;
  height: 115px;
  position: relative;
  margin-top: -15px;
  margin-bottom: -15px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.hex.flipped {
  transform: rotateY(180deg) scale(200%);
  z-index: 2;
}

.hex.previous-flipped {
  z-index: 1;
}

.hex-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  clip-path:  polygon(
    50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 0px;
  text-align: center;
}

.hex-back {
  transform: rotateY(180deg);
}

.hex-back > p {
  font-size: 8px;
  margin: 5px;
}

footer {
  padding: 10px;
  font-size: 14px;
  position: absolute;
  margin-top: 50%;
}
