
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #F8F6EF;
  font-family: 'Patrick Hand', cursive;
  color: #344B3B;
}

/* MAIN TWO-COLUMN LAYOUT */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  width: 100%;
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 30px;
}

/* ORIGINAL SCALE */

.activity {
  text-align: center;
  padding: 12px;
  min-width: 0;
}

h2 {
  font-family: 'Patrick Hand', cursive;
  font-size: 34px;
  font-weight: 400;
  margin: 5px;
  color: #344B3B;
}

svg {
  display: block;
  width: 100%;
  max-width: 650px;
  margin: auto;
  overflow: visible;
  touch-action: none;
}

#movingBeam {
  transform-box: view-box;
  transform-origin: 300px 108px;
  transition: transform 0.4s ease;
}

.apple {
  cursor: grab;
  touch-action: none;
}

.apple:active {
  cursor: grabbing;
}

/* APPLE COUNTERS */

.numbers {
  display: flex;
  justify-content: space-around;
  max-width: 450px;
  margin: 5px auto 12px;
  font-size: 25px;
  font-family: 'Patrick Hand', cursive;
}

/* BUTTONS */

button {
  border: 2px solid #B78332;
  border-radius: 12px;
  background: #F1DFB6;
  color: #594321;
  padding: 10px 18px;
  margin: 5px;
  font-family: 'Patrick Hand', cursive;
  font-size: 21px;
  cursor: pointer;
}

button:hover {
  background: #E8C36F;
}

/* RESULT AND INSTRUCTIONS */

#result {
  font-family: 'Patrick Hand', cursive;
  font-size: 25px;
  font-weight: 400;
}

.hint {
  font-family: 'Patrick Hand', cursive;
  font-size: 20px;
  color: #718273;
}

/* NEW NOTEBOOK */

.notebook {
  position: relative;
  width: 100%;
  height: min(82vh, 750px);
  min-height: 480px;
  border-radius: 24px;
  background: #FFFDF8;

  box-shadow:
    0 8px 20px rgba(80, 60, 35, 0.18),
    0 2px 5px rgba(80, 60, 35, 0.10);

  overflow: visible;
}

/* LINED NOTEBOOK PAPER */

.paper {
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent 70px,
      #E7A3A3 70px,
      #E7A3A3 72px,
      transparent 72px
    ),

    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 39px,
      #B9D6F3 40px,
      #B9D6F3 41px
    );

  background-color: #FFFDF8;
}

/* NOTEBOOK PUNCH HOLES */

.notebook::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 25px;
  bottom: 25px;
  left: -9px;
  width: 22px;

  background:
    radial-gradient(
      circle,
      #F8F6EF 0 8px,
      transparent 9px
    ) center top / 22px 42px repeat-y;
}

/* SMALLER SCREENS */

@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 25px;
  }

  .notebook {
    height: 550px;
    min-height: 400px;
  }
}
