@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
html {
  background-color: #000;
  color: #fffe;
  background-image: url(./background.webp);
  background-image: image-set(
    "./background.small.webp" 1x,
    "./background.webp" 2x
  );
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(16px, 5vmin, 24px);
}

body {
  overflow: auto;
  padding: 1em;
}

div#root {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  gap: 0;

  > a {
    flex: 1 1 auto;
    width: 300px;
    min-width: 240px;
    max-width: 480px;
    height: 300px;
    background-color: #444;
    background-image: url(./background.small.webp);
    background-position: center;
    background-size: cover;
    background-repeat: repeat;
    box-shadow:
      -2px -2px 6px #000 inset,
      2px 2px 6px #fff8 inset;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 1px 1ps #000;
    display: grid;
    place-items: end;
    padding: 1em;
    text-decoration: none;

    > div {
      padding: 0 1em;
      border-radius: 999vmax;
      background-color: #000a;
      text-decoration: none;
    }
  }
}

#tgd-logo {
  pointer-events: none;
}
