a {
  color: rgba(0,0,0,0.5);
  text-decoration: none;
}

/* Basic page feel – kid-friendly, light, fun */
body {
  font-family: Jua, sans-serif; font-size: 16px;
  margin: 0;
  padding: 0;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.intro p {
  font-family: Jua, sans-serif;font-size: 30px;
}

.normal {
  padding-left: 50px;
  padding-right: 50px;
}

.section-books > div > h2 {
  max-width: 40rem;    /* ~640px, adjust as you like */
  margin: 0 auto;      /* center the block itself */
}

.centered {
  max-width: 40rem;    /* ~640px, adjust as you like */
  margin: 0 auto;      /* center the block itself */
}

.books, .books h2 {
  text-align: left;
  font-family: Jua, sans-serif;font-size: 30px;
}

.normal p {
  font-family: Jua, sans-serif;font-size: 20px;
}

.intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col .intro {
    padding: 0 12px;    
  }
  .intro, .intro p {
    font-family: Jua, sans-serif;font-size: 16px;
  }
}

ul.horizontal {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  padding-top: 10px;
  margin: 0;
}

.section-head {
  text-align: center;
  xmax-width: 40rem;    /* ~640px, adjust as you like */
  xmargin: 0 auto;      /* center the block itself */
}

.section-head > div {
  max-width: 40rem;    /* ~640px, adjust as you like */
}

/* Header & logo */
.site-header {
  padding: 0;
  margin: 0;
  padding-top: 1.5rem;
}

#main_content, .site-footer {
  width: 100%;
}

.header-inner {
  padding: 0;
  margin: 0;
}

.site-inner {
  width: 100%;
  padding: 0;
  margin: 0;
}

.logo-wrapper {
  text-align: center;
  margin-bottom: 0.75rem;
}

.site-logo {
  max-width: 320px;
  width: 90%;
  height: auto;
  display: inline-block;
}

/* NAVIGATION LAYOUT */
/* Make the nav bar full-width and center its contents */
.main-nav {
  position: relative;
  width: 100%;
  display: block;
  padding: 0.5rem 1.5rem;
  text-align: center; /* so inline elements inside are centered */
  border-bottom-style: dotted;
}

.book_menu_title {
  font-family: 'Jua','sans-serif';
  font-size: 13px;
}

/* Spacer + language get equal flex so the center group really stays centered */
.nav-spacer,
.nav-lang {
  flex: 1;
}

.nav-lang {
  text-align: right;
  position: absolute;
  right: 1.5rem;
  top: 50%;                     /* <-- vertical center of the nav */
  transform: translateY(-50%);  /* <-- pull it up by half its height */
  white-space: nowrap;
  display: flex;
  align-items: center;          /* center EN/FR within its own box */
  gap: 0.25rem;
}

/* Centered UL of books + instructions */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  padding-top: 30px;
  margin: 0;
}

/* Nav links – rounded, pill-like, kid-friendly */
.nav-item a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #4b305f;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

/* Slight separation for the instructions item */
.nav-item--instructions {
  margin-left: 1.75rem;
}

.nav-item a:hover,
.nav-item a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Language switcher */
.lang-btn {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  color: #6b4a7e;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.lang-btn--active {
  background: #ffd86b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.lang-btn:hover:not(.lang-btn--active),
.lang-btn:focus-visible:not(.lang-btn--active) {
  background: rgba(255, 255, 255, 0.9);
}

.lang-separator {
  margin: 0 0.05rem;
  opacity: 0.7;
}

/* Wrapper that everything in main sits inside */
/* Give main some height while testing */
#main_content {
  width: 100%;
  padding: 0px;
  margin: 0px;
}

/* Wrapper that everything in main sits inside */
#main_content .border-shell {
  position: relative;        /* anchor for the absolute sidebars */
  padding: 2rem 0;
}

/* Content in the center, padded so it doesn't overlap the sidebar images */
#main_content .border-content {
  position: relative;
  padding-left: 20px;        /* >= left border width */
  padding-right: 20px;       /* >= right border width */
  z-index: 2;                /* above borders + rainbows */
  width: 90%;
  margin: 0 auto;
}

/* Pixel borders */
#main_content .border-side {
  position: absolute;
  top: 0;
  bottom: 0;                 /* stretches from top to bottom of .border-shell */
  width: 50px;
  background-repeat: repeat-y;
  background-size: contain;
  z-index: 0;                /* behind rainbows, below content */
}

#main_content .border-side--left {
  left: 0;
  background-image: url("/images/o-do-roki-website-pixelated-border.png");
}

#main_content .border-side--right {
  right: 0;
  background-image: url("/images/o-do-roki-website-pixelated-border2.png");
}

/* Rainbows near the top */
#main_content .border-rainbow {
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;             /* adjust to taste */
  background-repeat: repeat-y;
  background-position: top;
  background-size: contain;
  z-index: 1;                /* above pixel borders, below content */
}

#main_content .border-rainbow--left {
  left: 0px; /* just inside the left pixel border */
  background-image: url("/images/O-do-roki-website-rainbows-2_left_rotation.png");
}

#main_content .border-rainbow--right {
  right: 0px; /* just inside the right pixel border */
  background-image: url("/images/O-do-roki-website-rainbows-2_right_rotation.png");
}

/* Mobile: hide borders as you already do */
.hide_border_mobile {
  /* keep your existing media-query-based rule */
}

/* Promo video section */
.promo-video-section {
  margin: 3rem auto 2rem;
  width: 100%;
}

.promo-video-inner {
  display: block;
}

/* Video wrapper */
.promo-video-media {
  position: relative;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Maintain aspect ratio (16:9) */
.promo-video-media::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.promo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optional play overlay – just a visual cue, video auto-plays anyway */
.promo-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: none; /* purely decorative – remove this if you want click-to-play */
}

/* Text side */
.promo-video-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.promo-video-text p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer layout */
.site-footer {
  margin-top: 0;
  padding: 2rem 0;
  border-top-style: dotted;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-left {
  min-width: 220px;
}

.footer-right {
  flex: 1;
  text-align: right;
}

/* Footer heading */
.footer-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* Social icons row */
.social-media {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

/* Icon itself (from your icon font / SVG set) */
.social-link i {
  font-size: 1.3rem;
  line-height: 1;
  color: #6b4a7e; /* matches your purple-ish brand */
}

/* Hover / focus */
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  background: #ffd86b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.social-link:hover i,
.social-link:focus-visible i {
  color: #4b305f;
}

.legal-text {
  font-family: 'ABeeZee';
}

