/* Typography imported from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Jacquard+12&display=swap");

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: var(--body-typeface);
  min-height: 100vh;
  background: url(assets/andy-poystila_lily-pad_background.jpg);
  background-size: cover;
  background-position: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#sticky-dock {
  position: sticky;
  top: 1;
  bottom: 1;
  z-index: 0;
}

#lily-leaf {
  position: absolute;
  z-index: 2;
}

#background {
  width: max-content;
  position: initial;
  background-size: cover;
  overflow-y: scroll;
  z-index: -1;
}

img {
  z-index: 1;
}

/* Typography */

h1 {
  font-size: 5rem;
  font-family: var(--main-heading);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  writing-mode: vertical-rl;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 2rem;
  font-family: var(--body-typeface);
  margin-bottom: 0.2rem;
  line-height: 1.2;
  font-weight: 400;
}

/* Hyperlink Styles */
a {
  text-decoration: none;
  color: #cfff97;
}
a:hover {
  color: #32ca4e;
}

p {
  margin-bottom: 1rem;
}

/* Work Page Layout */

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-headline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 80%;
}

/* ===========================================================
   IDEA Web Ring Banner Styles
   --------------------------------------
   Styles for the inline “Previous | IDEA Web Ring | Next” 
   navigation links (web ring). 

   - Use with <nav class="webring" data-members="/webring-members-coding-club.json" data-hub="/"> container
   - Links: .webring-previous, .webring-next, .webring-hub
   - Divider between links: .divider
   =========================================================== */

.webring {
  font-family: "Jacquard 12", system-ui;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem; /* space between items */
  background: #195843;
  padding: 0.5rem 1rem;
  font-weight: 400;
  font-size: 2rem;
  z-index: 2;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Individual links */
.webring-previous,
.webring-next,
.webring-hub {
  text-decoration: none;
  font-weight: 400;
  font-size: 2rem;
  padding: 0.25rem 0.5rem;
  transition: background 0.3s;
}

.webring-previous:hover,
.webring-next:hover,
.webring-hub:hover {
  background: #195843;
}

/* Divider between links */
.divider {
  background: #195843;
  color: #ffffff;
  font-weight: 400;
  font-weight: 400;
  font-size: 2rem;
}

/* ===========================================================
   IDEA Web Ring Page View Counter
   --------------------------------------
   Global page view counter using EnhancedCounter for persistent,
   cross-device view tracking.

   - Uses EnhancedCounter with localStorage + API verification
   - Creates unique counters for each page path
   - Automatically increments on each page load
   - Displays count in element with ID 'viewCount'

   Usage: Add <div class="page-counter">👁️ <span id="viewCount">—</span> views</div>
   =========================================================== */

.page-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #195843;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 1.6rem;
  color: #ffffff;
  justify-content: center;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: default;
  user-select: none;
  transition: background 0.3s; /* Add transition for smooth hover */
}
