/* ==================================================
   MyBlinkie Stylesheet - Optimized & Responsive
   Theme: Bright Purple & Light Purple
   ================================================== */

@charset "utf-8";

/* ========== CSS VARIABLES ========== */
:root {
  --bright-purple: #BF40BF;
  --light-purple: #E4AFE4;
  --rose-pink: #D78888;
  --lavender-bg: #F8F1FA;
  --text-dark: #444444;
}

/* ========== GLOBAL RESET & BOX MODEL ========== */
*, *:before, *:after {
  box-sizing: border-box;
}

/* ========== BASE STYLES ========== */
html {
  font-size: 16px;
}
@media screen and (max-width: 600px) {
  html {
    font-size: 14px;
  }
}

body {
  margin: 5px;
  font-family: 'Open Sans', sans-serif;
  font-size: 100%;
  color: var(--text-dark);
}

img, .img-fluid {
  max-width: 100%;
  height: auto;
}

/* ========== LAYOUT ========== */
.columnsContainer, footer, header {
  position: relative;
  margin: .5em;
}

.leftColumn, .rightColumn, footer, header {
  border: 1px solid var(--bright-purple);
  padding: 1.25em;
}

.thefooter {
  border: 0;
  border-top: 1px solid rgba(191, 64, 191, 0.25);
  padding: 1rem 1.25em;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: var(--bright-purple);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}



.leftColumn {
  margin-bottom: .5em;
}

@media screen and (min-width: 47.5em) {
  .leftColumn, .thefooter {
    margin-right: 19.5em;
  }
  .rightColumn {
    position: absolute;
    top: 0;
    right: 0;
    width: 18.75em;
  }
}

.thefooter p {
  margin: 0.4rem auto;
  line-height: 1.5;
}


/* ========== HEADINGS ========== */
h1, h2, h3 {
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  width: 100%;
  border: 3px solid;
  outline: none;
}

h1 {
  background-color: var(--bright-purple);
  color: var(--light-purple);
  font-size: 2rem;
  border-color: var(--light-purple);
}

h2 {
  background-color: var(--light-purple);
  color: var(--bright-purple);
  font-size: 1.5rem;
  border-color: var(--bright-purple);
}

h3 {
  background-color: var(--bright-purple);
  color: var(--light-purple);
  font-size: 1.25rem;
  border-color: var(--light-purple);
}

/* ========== SIDEBAR ========== */
.sidebar-section{
  margin-bottom: 1.2em;
  border: 1px solid rgba(191, 64, 191, 0.35);
  border-radius: 10px;
  background-color: var(--lavender-bg);
  padding: 0;
  overflow: hidden; /* keeps header corners clean */
}

.sidebar-section h3{
  background-color: var(--bright-purple);
  color: #fff;
  margin: 0;
  padding: 0.75em 1em;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5em;
  border-bottom: 3px solid var(--light-purple);

  /* optional polish */
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.25);
}

.sidebar-section ul{
  list-style: none;
  margin: 0;
  padding: 1em;   /* this handles left padding too */
}

.sidebar-section ul li{
  margin-bottom: 0.6em;
  transition: transform 0.2s ease;
}

.sidebar-section ul li:hover{
  transform: translateX(4px);
}

/* Sidebar hover override */
.sidebar-section a:hover{
  color: #8c00ff;
  text-decoration: none;
  text-shadow: 0 0 4px rgba(191, 64, 191, 0.4);
}

/* ===== Collapsible sidebar sections (details/summary) ===== */
.sidebar-collapsible {
  padding: 0;              /* your .sidebar-section already does this */
}

.sidebar-collapsible > summary.sidebar-summary {
  list-style: none;        /* removes default marker in some browsers */
  cursor: pointer;
  user-select: none;

  /* Make summary look like your existing h3 header */
  background-color: var(--bright-purple);
  color: #fff;
  padding: 0.75em 0.9em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
}

/* Remove the default disclosure triangle */
.sidebar-collapsible > summary::-webkit-details-marker { display: none; }
.sidebar-collapsible > summary::marker { content: ""; }

/* Little chevron on the right */
.sidebar-collapsible .chev {
  margin-left: auto;
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

/* Rotate chevron when open */
.sidebar-collapsible[open] .chev {
  transform: rotate(-135deg);
}

/* Body spacing (your UL styles can still apply) */
.sidebar-collapsible .sidebar-body {
  margin: 0;
  padding: 0.6em 0.9em 0.9em;
}

/* Optional: focus ring for keyboard users */
.sidebar-collapsible > summary:focus-visible {
  outline: 2px solid var(--rose-pink);
  outline-offset: 2px;
}

/* ========== MORE COLORS BLOCK ========== */
.more-colors {
  margin-top: 1.5em;
  font-size: 14pt;
  color: var(--bright-purple);
}

.color-links a {
  display: inline-block;
  margin: 4px 6px;
}

/* ========== LINKS ========== */
a, .sidebar-links a, .sidebar-section a, .color-links a {
  color: var(--bright-purple);
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  text-decoration: none;
}

a:hover, a:active,
.sidebar-links a:hover,
.sidebar-section a:hover,
.color-links a:hover {
  color: var(--rose-pink);
  text-decoration: underline;
}

a.nav {
  padding: 10px 0;
  text-align: left;
}

a.pnum {
  color: var(--rose-pink);
}

a.pnum:hover {
  color: var(--bright-purple);
}

/* ========== NAVIGATION LISTS ========== */
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > li,
.nav > li > a {
  display: inline-block;
}

.inline-items {
  margin-top: 0;
}

.inline-items li {
  border-left: 1px solid black;
  padding: 0 10px;
}

.inline-items li:first-child {
  border: none;
  padding-left: 0;
}

.inline-items li:last-child {
  padding-right: 0;
}

/* ========== BUTTONS ========== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background-color: var(--bright-purple);
  border: 0;
  border-radius: 2px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 30px;
  text-transform: uppercase;
  vertical-align: bottom;
}

/* ========== COLLAPSIBLE SECTION ========== */
.collapsible {
  background-color: var(--bright-purple);
  color: var(--light-purple);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: 3px solid var(--light-purple);
  text-align: left;
  font-size: 1.125rem;
  font-weight: bold;
}

.active, .collapsible:hover {
  background-color: var(--bright-purple);
}

.content, .content2 {
  padding: 0 18px;
  background-color: var(--light-purple);
  line-height: 1.6;
}

.content { display: none; }
.content2 { display: block; }

/* ========== IMAGE WRAPPERS ========== */
#thumbcat {
  float: left;
  width: 150px;
  height: 150px;
  margin: 10px;
  padding: 10px;
  background-color: #FFF;
}

.thumbcatimg {
  width: 150px;
  height: 150px;
  padding: 5px;
  border: 0;
}

#thumbcattitle {
  font-size: 0.625rem;
  text-align: center;
  color: var(--bright-purple);
  font-style: italic;
}

/* ========== TEXT ========== */
.navtitle {
  color: var(--bright-purple);
  font-size: 1.375rem;
  font-weight: bold;
  text-align: left;
}

.smalltxt {
  color: var(--bright-purple);
  font-size: 0.625rem;
  text-align: left;
}

/* ========== DROPDOWN MENU ========== */
.dropbtn {
  background-color: var(--rose-pink);
  color: white;
  padding: 16px;
  font-size: 1rem;
  border: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #F2F2F2;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  display: block;
}

.dropdown-content a:hover {
  background-color: #F2F2F2;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: var(--rose-pink);
}

#blinkline {
  width: 175px;
  float: left;
  margin-left: 12px;
  margin-top: 10px;
  background: #FFF;
  border: 1px solid #FFF;
  padding: 3px 0;
  text-align: center;
}

/* ========== NAV TOP STYLE ========== */
.top-nav ul.nav.inline-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  padding: 0;
  margin: 0;
  list-style: none;
}

.top-nav a {
  color: var(--bright-purple);
  font-weight: bold;
  font-size: 15pt;
  text-decoration: none;
  padding: 0.25em 0.5em;
}

.top-nav a:hover {
  color: var(--rose-pink);
  text-decoration: underline;
}

/* ========== OPTIONAL ICON SUPPORT ========== */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
.blinkie-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1em;
}

.blinkie-item {
  width: 150px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination-nav {
  text-align: center;
  margin-top: 1em;
}

.pagination {
  display: inline-flex;
  gap: 0.4em;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.page-item .page-link {
  text-decoration: none;
  padding: 0.35em 0.65em;
  border: 1px solid #BF40BF;
  border-radius: 5px;
  background: #fff;
  color: #BF40BF;
  font-size: 14px;
}

.page-item.current .page-link {
  background: #BF40BF;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}

/* ========== fonts and colors ========== */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-width: 600px;
  margin: 1em auto;
}

.color-cell {
  text-align: center;
  padding: 1em;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: default;
}

.color-cell:hover {
  filter: brightness(1.2);
  transform: scale(1.03);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


/* ========== how to make a blinkie ========== */

.steps {
  max-width: 700px;
  margin: 2em auto;
  padding: 0;
}

.steps h3 {
  position: relative;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  padding-left: 2.5em;
  font-size: 1.2em;
  color: #4a148c; /* Purple-ish */
}

.steps h3::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  text-align: center;
  border-radius: 50%;
  background: #bf40bf;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.steps p {
  background: #f9f4fc;
  padding: 1em;
  border-left: 4px solid #bf40bf;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.steps img {
  display: block;
  max-width: 100%;
  margin: 0.5em auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Initialize the counter */
.steps {
  counter-reset: step;
}

.blinkie-article h3 {
  color: #ffffff;
  margin: 1.25rem 0 0.75rem;
}

.bm-wrap{max-width:900px;margin:0 auto;padding:14px;}
.bm-card{background:#fff;border:2px solid #c86cff;border-radius:16px;box-shadow:0 12px 32px rgba(140,0,255,.12);padding:18px;}
.bm-head{text-align:center;margin-bottom:12px;}
.bm-head h2{margin:0 0 6px;font-size:22px;color:#8c00ff;}
.bm-head p{margin:0;color:#444;font-size:14px;}
.bm-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start;}
@media (max-width:780px){.bm-grid{grid-template-columns:1fr;}}
.bm-preview{border:1px dashed rgba(140,0,255,.35);border-radius:14px;padding:14px;background:linear-gradient(180deg,rgba(200,108,255,.10),rgba(200,108,255,.04));}
.bm-preview-title{font-size:12px;color:#6b2aa8;margin:0 0 10px;text-transform:uppercase;letter-spacing:.9px;font-weight:700;}
#preview-container{
  position:relative;
  display:inline-block;
  margin:0 auto;
}

#preview-template{
  display:block;
  margin:0 auto;
  image-rendering:pixelated;
}

#preview-text{
  position:absolute;
  top:50%;
  left:0;
  right:0;
  transform:translateY(-50%);
  padding:0 6px;
  text-align:inherit;
  white-space:nowrap;
  pointer-events:none;
  font-family:Arial, sans-serif;
}

.bm-controls{border-radius:14px;padding:14px;background:rgba(200,108,255,.06);border:1px solid rgba(140,0,255,.12);}
.bm-row{margin-bottom:12px;}
.bm-label{display:block;font-size:13px;color:#3a135c;margin-bottom:6px;font-weight:800;}
.bm-input,.bm-select{width:100%;padding:10px;border-radius:12px;border:1px solid rgba(120,0,200,.25);background:#fff;outline:none;font-size:14px;}
.bm-input:focus,.bm-select:focus{border-color:#8c00ff;box-shadow:0 0 0 4px rgba(140,0,255,.15);}
.bm-btn{width:100%;border:0;border-radius:12px;padding:12px 14px;font-weight:900;letter-spacing:.6px;color:#fff;background:linear-gradient(180deg,#c75bff,#a500ff);cursor:pointer;text-transform:uppercase;}
.bm-btn:hover{filter:brightness(1.03);}
.bm-foot{text-align:center;margin-top:12px;}
.bm-foot a{color:#8c00ff;font-weight:800;text-decoration:none;}
.bm-foot a:hover{text-decoration:underline;}
.bm-success{background:#e0ffe0;border:1px solid #8f8;color:#060;border-radius:12px;padding:10px;margin:12px 0;}
.bm-result{text-align:center;margin:10px 0 12px;}
.bm-result-img{max-width:100%;height:auto;display:block;margin:0 auto;}
.bm-result-links{margin-top:8px;}
.bm-result-links a{color:#8c00ff;font-weight:800;text-decoration:none;}
.bm-result-links a:hover{text-decoration:underline;}
.bm-hr{border:0;border-top:1px solid rgba(140,0,255,.18);margin:14px 0;}


