@import url("./theme.css");
@import url("./tf.css");
@import url("./modal.css");
@import url("./editor.css");

@font-face {
  font-family: "scientifica";
  src: url("/fonts/scientifica.ttf");
}

* {
  padding: 0;
  margin: 0;
  font-family: "scientifica", monospace;
  font-smooth: never;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, var(--bg), transparent),
    radial-gradient(ellipse at left, var(--blue), transparent),
    radial-gradient(ellipse at right, var(--purple), transparent),
    radial-gradient(ellipse at bottom, var(--bg), transparent);
}

body {
  color: var(--text);
}

a {
  color: var(--blue);
}
a:visited {
  color: var(--blue);
}

.main {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 600px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.header {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--yellow);
  border-radius: 0.5rem;
}

.content {
  max-height: 90vh;
}

.footer {
  border-top: 2px solid var(--yellow);
  border-radius: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

.nav {
  display: flex;
}

.title {
  text-decoration: none;
}
.title:hover {
  text-decoration: underline;
  cursor: pointer;
}

.centered-game {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  height: 100%;
  flex-direction: column;
  gap: 1rem;
}

.centered-game canvas {
  display: block;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--yellow);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  background-color: var(--bg);
}

button {
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--yellow);
  color: var(--bg);
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
button:hover {
  background-color: var(--blue);
}
