/* Carl's birthday book — click the book, click the nose. */

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}

body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:3vh 3vw;
}

.page-black{
  background:#000;
}
.page-parchment{
  background:#12100c;
}

.art-wrap{
  position:relative;
  display:inline-block;
  max-width:min(92vw, 720px);
  line-height:0; /* kills the stray gap under inline images */
}

.art-wrap img{
  display:block;
  width:100%;
  height:auto;
}

.hotspot{
  position:absolute;
  display:block;
  cursor:pointer;
  outline:none;
}

/* book cover: rectangular region matching the carved book + hat,
   excluding the black margin and the "enter if you dare" text below */
.hotspot-book{
  left:9.41%;
  top:1.91%;
  width:75.44%;
  height:85.17%;
  transition:box-shadow 0.2s ease;
}
.hotspot-book:hover,
.hotspot-book:focus-visible{
  box-shadow:0 0 40px 6px rgba(255,190,90,0.35) inset;
}

/* the nose: small circular hotspot on the open-book page */
.hotspot-nose{
  left:22.43%;
  top:44.21%;
  width:8.69%;
  height:13.55%;
  border-radius:50%;
  transition:box-shadow 0.2s ease;
}
.hotspot-nose:hover,
.hotspot-nose:focus-visible{
  box-shadow:0 0 30px 8px rgba(255,255,255,0.35) inset;
}
