@font-face {
  font-family: "Aach";
  src: url("Aach-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

:root {
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100dvh;
}

main {
  width: calc(100vw - 100px);
  height: calc(100dvh - 100px);
}

section {
  display: none;
  cursor: e-resize;
}

section:first-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 12px;
  padding: 20px 0;
}

figure.image-entry {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

div.text-entry {
  flex: 1;
  min-height: 0;
  aspect-ratio: 1280 / 854;
  max-width: 100%;
  width: auto;
  height: auto;
  background-color: #d9d9d9;
  box-shadow: var(--card-shadow);
  font-family: "Aach";
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  box-shadow: var(--card-shadow);
}
