:root {
  --color: rgb(0, 128, 128);
  --background-color: rgb(255, 253, 185);
  --code-color: rgba(0, 128, 128, 0.6);
  --p-color: rgba(0, 128, 128, 0.8);
  --hover-color: rgba(0, 128, 128, 0.4);
  --box-shadow: 0 2px 4px 0 var(--color), 0 1px 8px 0 var(--hover-color);
}

@keyframes scaleAnimation {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

html {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  color: var(--color);
  background-color: var(--background-color);
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  animation: scaleAnimation 2s ease-in-out;
}

main {
  padding: 4rem 0.6rem;
  display: flex;
  flex: 9;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card {
  margin: 1rem;
  padding: 2rem 1rem;
  color: inherit;
  text-decoration: none;
  outline-width: 1px;
  outline-style: solid;
  outline-offset: 4px;
  outline-color: var(--color);
  border-width: 1px;
  border-style: solid;
  border-color: var(--color);
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  overflow: scroll;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}

.card::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.card h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.card h2 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--p-color);
}

.card p {
  margin: 0;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 1.6;
  color: var(--p-color);
}

.card .code {
  display: inline-block;
  color: var(--code-color);
  background-color: rgba(0, 128, 128, 0.08);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.8rem;
  font-weight: bold;
  font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
    Bitstream Vera Sans Mono, Courier New, monospace;
  line-height: 2rem;
  border: 1px solid;
  border-color: var(--p-color);
  box-shadow: var(--box-shadow);
}

.card a {
  padding: 8px;
  margin: 8px;
  border-radius: 8px;
  border: none;
  font-family: "Kanit";
  cursor: pointer;
}

.buttonsRow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.buttonsRow a {
  margin: 2px;
}

.buttonsRow .iconButton {
  width: 24px;
  height: 24px;
  padding: 4px;
}

.buttonsRow .iconButton:hover {
  box-shadow: var(--box-shadow);
  border-radius: 8px;
}

.footer {
  display: flex;
  padding: 2rem 0;
  flex: 1;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.footer p {
  color: var(--p-color);
  font-size: 0.8rem;
  font-weight: bold;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}
