@font-face {
    font-family: 'Quirkivo';
    src: url('../fonts/Quirkivo.woff2') format('../fonts/woff2'), url('../fonts/Quirkivo.ttf') format('truetype');
}
html {
    font-family: 'Quirkivo';
}

.product_tooltip {
    --bs-tooltip-width: 800px !important;
    --bs-tooltip-min-width: 800px !important;
    --bs-tooltip-max-width: 800px !important;
}

.image-listing-text {
    display:none;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    color:white;
    font-size:15px;
    font-weight:bold;
    position:absolute;
    left:0px;bottom:0px;padding:5px;
    text-align:left;
    line-height:17px;
}

.book_frame {
    border:0px solid #404040;
    color: black;
    margin-right:25px;
    margin-bottom:10px;
}
.book_frame_sub {
    height:50px;
    width:208px;
    font-size:12px;
    padding: 5px;
}
.btn-pagebar, .btn-pagebar:hover {
    font-family: Quirkivo;
    font-size: 12px;
    padding: 1px 5px 0px 5px;
}

.article_frame {
	font-family: Quirkivo;
    color: black;
    font-size:16px;
}
.btn-articles-list, .btn-articles-list:hover {
	font-family: Quirkivo;
    background-color: #bd6eff;
    color: white;
    font-size: 15px;
    padding: 1px 5px 0px 5px;
}
.btn-articles-list-read-more, .btn-articles-list-read-more:hover {
	font-family: Quirkivo;
    background-color: #42b9ff;
    color: white;
    font-size: 15px;
    padding: 1px 5px 0px 5px;
}
.btn-articles-search {
	font-family: Quirkivo;
    background-color:#4638d3;
    color: white;
}
.articles-list-title, .articles-list-title a {
	font-family: Quirkivo;
    text-decoration: none;
    font-size: 18px;
    color: #196cff;
}
.articles-list-title-link:hover {
	font-family: Quirkivo;
    text-decoration: underline;
    color: #196cff;
}
.map_frame {
	font-family: Quirkivo;
    height:650px;
}
.home_cat_row2_poetry {
	font-family: Quirkivo;
    min-width:380px;
    height: auto;
    width:48.65%;
    max-height:780px;
    border:0px solid red;
}
.home_cat_row2_stories {
	font-family: Quirkivo;
    min-width:380px;
    height: auto;
    max-height:780px;
    width:51.35%;
    border:0px solid red;
}


.loading-state {
    font-family: Quirkivo;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading {
    font-family: Quirkivo;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ddd;
    border-top-color: orange;
    animation: loading 1s linear infinite;
}
@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}

.mainbox {
    font-family: Quirkivo;
    text-align:left;
    line-height:normal !important;
    font-size:14px;
    color:#000;
    border:1px solid #333;
    width:490px;
    margin: auto;
    padding:20px;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height:normal !important;
}

.pinkbox {
    font-family: Quirkivo;
    background-color:#d6b0fd;
    color:#000;
    font-size:10px;
    padding:10px 30px;
}

.pinkboxtxt {
    font-family: Quirkivo;
    color:#000;
    font-size:16px;
    font-weight:bold;
    line-height:30px;
}

.itemcontainer {
    font-family: Quirkivo;
    display: block;
    position: relative;
    padding-top:5px;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.itemcontainer input,
.itemcontainer button {
    font-family: Quirkivo;
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.itemcontainer:hover input ~ .checkmark,
.itemcontainer:hover button ~ .checkmark {
    background-color: #c48dfc;
}

.itemcontainer input:checked ~ .checkmark,
.itemcontainer button:checked ~ .checkmark {
    background-color: #c48dfc;
}
.btn-close {
    background-color: white;
}
.btn-close:hover {
    background-color: white;
}
.btn-cart {
    color:black;
    background-color: #00f301;
}
.btn-cart:hover {
    color:black;
    background-color: #00f301;
}

.btn-cart-add, .btn-cart-add:hover {
    color:black;
    background-color: #ffe955;
}

.checkmark {
    font-family: Quirkivo;
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #c48dfc;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */


.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}


.itemcontainer input:checked ~ .checkmark:after {
    display: block;
}


.itemcontainer .checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.buynow_style, .buynow_subscription, #payButton_subscriptions {
    font-family: Quirkivo;
    border:1px solid #333 !important;
    background: #F2EDE3 !important;
    border-radius: 8px;
    padding:       7px 25px;
    color:         #000000 !important;
    display:       inline-block;
    font:          normal bold 15px/1 "Open Sans", sans-serif;
    text-align:    center;
    width:auto !important;
    cursor:pointer;
}

.addtocart_style, .addtocart_subscription {
    font-family: Quirkivo;
    border:1px solid #333 !important;
    background-color: #FAF8F3 !important;
    border-radius: 8px;
    padding:       7px 25px;
    color:         #000000 !important;
    display:       inline-block;
    font:          normal bold 15px/1 "Open Sans", sans-serif;
    text-align:    center;
    width:auto !important;
    cursor:pointer;
}

.buytheprint {
    font-family: Quirkivo;
    border:1px solid #333 !important;
    background:    #1ae4ff !important;
    border-radius: 8px !important;
    padding:       7px 25px !important;
    color:         #000000 !important;
    display:       inline-block;
    font:          normal bold 15px/1 "Open Sans", sans-serif;
    text-align:    center;
    cursor:pointer;
}
.menu-item {
    font-family: Quirkivo;
    padding-left:2px;
    padding-right:2px;
}



.largetitle {
    font-family: Quirkivo;
    font-size:27px;
    font-family: 'Times New Roman';
}

.centertitle {
    font-family: Quirkivo;
    text-align:center;
    margin-top:50px;
    font-size:27px;
    font-family: 'Times New Roman';
    font-weight:bold;
}

.hr1 {
    background-color:#000;
    height:1px;
    width:100%;
    margin:10px 0px 10px 0px;
}

.innertxt {
    font-family: Quirkivo;
    font-size:13px;
    font-weight:normal;
}
.innertxt_header {
    font-family: Quirkivo;
    font-size:14px;
    font-weight:normal;
}
pre {
    font-family: Quirkivo;
    background-color:white;
    width:80%;
    margin:auto;
    text-align:left;
}
.html_image_container {
    font-family: Quirkivo;
    position: relative;
    text-align: center;
    color: white;
}
.content_area {
    background-color:white;
    padding-left:5px;
    padding-right:0px;
    padding-top:10px;
}
.content_box {
    background-color:#ffffff;
    float:left;
    margin-left:20px;
    margin-right:10px;
    margin-top:13px;
    margin-bottom:13px;
    width:400px;
    height:470px;
    box-shadow: 0 0 17px #aaa;
}
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.overlay-content {
    color:white;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    overflow: auto;
}
/* print designer */
#pd_container {
    position: relative; /* Allows absolute positioning of the image */
    overflow: hidden; /* Hides overflow parts of the image */
    border: 0px solid #ccc; /* Optional: for visual reference */
    background-repeat: no-repeat;
}

#pd_image {
    position: absolute; /* Allows dragging outside the container */
    cursor: move; /* Default cursor for dragging */

}
.pd_frame {
    width:300px;
    min-height:156px;
/*    cursor:pointer; */
}
.pd_catalog {
    padding: 0px;
    float:left;
    margin:7px;
    height:250px;
    cursor:pointer;
    border:1px solid lightgray;
}
.pd_catalog h5 {
    margin:0;
    padding:0;
}
.pd_identifier {
    padding: 0px;
    float:left;
    margin:7px;
    height:350px;
    cursor:pointer;
    border:1px solid lightgray;
}
.pd_identifier h5 {
    margin:0;
    padding:0;
}
.pd_product {
    padding: 0px;
    float:left;
    margin:7px;
    max-width:800px;
    cursor:pointer;
    border:1px solid lightgray;
    max-width:350px;
}
.pd_product h5 {
    margin:0;
    padding:0;
}
.pd_frame_selected {
    border:2px solid black;
}
.pd_variations_item {
    float:left;
    height:300px;
    margin:7px;
}
#nav_size_selector {
    max-width:300px;
    margin:auto;
}
.pd_debug {
    font-size:11px;
}
.bs_tooltip {
  --bs-tooltip-bg: lightgray;
  --bs-tooltip-color: black;
}
.pd_products_description {
    font-size:10px;
    line-height:12px;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - var(--bs-modal-margin) * 2);
}
.form_mono input {
    font-family: ui-monospace;
}
.btn-primary {
    background-color: rgb(44, 153, 141) !important;
    border-color:black;
}
#pd_frame_style {

}
.pd_preview_overlay {
    background-color:white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.cart-text {
    font-weight:normal;
    line-height:19px;
    font-size:14px;
}

/* ============================================================
   Librifly — Story Card
   story-card.css (prefixed with story-)
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --story-color-bg:              #f0ede8;
  --story-color-card-bg:         #ffffff;
  --story-color-border:          #e2dfd9;
  --story-color-text-primary:    #1a1a18;
  --story-color-text-subtitle:   #3a3a38;
  --story-color-text-meta:       #5a5855;
  --story-color-text-muted:      #9a9890;
  --story-color-title-link:      #2e5fa3;
  --story-color-title-link-hover:#1a3f73;
  --story-color-excerpt:         #2a2a28;
  --story-color-badge-bg:        #ffffff;
  --story-color-badge-border:    #c8c5be;
  --story-color-badge-text:      #3a3a38;
  --story-color-words-bg:        #edeae4;
  --story-color-words-text:      #4a4845;
  --story-color-btn-secondary-bg:    #ffffff;
  --story-color-btn-secondary-border:#c8c5be;
  --story-color-btn-secondary-text:  #1a1a18;
  --story-color-btn-secondary-hover: #f5f3ef;
  --story-color-btn-primary-bg:      #1a1a18;
  --story-color-btn-primary-text:    #ffffff;
  --story-color-btn-primary-hover:   #333330;

  --story-font-display: 'EB Garamond', Georgia, serif;
  --story-font-body:    'DM Sans', sans-serif;

  --story-radius-card:  12px;
  --story-radius-badge: 999px;
  --story-radius-btn:   8px;

  --story-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.07);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Card ── */
.story-card {
  background: var(--story-color-card-bg);
  border-radius: var(--story-radius-card);
  box-shadow: var(--story-shadow-card);
  padding: 24px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Genre badge ── */
.story-card__badge-row {
  margin-bottom: 14px;
}

.story-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--story-radius-badge);
  border: 1px solid var(--story-color-badge-border);
  background: var(--story-color-badge-bg);
  font-family: var(--story-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--story-color-badge-text);
}

/* ── Title block ── */
.story-card__title-block {
  margin-bottom: 16px;
}

.story-card__title {
  font-family: var(--story-font-display);
  font-size: 30px;
  font-weight: 500;
  font-style: normal;
  color: var(--story-color-title-link);
  line-height: 1.2;
  margin-bottom: 6px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.story-card__title:hover {
  color: var(--story-color-title-link-hover);
}

.story-card__subtitle {
  font-family: var(--story-font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: var(--story-color-text-subtitle);
  line-height: 1.4;
}

/* ── Excerpt ── */
.story-card__excerpt {
  font-family: var(--story-font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--story-color-excerpt);
  border-left: 3px solid var(--story-color-border);
  padding: 2px 0 2px 18px;
  margin-bottom: 20px;
  list-style: none;
}

.story-card__excerpt em {
  font-family: var(--story-font-display);
  font-size: 15.5px;
  font-style: italic;
  color: var(--story-color-text-subtitle);
}

/* ── Divider ── */
.story-card__divider {
  border: none;
  border-top: 1px solid var(--story-color-border);
  margin: 0 0 16px;
}

/* ── Meta row ── */
.story-card__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.story-card__meta-publisher {
  font-size: 13px;
  font-weight: 600;
  color: var(--story-color-text-primary);
}

.story-card__meta-dot {
  font-size: 13px;
  color: var(--story-color-text-muted);
}

.story-card__meta-date {
  font-size: 13px;
  color: var(--story-color-text-meta);
}

.story-card__meta-words {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--story-color-words-bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--story-color-words-text);
  line-height: 1.6;
}

/* ── Footer: price + actions ── */
.story-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.story-card__price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.story-card__price-amount {
  font-family: var(--story-font-body);
  font-size: 26px;
  font-weight: 600;
  color: var(--story-color-text-primary);
  line-height: 1;
}

.story-card__price-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--story-color-text-meta);
  letter-spacing: 0.01em;
}

/* ── Buttons ── */
.story-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--story-radius-btn);
  font-family: var(--story-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.story-btn--secondary {
  background: var(--story-color-btn-secondary-bg);
  border-color: var(--story-color-btn-secondary-border);
  color: var(--story-color-btn-secondary-text);
}

.story-btn--secondary:hover {
  background: var(--story-color-btn-secondary-hover);
  border-color: #b0aca4;
}

.story-btn--primary {
  background: var(--story-color-btn-primary-bg);
  border-color: var(--story-color-btn-primary-bg);
  color: var(--story-color-btn-primary-text);
}

.story-btn--primary:hover {
  background: var(--story-color-btn-primary-hover);
  border-color: var(--story-color-btn-primary-hover);
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .story-card {
    padding: 20px;
  }

  .story-card__title {
    font-size: 24px;
  }

  .story-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-card__actions {
    width: 100%;
  }

  .story-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Poem Component Styles */
:root {
  --poem-color-bg: #f5f4f0;
  --poem-color-card-bg: #ffffff;
  --poem-color-preview-bg: #f5f4f0;
  --poem-color-border: #e0ddd6;
  --poem-color-text-primary: #1a1a18;
  --poem-color-text-meta: #6b6860;
  --poem-color-text-muted: #9a9890;
  --poem-color-link: #8b6f47;
  --poem-color-link-hover: #5c4830;
  --poem-color-tag-bg: #ffffff;
  --poem-color-tag-border: #d0cdc6;
  --poem-color-tag-text: #3a3a38;

  --poem-font-display: 'EB Garamond', Georgia, serif;
  --poem-font-body: 'DM Sans', sans-serif;

  --poem-radius-card: 10px;
  --poem-radius-tag: 999px;

  --poem-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.07);
}

/* Reset for poem component */
.poem-component *,
.poem-component *::before,
.poem-component *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Poem component wrapper */
.poem-component {
  background-color: var(--poem-color-bg);
  font-family: var(--poem-font-body);
  color: var(--poem-color-text-primary);
/*  min-height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
}

.poem-wrapper {
  width: 100%;
  max-width: 840px;
}

/* Poem card */
.poem-card {
  background: var(--poem-color-card-bg);
  border-radius: var(--poem-radius-card);
  box-shadow: var(--poem-shadow-card);
  overflow: hidden;
}

/* Header (meta bar) */
.poem-header {
  padding: 18px 28px 0;
}

.poem-meta {
  font-family: var(--poem-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--poem-color-text-meta);
}

.poem-meta .poem-dot {
  margin: 0 6px;
  color: var(--poem-color-text-muted);
}

/* Title */
.poem-title {
  font-family: var(--poem-font-display);
  font-size: 38px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--poem-color-text-primary);
  padding: 10px 28px 20px;
  letter-spacing: -0.01em;
}

/* Dividers */
.poem-divider {
  border: none;
  border-top: 1px solid var(--poem-color-border);
  margin: 0;
}

/* First-line preview */
.poem-preview {
  background: var(--poem-color-preview-bg);
  padding: 22px 28px;
  text-align: center;
}

.poem-preview-label {
  font-family: var(--poem-font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--poem-color-text-muted);
  margin-bottom: 12px;
}

.poem-preview-text {
  font-family: var(--poem-font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--poem-color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.poem-preview-text .poem-dots {
  color: var(--poem-color-text-muted);
  font-style: normal;
  letter-spacing: 4px;
  font-size: 16px;
}

.poem-preview-text .poem-lock-icon {
  font-style: normal;
  font-size: 16px;
  opacity: 0.65;
}

/* Details grid */
.poem-details {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
  padding: 24px 28px 20px;
}

.poem-details-left {
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.poem-details-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Fields */
.poem-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poem-field-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--poem-color-text-muted);
}

.poem-field-value {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--poem-color-text-primary);
  line-height: 1.4;
}

.poem-field-value--mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: var(--poem-color-text-meta);
  letter-spacing: 0.01em;
}

.poem-field--uuid .poem-field-value--mono {
  font-size: 12.5px;
  word-break: break-all;
}

/* Keywords / Tags */
.poem-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.poem-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--poem-radius-tag);
  border: 1px solid var(--poem-color-tag-border);
  background: var(--poem-color-tag-bg);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--poem-color-tag-text);
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: default;
}

.poem-tag:hover {
  border-color: #b0aca4;
  background: #faf9f7;
}

/* Also in */
.poem-also-in {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poem-also-in-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--poem-color-text-muted);
}

.poem-also-in-link {
  font-family: var(--poem-font-display);
  font-size: 15.5px;
  font-style: italic;
  color: var(--poem-color-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.poem-also-in-link:hover {
  color: var(--poem-color-link-hover);
  border-bottom-color: var(--poem-color-link-hover);
}

/* Rights footer */
.poem-rights {
  padding: 14px 28px;
  background: #faf9f7;
  border-top: 1px solid var(--poem-color-border);
  font-size: 12px;
  color: var(--poem-color-text-meta);
  line-height: 1.5;
}

.poem-rights strong {
  font-weight: 600;
  color: var(--poem-color-text-primary);
}

/* Responsive */
@media (max-width: 600px) {
  .poem-title {
    font-size: 28px;
    padding: 10px 20px 18px;
  }

  .poem-header {
    padding: 16px 20px 0;
  }

  .poem-preview,
  .poem-details,
  .poem-also-in,
  .poem-rights {
    padding-left: 20px;
    padding-right: 20px;
  }

  .poem-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .poem-details-left {
    padding-right: 0;
  }

  .poem-preview-text {
    font-size: 17px;
    flex-wrap: wrap;
  }
}
