/* ==============================================================
   CLEAN HOLD-TO-VIEW DYNAMIC DRAW PANEL (shop.thekilners.ca)
   ============================================================== */

body {
  position: relative !important;
}

/* THE RECTANGULAR RED SIDE TAB */
body::before {
  content: "💡 TIPS"; 
  position: fixed;
  left: 0;
  top: calc(55% + 150px); 
  
  width: 63px;  
  height: 25px; 
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important; 
  transform-origin: unset !important;
  
  background-color: #e21a22; 
  color: #ffffff;
  font-family: inherit;
  font-weight: bold;
  font-size: 10px; 
  line-height: 1.1;
  letter-spacing: 0px;
  
  border-radius: 0 4px 4px 0; 
  cursor: pointer;
  z-index: 9999999 !important; 
  box-shadow: 1px 0 6px rgba(0,0,0,0.2);
  white-space: normal; 
  text-align: center;
  padding: 2px;
  transition: background-color 0.2s ease;
}

/* THE DYNAMIC VISUAL GRAPHIC SLIDE-OUT PANEL */
body::after {
  content: url('https://theplayingcardfactory.com/wp-content/uploads/2015/06/thumbs-up.png'); 
  position: fixed;
  top: 15%; 
  
  width: min-content;
  height: auto;
  max-width: 45vw; 
  max-height: 70vh;
  object-fit: contain;
  
  transform: translateX(calc(-100% - 40px)); 
  left: 0;
  padding: 15px;
  background-color: #ffffff;
  border: 2px solid #222222;
  border-radius: 0 8px 8px 0;
  box-shadow: 5px 5px 25px rgba(0,0,0,0.3);
  z-index: 9999998 !important;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none; 
}

/* TOGGLE SLIDE MECHANICS FOR TIPS PANEL */
body:active::after {
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

html:has(main:active, div:active, canvas:active, button:active, input:active, form:active, section:active, iframe:active) body::after {
  transform: translateX(calc(-100% - 40px)) !important;
  pointer-events: none !important;
}

body:active::before {
  background-color: #b81117; 
}
