/* ================================================
   MYRTLE CHILDRESS OFFICIAL WEBSITE STYLESHEET
   Established 2004 on the World Wide Web
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Times+New+Roman&display=swap');

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

body {
  background-color: #c8d8f0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23c8d8f0'/%3E%3Crect width='2' height='2' fill='%23b8cce8' opacity='0.4'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23b8cce8' opacity='0.4'/%3E%3C/svg%3E");
  font-family: "Times New Roman", Times, serif;
  color: #000080;
  min-height: 100vh;
}

/* ---- VISITOR COUNTER ---- */
.visitor-counter {
  text-align: center;
  font-size: 11px;
  color: #333;
  padding: 4px;
  background: #f0f0f0;
  border: 1px inset #999;
  display: inline-block;
  margin: 4px auto;
}

/* ---- OUTER WRAPPER ---- */
.page-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: #dce8f8;
  border-left: 3px ridge #6688bb;
  border-right: 3px ridge #6688bb;
  min-height: 100vh;
}

/* ---- HEADER ---- */
.site-header {
  background: linear-gradient(180deg, #3355aa 0%, #6688cc 40%, #9bb5e8 70%, #c8d8f0 100%);
  padding: 10px;
  text-align: center;
  border-bottom: 4px ridge #3355aa;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦";
  display: block;
  color: #ffdd00;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  animation: sparkle 2s infinite alternate;
}

@keyframes sparkle {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.site-header::after {
  content: "✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦ ✦";
  display: block;
  color: #ffdd00;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 6px;
  animation: sparkle 2s infinite alternate-reverse;
}

.header-title {
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 28px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 2px 2px 0px #000080, -1px -1px 0px #3355aa;
  letter-spacing: 1px;
  line-height: 1.1;
}

.header-subtitle {
  font-family: "Comic Sans MS", cursive;
  font-size: 13px;
  color: #ccddff;
  margin-top: 4px;
  font-style: italic;
}

.header-tagline {
  font-family: "Comic Sans MS", cursive;
  font-size: 11px;
  color: #ffff99;
  margin-top: 2px;
}

.header-photos {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.header-photo {
  width: 80px;
  height: 80px;
  border: 3px ridge #ffdd00;
  object-fit: cover;
  object-position: top;
  background: #6688cc;
}

.header-photo-label {
  font-size: 9px;
  font-family: "Comic Sans MS", cursive;
  color: #ffff99;
  text-align: center;
  margin-top: 2px;
}

/* ---- UNDER CONSTRUCTION / WELCOME BAR ---- */
.welcome-bar {
  background: #ffff99;
  border: 2px solid #ff6600;
  text-align: center;
  padding: 4px;
  font-family: "Comic Sans MS", cursive;
  font-size: 12px;
  color: #cc0000;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
}

.welcome-bar marquee {
  display: inline-block;
}

/* ---- NAVIGATION ---- */
.main-nav {
  background: linear-gradient(90deg, #3355aa, #6688cc, #3355aa);
  padding: 6px 10px;
  text-align: center;
  border-top: 2px ridge #9bb5e8;
  border-bottom: 2px ridge #9bb5e8;
}

.main-nav a {
  display: inline-block;
  margin: 3px 4px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #ffdd00 0%, #ff9900 100%);
  border: 2px outset #ffaa00;
  color: #000080;
  text-decoration: none;
  font-family: "Comic Sans MS", cursive;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.1s;
}

.main-nav a:hover {
  background: linear-gradient(180deg, #ff9900 0%, #ffdd00 100%);
  border: 2px inset #ffaa00;
  color: #cc0000;
}

.main-nav a.active {
  background: linear-gradient(180deg, #cc0000 0%, #ff6600 100%);
  color: #ffff00;
  border: 2px inset #990000;
}

/* ---- LAYOUT: TWO COLUMN (for homepage) ---- */
.two-col-layout {
  display: flex;
  align-items: flex-start;
}

.sidebar {
  width: 155px;
  min-width: 155px;
  background: linear-gradient(180deg, #6688cc, #9bb5e8);
  border-right: 3px ridge #3355aa;
  padding: 10px 6px;
}

.sidebar-section {
  margin-bottom: 14px;
}

.sidebar-heading {
  font-family: "Comic Sans MS", cursive;
  font-size: 11px;
  font-weight: bold;
  color: #ffff00;
  background: #3355aa;
  padding: 3px 6px;
  border: 1px outset #6688cc;
  text-align: center;
  margin-bottom: 5px;
  text-shadow: 1px 1px 0 #000080;
}

.sidebar-link {
  display: block;
  font-family: "Comic Sans MS", cursive;
  font-size: 11px;
  color: #ffff00;
  text-decoration: none;
  padding: 3px 5px;
  margin: 2px 0;
  background: rgba(0,0,128,0.3);
  border: 1px solid rgba(255,255,0,0.3);
}

.sidebar-link:hover {
  background: #ffff00;
  color: #000080;
}

.sidebar img.sidebar-photo {
  width: 100%;
  border: 2px ridge #ffdd00;
  margin-bottom: 4px;
  display: block;
}

.sidebar-caption {
  font-family: "Comic Sans MS", cursive;
  font-size: 9px;
  color: #ffff99;
  text-align: center;
}

/* ---- MAIN CONTENT AREA ---- */
.main-content {
  flex: 1;
  padding: 12px 14px;
  min-height: 500px;
}

/* ---- CONTENT BOXES ---- */
.content-box {
  background: #f0f5ff;
  border: 2px inset #6688cc;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.content-box-title {
  font-family: "Comic Sans MS", cursive;
  font-size: 16px;
  color: #cc0000;
  font-weight: bold;
  border-bottom: 2px solid #ffdd00;
  padding-bottom: 4px;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 #ffaa00;
}

.content-box p {
  font-size: 13px;
  line-height: 1.6;
  color: #000080;
  margin-bottom: 8px;
}

/* ---- PAGE HEADING (for sub-pages) ---- */
.page-heading {
  font-family: "Comic Sans MS", cursive;
  font-size: 22px;
  color: #ffff00;
  background: linear-gradient(90deg, #000080, #3355aa, #000080);
  text-align: center;
  padding: 8px;
  border: 3px ridge #ffdd00;
  margin-bottom: 14px;
  text-shadow: 2px 2px 0px #000033;
}

/* ---- BLOG / FEED ENTRIES ---- */
.blog-entry {
  background: #f0f5ff;
  border: 2px inset #6688cc;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.blog-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #6688cc;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.blog-entry-title {
  font-family: "Comic Sans MS", cursive;
  font-size: 14px;
  color: #cc0000;
  font-weight: bold;
}

.blog-entry-date {
  font-size: 11px;
  color: #666;
  font-style: italic;
  font-family: Arial, sans-serif;
}

.blog-entry p {
  font-size: 13px;
  line-height: 1.6;
  color: #000080;
}

/* ---- THOUGHT OF THE DAY ---- */
.thought-cloud-container {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.thought-cloud {
  position: relative;
  background: white;
  border-radius: 60px;
  padding: 30px 40px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,128,0.2);
  border: 3px solid #dde;
  animation: floatCloud 4s ease-in-out infinite;
}

@keyframes floatCloud {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.thought-cloud::before,
.thought-cloud::after {
  content: '';
  position: absolute;
  background: white;
  border: 3px solid #dde;
  border-radius: 50%;
}

.thought-cloud::before {
  width: 70px;
  height: 70px;
  bottom: -20px;
  left: 40px;
}

.thought-cloud::after {
  width: 45px;
  height: 45px;
  bottom: -40px;
  left: 20px;
}

.thought-bubbles {
  position: absolute;
  bottom: -68px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.thought-bubble-dot {
  background: white;
  border: 2px solid #dde;
  border-radius: 50%;
}

.thought-cloud-text {
  font-family: "Comic Sans MS", cursive;
  font-size: 17px;
  color: #000080;
  line-height: 1.5;
  font-style: italic;
}

.thought-cloud-attribution {
  margin-top: 14px;
  font-family: "Comic Sans MS", cursive;
  font-size: 12px;
  color: #cc0000;
  font-weight: bold;
}

/* ---- DIVIDERS ---- */
.divider {
  text-align: center;
  color: #ffdd00;
  font-size: 12px;
  margin: 8px 0;
  letter-spacing: 4px;
  text-shadow: 1px 1px 0 #cc8800;
}

hr.fancy {
  border: none;
  border-top: 3px groove #6688cc;
  margin: 10px 0;
}

/* ---- FOOTER ---- */
.site-footer {
  background: linear-gradient(180deg, #9bb5e8, #6688cc, #3355aa);
  padding: 10px;
  text-align: center;
  border-top: 3px ridge #3355aa;
  color: #ffff99;
  font-family: "Comic Sans MS", cursive;
  font-size: 10px;
}

.site-footer a {
  color: #ffff00;
  text-decoration: none;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.footer-badge {
  background: #000080;
  border: 2px outset #6688cc;
  color: #ffff00;
  font-size: 9px;
  font-family: Arial, sans-serif;
  padding: 2px 6px;
  display: inline-block;
}

/* ---- TABLE (Foundation page) ---- */
.foundation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: Arial, sans-serif;
  margin-bottom: 14px;
}

.foundation-table th {
  background: #000080;
  color: #ffff00;
  padding: 6px 8px;
  text-align: left;
  border: 1px solid #3355aa;
  font-family: "Comic Sans MS", cursive;
}

.foundation-table td {
  padding: 5px 8px;
  border: 1px solid #9bb5e8;
  background: #f0f5ff;
  color: #000080;
  vertical-align: top;
}

.foundation-table tr:nth-child(even) td {
  background: #dce8f8;
}

.table-scroll-wrapper {
  overflow-x: auto;
  border: 2px inset #6688cc;
  margin-bottom: 14px;
}

/* ---- GUESTBOOK / SIGN IN ---- */
.guestbook-box {
  background: #ffff99;
  border: 2px ridge #ff9900;
  padding: 10px;
  text-align: center;
  margin: 10px 0;
  font-family: "Comic Sans MS", cursive;
  font-size: 12px;
  color: #cc0000;
}

/* ---- ANIMATIONS ---- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.blink {
  animation: blink 1s infinite;
}

.rainbow-text {
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00cc00, #0000ff, #9900cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* ---- STAR RATING ---- */
.star-row {
  color: #ffdd00;
  font-size: 14px;
  text-shadow: 1px 1px 0 #cc8800;
}

/* ---- SINGLE COLUMN PAGE ---- */
.single-col {
  max-width: 640px;
  margin: 0 auto;
}

/* ---- IMAGE BORDERS (classic web) ---- */
img.framed {
  border: 3px ridge #6688cc;
  padding: 3px;
  background: white;
}

/* ---- SCROLLING TICKER ---- */
.ticker-wrap {
  background: #000080;
  overflow: hidden;
  padding: 4px 0;
  border-top: 1px solid #ffdd00;
  border-bottom: 1px solid #ffdd00;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  color: #ffff00;
  font-family: "Comic Sans MS", cursive;
  font-size: 11px;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(780px); }
  to { transform: translateX(-100%); }
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 600px) {
  .two-col-layout { flex-direction: column; }
  .sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 3px ridge #3355aa; }
  .header-title { font-size: 20px; }
}
