@font-face {
  font-family: Sligoil;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://opheliagame.github.io/garden/static/Sligoil-Micro.woff2)
    format("woff2");
}

* {
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
}

html,
body {
  margin: 0px;
  padding: 0px;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: "Sligoil", Helvetica, Arial, sans-serif;
}

body {
  display: grid;
  grid-template-columns: 250px auto;
  grid-template-rows: 1fr;
}

header {
  background-color: var(--light);
  padding: 2rem 1rem;
}

nav {
  display: flex;
  flex-direction: column;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 8px 0;
  cursor: pointer;
  text-decoration: underline;
  font-size: small;
  color: var(--secondary);
}

main {
  background-color: var(--light);
}

iframe {
  width: 100%;
  height: 100%;
}

#sketch-title-container {
  display: none;
  padding: 0 1rem;
}

#sketch-title-container.show {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* Typography */
h1 {
  font-size: 1.2rem;
}

h2 {
  font-size: 1rem;
}

p {
  font-size: 0.8rem;
}

span {
  font-size: 0.5rem;
}

@media only screen and (max-width: 480px) {
  header {
    padding: 0.5rem 1rem;
  }

  body {
    display: block;
    height: 100%;
  }

  main {
    height: 100%;
  }
}
