:root {
  --primary-color: #161e3a;
  --font-family: "Poppins", sans-serif;
}

body,
h2 {
  margin: 0;
}

main {
  height: 100vh;
  overflow-y: scroll;

  scrollbar-width: thin;
}

section {
  height: 100vh;
  background-color: white;
}

h2 {
  font-family: var(--font-family);
  text-transform: uppercase;
  font-size: 2vw;

  color: var(--primary-color);

  user-select: none;
  pointer-events: none;
}

.canvas-section {
  display: grid;
  grid-template-columns: 2fr 1fr;

  padding: 100px;
  gap: 50px;
  height: calc(100vh - 200px);
}

#container-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background-color: #f3f3f3;
  padding: 50px;
}

canvas {
  display: block;

  width: 0;

  max-width: 100%;
  max-height: 100%;

  box-shadow: 10px 20px 50px rgba(0, 0, 0, 0.2);
}

.config-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;

  max-height: calc(100vh - 6vw);
  overflow-y: scroll;

  scrollbar-width: none;
}

.config-panel > * {
  flex-shrink: 0;
}

@media screen and (max-aspect-ratio: 1) {
  .canvas-section {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr;

    padding: 3vw;
    gap: 1vw;
    height: calc(100vh - 6vw);
  }

  .config-panel {
    width: calc(100vw - 6vw);
  }

  .button {
    margin-top: auto;
  }

  h2 {
    margin-top: 0;
    font-size: 5vw;
  }
}
