/* General layout */
body {
    font-family: 'Roboto', sans-serif;
  background: url('/assets/img/calligraphy-background.png') no-repeat center center fixed;
  background-size: cover;
  color: #2b2b2b;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Container and Columns */
.container {
  display: flex;
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  gap: 40px;
}

.left-column {
  flex: 2;
}

.right-column {
  flex: 1;
  border-left: 2px dashed #ccc;
  padding-left: 30px;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
  font-weight: bold;
  color: #471f08;
  margin-top: 0;
}

/* Form Styling */
form {
  margin-bottom: 30px;
}

select, button {
  font-size: 1em;
  padding: 8px 12px;
  margin-top: 8px;
  border: 1px solid #888;
  border-radius: 6px;
}

button {
  background-color: #471f08;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #6d3713;
}

/* Zodiac list */
.zodiac-list {
  list-style: none;
  padding: 0;
  font-size: 1.1em;
}

.zodiac-list li {
  margin-bottom: 10px;
}

.zodiac-list a {
  color: #471f08;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.zodiac-list a:hover {
  color: #000;
}

/* Years Grid */
.years-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding-left: 0;
}

.years-grid li {
  background: #f5f1ed;
  border: 1px solid #cbb;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* Compatibility section */
ul {
  margin-left: 20px;
}

strong {
  color: #7a2e0e;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .right-column {
    border-left: none;
    padding-left: 0;
    margin-top: 30px;
  }
}



/*****************************************/
/* Navigation */


/* make the nav-tools a horizontal list */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links li {
  position: relative; /* for the dropdown */
}
.nav-links a {
  color: #471f08;      /* whatever your header link color is */
  text-decoration: none;
  font-weight: bold;
}

/* hide the dropdown by default */
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;           /* just below its parent <li> */
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
}
/* style the dropdown items */
.nav-links .dropdown li {
  padding: 0;
  margin: 0;
}
.nav-links .dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #471f08;
}
.nav-links .dropdown li a:hover {
  background: #f5f1ed;
}

/* show it on hover */
.nav-links li.has-dropdown:hover > .dropdown {
  display: block;
}



/*****************************************/
/* Home Page */
.homeSplash {
	position:relative;
	background: no-repeat url('/assets/images/home-splash-snake.png');
	height:580px;
	width:100%;
	background-size:cover;
	background-position:50% 40%;
}

.homeSplashContent {
	max-width:1200px;
	margin:0 auto;
	position:relative;
}

.homeSplash .yearDetail {
	position:absolute;
	background-color: rgba(0, 0, 0, 0.8);
	right:0px;
	top:20px;
	max-width:550px;
	padding:10px 15px;
	color:#fff;
}

.homeSplash .yearDetail h2 {
	color:#fff;
	font-size:30px;
}

.homeSplash .yearDetail h3 {
	color:#fff;
	font-size:18px;
}

.homeSplash .zodiacForm label {
	
}

.homeContent {
	max-width:1200px;
	margin:0 auto;
	margin-top:20px;
}

.homeContent .horoscopes h4 {
	font-size:24px;
}

.homeSplash .exploreZodiac {
	background-color: rgba(255, 255, 255, 0.75);
	left:20px;
	top:20px;
	position:absolute;
	max-width:400px;
	padding:10px 10px;
}

.homeSplash .exploreZodiac h3 {
	color:#000;
	font-size:26px;
}

.homeSplash .zodiacList {
	  display: flex;
  flex-wrap: wrap;  
justify-content: flex-start;  
align-content: flex-start;	
}

.homeSplash .exploreZodiac img {
	width:80px;
}

.homeSplash .zodiacItem {
 display: flex;
  flex-direction: column;     /* stack icon above label */
  align-items: center;        /* center horizontally */
  text-align: center;	
    transition: transform 0.3s ease;
}

.homeSplash .zodiacItem a {
	text-decoration:none;
	
	color:#000;
}

.homeSplash .zodiacItem a:hover {
	color:red;
}

.zodiacItem:hover,
.zodiacItem:focus {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.2));
}

/*****************************************/
/* Compatability Page */



  body {
      font-family: 'Roboto', sans-serif;
    background: #f9f9fb;
    color: #333;
    margin: 0;
    padding: 20px;
  }

  form#familyForm {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: auto;
    margin-bottom: 30px;
  }

  form#familyForm label {
    display: inline-block;
    width: 140px;
    font-weight: 600;
    margin-top: 0px;
  }

  form#familyForm input[type="text"],
  form#familyForm select {
    padding: 3px 3px;
    margin: 2px 0px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }

  #addMemberBtn,
  form#familyForm input[type="submit"] {
    margin-top: 10px;
    padding: 8px 16px;
    background: #4a90e2;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #addMemberBtn:hover,
  form#familyForm input[type="submit"]:hover {
    background: #357ABD;
  }

  .member {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e1e1e1;
    background: #fafafa;
    border-radius: 6px;
  }

  .member select,
  .member input[type="text"] {
    margin: 0 6px 6px 0;
  }

  .member button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
  }

  .member button:hover {
    background: #c0392b;
  }

  #harmonyScore {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 15px;
    border-radius: 8px;
    max-width: 700px;
    margin: 20px auto;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  }

  #harmonyScore strong {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
  }

  #harmonyScore em {
    font-style: normal;
    font-weight: 600;
    color: #f57c00;
  }

  #chart {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px;
  }

/* HERO + STAMPS */
/* Hero container: give it height & establish a positioning context */
.hero {
  position: relative;
  width: 100%;
  height: 600px;         /* or whatever fixed height you chose */
  overflow: hidden;
}

/* Hero-bg: absolutely fill its parent and paint the dynamic background */
.hero-bg {
  position: absolute;
  inset: 0;              /* shorthand for top/left/right/bottom = 0 */
  z-index: -1;            /* behind everything */
}

/* Hero content (text + traits) */
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;        /* same max as your .container */
  margin:0 auto;
  box-sizing: border-box;   /* include padding in that 1200px */
  z-index: 1;
}

/* Big animal name */
.hero-title {
  font-size: 7rem;
  margin: 0;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
	.hero-main.dragon {
		color:#fff;
		margin-bottom:3em;
	}
	.hero-main.tiger {
		filter: drop-shadow(3px 3px 3px rgba(255, 255, 255, 0.45));
	}

.hero-title.dog {
	position:absolute;
	left:2.3em;
}

.hero-title.rooster {
	position:absolute;
	top:1.5em;
}

.hero-title.sheep {
	position:absolute;
	top:1.7em;
}


/* Optional small ideogram */
.hero-ideogram {
  font-size: 2.5rem;
    font-family: 'Roboto', sans-serif;
  margin-top: 0.25em;
  opacity: 0.7;
}

/* Trait keywords */
.hero-traits {  
  background: rgba(255,255,255,0.8);
  display:inline-block;
  position:absolute;
  border-radius: 20px;
  color:#000;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));	
}

	.hero-traits.dragon { top:10em; }
	.hero-traits.snake { top:12em; }
	.hero-traits.monkey { top:8em; }
	.hero-traits.rabbit { top:8em; }
	.hero-traits.rat { top:7.5em; }
	.hero-traits.sheep { top:21em; }
	.hero-traits.pig { top:12.5em; }
	.hero-traits.dog { top:8em; left:20em; }
	.hero-traits.rooster { top:18em; }
	.hero-traits.tiger {
		left:20em;
		top:3.5em;
	}

.hero-traits h2 {
	font-size:80px;
}

.hero-trait {
  display: inline-block;
  background:none !important;
  padding: 0.25em 0.6em;
  margin-right: 0.5em;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top:0px;
}



.hero-dates {
	position:absolute;
  background: rgba(255,255,255,0.8);
  padding: 0.5em 1em;
  border-radius: 4px;
  max-width:300px;
  display: inline-block;
}
	.hero-dates.tiger 	{ top:22em; left:6em; }
	.hero-dates.rabbit 	{ top:12em; }
	.hero-dates.pig 	{ top:16.5em; }
	.hero-dates.dragon 	{ top:14em; }
	.hero-dates.snake 	{ top:16em; }
	.hero-dates.monkey 	{ top:12em; }
	.hero-dates.sheep 	{ top:25em; }
	.hero-dates.rooster { top:22em; }
	.hero-dates.dog 	{ left:14em; top:12em; }
	.hero-dates.rat 	{ top:5.8em; left:45em; }
	


.hero-date-header {
  display: flex;
  align-items: center;
}

.hero-date-icon {
  width: 32px;       /* or whatever fits your design */
  height: 32px;
  margin-right: 0.5em;
}

.hero-dates strong {
  font-size: 1.1rem;
  color: #5c2c06;
}

.hero-dates em {
  display: block;
  margin-top: 0.25em;
  font-style: normal;
  color: #333;
}

.hero-sub {
  display: block;       /* drop it under “Dragon” */
  font-size: 1rem;      /* small & subtle */
  color: white;          /* or match your palette */
  margin-top: 1.5em;
  margin-left:0.4em;
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
}



/**************** Element Page *******************/
.element-year-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
}

/* Base table styling */
.element-year-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px; /* ensures horizontal scroll if too narrow */
}
.element-year-table th,
.element-year-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

/* Responsive “stacked” view on very small screens */
@media (max-width: 480px) {
  .element-year-table,
  .element-year-table thead,
  .element-year-table tbody,
  .element-year-table th,
  .element-year-table td,
  .element-year-table tr {
    display: block;
  }
  .element-year-table thead tr {
    /* hide the header row */
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .element-year-table tr {
    margin-bottom: 1rem;
  }
  .element-year-table td {
    /* show label before each cell */
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  .element-year-table td::before {
    content: attr(data-label) " ";
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 0.75rem;
    font-weight: bold;
    text-align: left;
  }
}	


* {
  box-sizing: border-box;
}





/* ────────────────────────────────────────────
   Section & Articles
──────────────────────────────────────────── */
section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.element-traits {
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 6px solid;
  background: #f9f5ef;
  border-radius: 4px;
}

.element-wood { border-color: var(--wood); }
.element-fire { border-color: var(--fire); }
.element-earth { border-color: var(--earth); }
.element-metal { border-color: var(--metal); }
.element-water { border-color: var(--water); }

/* ────────────────────────────────────────────
   Tables
──────────────────────────────────────────── */
.element-year-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.element-year-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.95rem;
}

.element-year-table th,
.element-year-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
}

.element-year-table thead th {
  background: rgba(139,0,0,0.1);
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.element-year-table tbody tr:nth-child(odd) {
  background: rgba(0,0,0,0.02);
}

/* Responsive “stacked” view */
@media (max-width: 480px) {
  .element-year-table,
  .element-year-table thead,
  .element-year-table tbody,
  .element-year-table th,
  .element-year-table td,
  .element-year-table tr {
    display: block;
  }
  .element-year-table thead tr {
    position: absolute; top: -9999px; left: -9999px;
  }
  .element-year-table tr {
    margin-bottom: 1rem;
  }
  .element-year-table td {
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  .element-year-table td::before {
    content: attr(data-label)": ";
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 0.75rem;
    font-weight: 600;
    text-align: left;
  }
}


/* ────────────────────────────────────────────
   Calendar
──────────────────────────────────────────── */
       .calendar-container {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            margin-top: 30px;
            text-align: center;
        }
        .day-header {
            font-weight: bold;
            background-color: #ff7043;
            color: white;
            padding: 8px;
            border-radius: 4px;
        }
        .calendar-day {
            background-color: white;
            border-radius: 4px;
            padding: 10px;
            height: 80px;
            position: relative;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .highlight {
            border-top: 3px solid #ff7043;
            font-weight: bold;
        }
        .event-name {
            position: absolute;
            bottom: 5px;
            left: 0;
            right: 0;
            font-size: 0.75rem;
            color: #ff7043;
        }
    #calendar {
      background: #fff;
      padding: 10px;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      margin-top: 20px;
    }
    .fc .fc-toolbar-title {
      font-size: 1.25rem;
      color: #ff7043;
    }

        

/*———————————————————————————————————————————
  ELEMENTS PAGE — force site-colours & kill purple
———————————————————————————————————————————*/
.elements-page a.element-link,
.elements-page a.element-link:visited,
.elements-page nav.toc a,
.elements-page nav.toc a:visited {
  /* your normal link colour */
  color: #471f08 !important;
  text-decoration: none !important;
}

/* On hover / active */
.elements-page a.element-link:hover,
.elements-page a.element-link:active,
.elements-page nav.toc a:hover,
.elements-page nav.toc a:active {
  color: #000 !important;
  text-decoration: underline !important;
}

/* ——————————————————————————————————————————
  Header nav: keep “visited” from going purple
———————————————————————————————————————————*/
.site-header .nav-links a:visited {
  color: #5c2c06 !important;
}



/* two-column intro on desktop, single column on mobile */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;  
  gap: 2rem;
}
@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr 1fr; /* toc | explore | image */
    align-items: start;
  }
}

/* simple card style for each element link */
.element-card {
  background: #fff;
  border: 1px solid #eee;
}
.element-card a {
  color: inherit;
  text-decoration: none;
}
.element-card:hover {
  transform: translateY(-2px);
}


.elements-page .intro-grid {
  display: grid;
  grid-template-columns: 1fr;      /* mobile = one column */
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .elements-page .intro-grid {
    grid-template-columns: 2fr 2fr 3fr;  /* adjust ratios as you like */
  }
}

/* keep graphic hidden on small screens (optional) */
.elements-page .image-wrapper {
  display: none;
}
@media (min-width: 768px) {
  .elements-page .image-wrapper {
    display: block;
  }
}

/* make the image scale nicely */
.elements-graphic {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


