:root {
  --twilightblue: #34435E;
  --onyx: #000f08;
  --snow: #FCF7F8;
  --babybreath: #e4dbe0;
  --lilac: #c8adcc;
  --pinkypie: #f5b2c1;
  --transparentsnow: #fcf7f8d0;
  --wildflower: #e06969;
  --pond: #3e99d4;
  --sky: #a7b9d7;
  --cloud: #b1cccf;
  --honey: #FFCA3A;
  --pollen: #ebbe82;
  --clay: #80400B;

  --space-sm:  0.75rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --content-width: 820px;
}

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

body {
  background-image: url(/textures/quilt2.jpg);
  background-size: 25%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', sans-serif;
}

/* Wraps the side nav + main + footer together and centers the whole block */
.content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 700px;
  margin: 0 auto;
  flex-grow: 1;
}

.sidenav {
  position: absolute;
  right: 100%;
  top: 0;
  margin-right: -8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 42px;
  z-index: 1;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  text-align: center;
  color: var(--onyx);
  text-decoration: none;
  width: 120px;
  padding: 6px 14px 6px 11px;
  box-sizing: border-box;
  background-color: var(--transparentsnow);
  border: 1.5px solid var(--twilightblue);
  border-right: none;
  border-radius: 13px 0 0 11px;
  box-shadow: -3px 3px 8px rgba(52, 67, 94, 0.2);
  transition: box-shadow 0.3s ease;
}

.tab-img {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-bottom 0.35s ease;
  margin-bottom: 0;
}

.tab-img img {
  display: block;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.35));
  padding-top: 4px;
}

.tab:hover .tab-img {
  max-height: 60px;
  margin-bottom: 4px;
}

.tab:hover {
  box-shadow: -6px 4px 12px rgba(52, 67, 94, 0.3);
}

#rightnav {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: -8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 42px;
  z-index: 1;
}

.rightsidenav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.righttab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  text-align: center;
  color: var(--onyx);
  text-decoration: none;
  width: 110x;
  /*padding is for the actual box, not spacing between items*/
  padding: 10px 16px 10px 13px;
  box-sizing: border-box;
  background-color: var(--transparentsnow);
  border: 1.5px solid var(--twilightblue);
  border-left: none;
  border-top-right-radius: 13px;
  border-bottom-right-radius: 11px;
  box-shadow: -3px 3px 8px rgba(52, 67, 94, 0.2);
  transition: box-shadow 0.3s ease, background-color 0.2s ease, color 0.2s ease;
  /* reset browser button defaults so <button> looks same as <a> */
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

.righttab.active {
  background-color: var(--wildflower);
  color: var(--snow);
  box-shadow: 3px 4px 10px rgba(52, 67, 94, 0.35);
}

.righttab-img {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-bottom 0.35s ease;
  margin-bottom: 0;
}

.righttab-img img {
  display: block;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.35));
  padding-top: 4px;
}

.righttab:hover .righttab-img {
  max-height: 60px;
  margin-bottom: 4px;
}

.righttab:hover {
  box-shadow: -6px 4px 12px rgba(52, 67, 94, 0.3);
}

/* Column that holds main + footer stacked */
.main-column {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Left column */
.leftcolumn {
  float: left;
  width: 75%;
}

/* Right column */
.rightcolumn {
  float: left;
  width: 25%;
  padding-left: 20px;
}


main {
  position: relative;
  z-index: 2;
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
  background: linear-gradient(to bottom, var(--snow), var(--babybreath));
  width: 100%;
  flex-grow: 1;
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 2%;
  box-sizing: border-box;
  box-shadow: 2px 2px 2px var(--twilightblue);
}

.button {
  padding: 10px 24px;
  background-color: var(--snow);
  border: 2px solid var(--honey);
  border-radius: 8px;
  cursor: pointer;
  transition-duration: 0.4s;
  width: 100px;
  box-shadow: 0 3px 1px var(--clay);
}

.button:hover {
  background-color: var(--transparentsnow);
  color: var(--clay);
}

.button:active {
  box-shadow: 0 1px 1px var(--clay);
  transform: translateY(3px);
}

.button1 {
  position: relative;
  left: 100px;
}

.button2 {
  position: relative;
  right: 100px;
}


#freetext {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 20px;
-moz-column-gap: 20px;
column-gap: 20px;
-webkit-column-rule: 1px solid rgba(28,110,164,0.49);
-moz-column-rule: 1px solid rgba(28,110,164,0.49);
column-rule: 1px solid rgba(28,110,164,0.49);
}

#notfound {
  border-radius: 25px;
  background-image: url(/textures/yellow.png);
  border-style: solid;
  border-color: var(--honey);
  color: var(--onyx);
  width: 500px;
  padding: 18px;
  box-sizing: content-box;
  box-shadow: 2px 2px 2px var(--clay);
}

footer {
  background-color: var(--lilac);
  width: 700px;
  margin-bottom: 0;
  min-height: 25px;
  text-align: center;
  color: #34435E;
  box-shadow: 2px 2px 2px var(--twilightblue);
}

/* ================================
   BLOG LAYOUT
   ================================ */
.blog-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 8px 28px 8px;
}

.blog-posts {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blog-sidebar {
  width: 170px;
  flex-shrink: 0;
}

.sidebar-card {
  background: var(--snow);
  border: 1.5px solid var(--sky);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--onyx);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--twilightblue);
  margin: 0;
}

.notecard {
  position: relative;
  background-color: #fdf9f0;
  /* Two layered backgrounds: margin line on top, ruled lines underneath */
  background-image:
    linear-gradient(to right, transparent 52px, #e06969 52px, #e06969 54px, transparent 54px),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 27px,
      #dee6ee 27px,
      #e1eaf1 28px
    );
  background-position: 0 0, 0 10px;
  border: 1px solid var(--clay);
  border-radius: 3px;
  box-shadow:
    2px 5px 18px rgba(0, 0, 0, 0.13),
    0 1px 2px rgba(0, 0, 0, 0.07);
  padding: 44px 24px 22px 68px;
  margin-bottom: 28px;
  line-height: 28px;
}

.notecard-date {
  font-size: 0.72rem;
  color: #a08060;
  letter-spacing: 0.05em;
  line-height: 28px;
  margin: 0;
}

.notecard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--twilightblue);
  line-height: 28px;
  margin: 0 0 4px 0;
}

.notecard-content {
  font-size: 0.88rem;
  color: var(--onyx);
}

.notecard-content p {
  margin: 0;
  line-height: 28px;
}

.notecard-content p + p {
  margin-top: 4px;
}

.notecard-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background-color: var(--honey);
  color: var(--onyx);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.hidden {
  display: none !important;
}

.cult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 16px 28px 16px;
}

.cult-card {
  border-radius: 25px;
  background-image: url(/textures/yellow.png);
  background-size: auto;
  border: 2px solid var(--honey);
  color: var(--onyx);
  padding: 18px 20px;
  box-shadow: 2px 2px 2px var(--clay);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cult-stars {
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--clay);
}

.cult-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--twilightblue);
  margin: 0;
  line-height: 1.3;
}

.cult-year {
  font-size: 0.75rem;
  color: var(--clay);
  margin: 0;
  letter-spacing: 0.04em;
}

.cult-blurb {
  font-size: 0.83rem;
  margin: 0;
  line-height: 1.5;
}

.free-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--twilightblue);
  margin: 0;
  line-height: 1.3;
}

.free-blurb {
  font-size: 0.83rem;
  margin: 0;
  line-height: 1.5;
}

.free-card {
  border-radius: 25px;
  background-image: url(/textures/yellow.png);
  background-size: auto;
  border: 2px solid var(--honey);
  color: var(--onyx);
  padding: 18px 20px;
  box-shadow: 2px 2px 2px var(--clay);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.free-image {
  width: 175px;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.35));
}

.inlineimagewtext {
  align-items: center;
  justify-content: center;
}

.inlineimg {
  max-width: 90%;
  max-height: 90%;
  float: right;
}

.cowboy {
  float: right;
  border-radius: 50%;
  border: var(--pinkypie) 5px solid;
}

.enlargeimg {
  transition: transform 0.3s ease;
  margin: 0 auto;
  background color: var(--snow);
  border: 2px solid var(--honey);
  border-radius: 12px;
}

.enlargeimg:hover {
  transform: scale(3);
  position: relative;
  z-index: 2;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: left;
}

.bullet-image {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    filter: drop-shadow(1px 1px rgba(0, 0, 0, 0.726));
    position: relative;
    z-index: 1;
}