
/* ===========================
   CSS VARIABLES & COLOR PALETTE
   =========================== */

 /* Light Mode */
  :root {
    --color-primary-dark: #242927;
    --color-sage: #242927;
    --color-gold: #242927;
    --color-coral: #242927;
    --color-bg-main: #e0dfdd;
    --color-bg-secondary: #e0dfdd;
    --color-bg-muted: #d7d6d4;
  }

  /* Dark Mode */
  [data-theme="dark"] {
    --color-primary-dark: #84817d;
    --color-sage: #5d7d75;
    --color-gold: #8b6a3d;
    --color-coral: #a85d4d;
    --color-bg-main: #1a1815;
    --color-bg-secondary: #232220;
    --color-bg-muted: #3d3a35;
  }

.theme-toggle {
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    width: 0;
    height: 0;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.theme-icon {
    width: 45px;
    height: 45px;
    position: absolute;
    top: -10px;
    left: -40px;
    transition: opacity 0.3s ease;
}

  .sun-icon {
    opacity: 1;
  }

  .moon-icon {
    opacity: 0;
  }

  [data-theme="dark"] .sun-icon {
    opacity: 0;
  }

  [data-theme="dark"] .moon-icon {
    opacity: 1;
  }

/* ===========================
   GLOBAL & RESET STYLES
   =========================== */

* {
  box-sizing: border-box !important;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--color-bg-main);
  color: var(--color-primary-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a:link,
a:visited,
a:hover {
  text-decoration: none;
  color: var(--color-primary-dark);
}


.button, button {

    cursor: pointer;
    font-weight: 700 !important;
    text-decoration: none;
    color: var(--color-primary-dark);
    background-color: var(--color-bg-main) !important;
    font-size: 1em;
    padding: 5px 20px;
    border: solid var(--color-primary-dark) 1px;
    margin-right: 5px;
}

.kill {
background-color: var(--color-primary-dark) !important;
color: var(--color-bg-main) !important;

}



.smallbutton {
    background-color: transparent;
    font-size: 0.9em !important;
    margin-right: 0px !important;
    margin-top: 5px;
    padding: 3px 10px !important;
    color: var(--color-primary-dark);
    border: solid var(--color-primary-dark) 1px;
}

input,
textarea {
  padding: 15px 15px 15px 15px;
    border: none;

    border-bottom: 1px solid  var(--color-primary-dark);
    border-top: 1px solid  var(--color-primary-dark);

  width: 60%;
  font-size: 1.1em;
  background-color: var(--color-bg-muted);
  color: var(--color-primary-dark);
}

textarea {
  min-height: 300px;
  width: 90% !important;
  field-sizing: content;
    background-clip: padding-box;
}

.fake-t {
    width: 90%;
}

.fake-b {
    width: 90%;
    border-top: 14px solid var(--color-primary-dark);
}

.spacer .fake-b {
    margin-bottom: 30px;
}

.spacer .fake-b, .spacer .fake-t {
    width: 60%
}

input:focus,
button:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

/* ===========================
   TYPOGRAPHY & FONT UTILITIES
   =========================== */

.anaheim {
  font-family: "Anaheim", sans-serif;
  font-optical-sizing: auto;
}

.small {
  padding-left: 5px; padding-top: 5px;
  margin-bottom: 50px;
}

.n {
  font-weight: 400 !important;
}

.b {
  font-weight: 700 !important;
}

.mb {
  font-weight: 500 !important;
}

.i {
  font-style: italic;
}

/* ===========================
   LAYOUT & DISPLAY UTILITIES
   =========================== */

#page-wrapper {
  margin-top: 65px;
}

[data-navigate-loading] {
  display: none !important;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.none {
  display: none;
}

.pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

.cursor-zoom-out {
  cursor: zoom-out;
}

.pleft-15 {
  padding-left: 15px;
}

.upper {
  text-transform: uppercase;
}

/* ===========================
   RIBBON & TOP BAR
   =========================== */

.ribbon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 10000;
}

.loading-bar {
  position: fixed;
  top: 0px;
  left: 0;
  width: 0%;
  height: 12px;
  background-color: var(--color-primary-dark);
  z-index: 10000;
}

.read {
  background-color: var(--color-sage);
}

.write {
  background-color: var(--color-gold);
}

.x {
  background-color: var(--color-coral);
}

/* ===========================
   NAVIGATION
   =========================== */

.nave {
  margin-right: 15px; padding-top: 15px;
  font-weight: 700;
  font-size: 1.15em;
  position: relative;
  display: inline-block;
}

.game {
    border-bottom: solid var(--color-primary-dark) 6px !important;
}

a.nave  {
  color: #232220;
}

#nave a::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: transparent;
  transition: width 0.3s ease;
}

#nave a:hover::after {
  width: 100%;
}

/* ===========================
   ENTRY CONTENT STYLES
   =========================== */

.entry-h {
  line-height: 1em;
  font-size: 4em;
  font-family: Baskerville; font-style: italic;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: normal !important;
  margin-bottom: 20px; 
}

.entry-b {
  font-size: 1.18em;
  line-height: 1.3;
  margin-top: 20px;
  color: var(--color-primary-dark);
}

.entry-b p {
  margin-bottom: 20px;
}

.entry-b p span {
  color: var(--color-sage);
  font-weight: 900;
  font-size: 40px;
  float: left;
  line-height: 30px;
  padding-right: 1px;
  margin-top: -8.5px;
}

.entry-b p span:nth-of-type(2) {
  color: transparent;
  display: inline-block;
  width: 10px;
}

.entry-b blockquote {
  display: block;
  margin-left: 20px;
  padding: 15px;
  border-left: solid var(--color-sage) 10px;
  margin-bottom: 20px;
}

blockquote p {
  margin: 0 !important;
}

.entry-b a, .alone a {
  padding-left: 2px;
  padding-right: 2px;
  position: relative;
  display: inline-block;
}

.entry-b a::after, .alone a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary-dark);
  transition: width 0.3s ease;
}

.entry-b a:hover::after, .alone a:hover::after {
  width: 0;
}

.entry-e {
  font-size: 1.15em;
  color: var(--color-primary-dark);
margin-bottom: 0px !important; margin-top: 5px !important;}

.spacer {
  margin-bottom: 20px;
}

.date {
  font-size: 0.9em;
  margin-top: 30px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-style: normal !important;
  font-weight: 700 !important;
}

/* ===========================
   IMAGES & THUMBNAILS
   =========================== */

.thumb {
  margin-top: 10px;
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.image-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-muted);
  z-index: 9999;
  padding-top: 10vh;
  text-align: center;
  cursor: zoom-out;
}

.image-container {
  width: 60vw;
  margin: 0 auto;
  position: relative !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.enlarged-image {
  width: 60vw;
  height: auto;
  border: solid white 14px;
  cursor: zoom-out;
}

.close {
  position: absolute;
  top: -40px;
  right: -50px;
  background: none;
  border: none;
  color: white;
  font-size: 1.6em;
  cursor: pointer;
}

/* ===========================
   STRIPS & CONTROLS
   =========================== */

.strip {
  width: 100%;
  height: 85px;
  padding-top: 2px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  border-top: solid var(--color-primary-dark) 1px;
  border-bottom: solid var(--color-primary-dark) 1px;
  background-color: var(--color-bg-secondary);
}

.strip-h {
  flex: 1 0 79%;
}



.strip-e, .strip-p {
  flex: 1 0 7%; padding-right: 15px; text-align: right; 
}

.strip-p {
  padding-top: 5px; 
}

.strip-e {
  padding-top: 2px; 
}

.strip-d {
  flex: 1 0 7%;
  padding-right: 15px; text-align: right;
    padding-top: 3px; 

  
}

.edit {
  font-size: 0.8em;
  letter-spacing: 1px;
  font-weight: 800;
}

.del {
  font-size: 1.4em;
  color: var(--color-sage); background-color: transparent;
  cursor: pointer;
  border: none;
}

/* ===========================
   DELETE MODAL
   =========================== */

.delete {
  background-color: var(--color-bg-muted); color: var(--color-bg-main) !important; margin-left: 2px;
}

.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 67, 67, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-modal-box {
  background: var(--color-bg-main);
  padding: 40px;
  border: 1px solid var(--color-primary-dark);
  max-width: 400px;
  display: inline-block;
  text-align: left;
}

.confirm-text {
  font-size: 1.2em;
}

.delete-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}


/* ===========================
   SIDEBAR & ASIDE
   =========================== */

aside {
  flex-shrink: 0;
  flex-basis: 22%;
  padding-top: 115px;
  padding-left: 20px;
  padding-right: 120px;
}

aside input {
  border-top: solid transparent 1px !important; 
  border-right: none; 
  border-left: none;
}

aside input:focus {
  border-color: var(--color-primary-dark) !important;
  transition: border-color 0.5s ease-in-out;
}

.xes {
  margin-top: 73px;
  overflow-y: auto;
  text-align: right;
  line-height: 1em;
}

.xes a {
  font-size: 1.05em;
  letter-spacing: 3px;
  font-weight: 780;
}

.xes .x,
.recents .read {
  height: 13px;
  margin-top: 10px;
}

.five {

   margin-bottom: 0px !important;
}

.vertical span {

    font-size: 1.3em !important;
  font-weight: 800 !important; 
}

.random {
    font-size: 1em;
    letter-spacing: 6px !important;
    display: block;
    font-weight: 800;
    margin-top: 20px;
    padding-right: 2px;
}

.recents {
  margin-top: 58px;
  overflow-y: auto;
  text-align: right;
  line-height: 1em;
  margin-bottom: 60px;
}

.recents a {
  font-size: 1.15em;
  letter-spacing: 0.5px;
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2em;
  padding-right: 2px;
}

/* ===========================
   SEARCH
   =========================== */

.search {
  margin-top: 20px;
  list-style-type: none;
  padding-left: 0;
  line-height: 1.1em;
}

.search li {
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom: 1px solid var(--color-primary-dark);
}

.where {
  position: relative;
  width: 100%;
  padding: 10px;
  padding-bottom: 8px;
  border-bottom: 14px solid var(--color-primary-dark);
  font-size: 1em;
  background-color: transparent;
}

.where::placeholder {
    color: var(--color-primary-dark);
}

.nowhere {
  position: absolute;
  right: 10px;
  top: 22px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.4em;
  color: var(--color-primary-dark);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* ===========================
   CHECKBOX STYLES
   =========================== */

input[type="checkbox"] {
  padding: 10px !important;
  border: none !important;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--color-gold);
  margin: 0;
  font: inherit;
  color: var(--color-primary-dark);
  width: 20px;
  height: 20px;
  border-radius: 0;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  margin-top: 3px;
}

input[type="checkbox"]::before {
  content: '';
  width: 0.65em;
  height: 0.65em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 300ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  background-color: var(--color-bg-main);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
}

.form-control {
  margin-left: 5px;
  grid-template-columns: 1em auto;
  gap: 0.5em;
  margin-top: -20px; margin-left: 25px;
}

.form-control + .form-control {
  margin-top: 1em;
}



  