body{
  background-color: #1E1B16; 
}
.parent {
display: grid;
grid-template-columns: 0.5fr 4fr;
grid-template-rows: 0.5fr 7fr;
grid-column-gap: 0px;
grid-row-gap: 0px;
}
.navBar { grid-area: 1 / 1 / 2 / 3; max-height: 100px; margin-bottom: 2%;}
.subMenu { 
  grid-area: 2 / 1 / 3 / 2; 
  background-color: #a03e3e; 
  /* height: 100%;  */ 
  padding: 5%; 
  padding-top: 7%;
}
.mainCont { 
  grid-area: 2 / 2 / 3 / 3; 
  /* height: 100%;  */
  background-color: #a03e3e; 
}
.flexit{display: flex; justify-content: center;}
.histBox{width: 45%; max-height: 750px;}
.imgCont{width: 45%;}
.imgCont img{max-width: 75%;}
.homeCont {
    grid-area: 2 / 1 / 3 / 3;
    background-color: #a03e3e;  
    padding: 1%;
    }
    .largeCont {
    grid-area: 2 / 1 / 3 / 3;
    background-color: #a03e3e;  
    display: flex;
    justify-content: space-around;
    }

.navBar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #3B3328;
}

.navBar li {
  float: left;
}

.navBar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navBar li a:hover {
  background-color: #C9A66B;
  color: black;
}
.navBar .active {
  background-color: #A47551;
}
.subMenu .disclaimer-box{max-height: 100%;}

.disclaimer-box {
    border: 2px solid #5C2B2B; /* dark brown border */
    background-color: #EEE5CE; /* parchment-like background */
    padding: 2%;
    margin: 1%;
    width: 95%;
    font-family: 'Garamond', serif; /* fancy, storybook font */
    border-radius: 8px;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2);
    overflow-y: auto;
}
a{ color: #a03e3e}

h1 {
    color: #a03e3e; /* slightly dramatic color */
    font-size: 2em;
    margin: 5px;
}
h2, h3, h4, h5, h6{color: #a03e3e;}
.disclaimer-box p {
    font-size: 1.1em;
    line-height: 1.5em;
}

/* world history css */
.era-name {
    font-weight: bold;
    font-size: 1.1em;
}

table {
    width: 100%;
    border-collapse: collapse; /* removes double borders */
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #d4b563;
    padding: 10px;
    text-align: left;
    background-color: rgba(255, 248, 216, 0.85);
}

th {
    background-color: rgba(189, 172, 128, 0.85);
}
table tbody tr:nth-child(even) {
    background-color:rgba(165, 147, 91, 0.85);
}

table tbody tr:hover {
    background-color: rgb(255, 248, 216);
}
.eras-menu{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.eras-menu h2{
    text-align: center;
     color: #a03e3e;
}
.eras-menu li {
  border: 2px solid #6b4226;
  margin: 5%;
  align-content: center;
}
.eras-menu li a{
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.title{color: #a03e3e;}

/* map pages */

.all-continents{display: inline-flex;}
.continent-box{
  border: 2px solid #5C2B2B;
  justify-items: center;
  padding: 5%;
  margin: 1%;
  /* max-height: 270px; */
}
.continent-img{
  width: 100%;
}
.cont-size{max-width: 100%;max-height: 650px;}
.map-container {
  position: relative;
  aspect-ratio: 16/9; /* maintain map shape */
  width: 100%;
  max-width: 900px;
  border: 2px solid #5C2B2B;
}
.pin {
  position: absolute;
  width: 20px;
  height: 20px;
  background: red;          /* pin color */
  border: 2px solid white;  /* optional outline */
  border-radius: 50%;       /* make it circular */
   transform: translate(-50%, -50%); /* center pin at coordinates */
  cursor: pointer;
  opacity: 25%;
  transition: top 0.3s ease, left 0.3s ease;
}

.pin:hover {
  transform: translate(-50%, -50%) scale(1.5); /* enlarge on hover */
  transition: transform 0.2s;
  opacity: 50%;
}
.map-stage {
  position: relative;           /* pins position against this */
  width: min(100%, 1100px);     /* responsive, capped size */
  margin: 0 auto;
}

.map-stage img {
  display: block;
  width: 100%;
  height: auto;
}
#infoBox{margin-top: 1%;}

/* pantheon pages */
.tableCont{display: flex; width: 100%; justify-content: space-around;}
.panthBox{width: 45%; padding: 1%; border: 2px solid #5C2B2B; justify-items: center;}
.panthBox td, th{text-align: center;}
/* .panthBox table{width: 100%; table-layout: fixed;} */
/* .panthBox td, .panthBox th{word-wrap: break-word; white-space: normal; padding: 4px;} */
.sideHide li{display: hidden;}
#side-menu {
  margin: 1%;
  padding: 1%;
  /* background: #3B3328; dark background for contrast */
  font-family: 'Garamond', serif;
  font-size: 1.25rem;
}
#side-menu ul {
  list-style-type: none;
  padding-left: 0;
}
#side-menu a {
  display: block;
  padding-top: 10px;
  color: black; /* parchment tone text */
  text-decoration: none;
  font-size: 1.25rem;
}
#side-menu a:hover {
  background: #C9A66B;
  color: black;
}
.submenu {
  display: none; /* hidden by default */
  margin-left: 20px;
}
.menu-parent.open .submenu {
  display: block; /* visible when parent is toggled */
}
#god-mythos, #god-appearance{
  text-align: justify;
}

/* planes section */
.planes-wrapper {
  width: 100%;
  height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.info{width: 25%;}

.plane-ring-container {
  width: 100%;   /* original logical size */
  height: 100%;
  transform: scale(1);   /* JS can adjust this dynamically */
  /* transform-origin: center center; */
  top: 0px;
}

/* All links absolute and centered */
.plane-ring-container .center-circle a {
  position: absolute;
  /* top: 50%;
  left: 50%; */
  transform-origin: center center;
  text-align: center;
  width: 8vmin;
  height: 8vmin;
  line-height: 7vmin;
  font-size: 1.5vmin;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Color coding */
.center { background-color: #f39c12; }  /* orange */
.mid1 { background-color: #3498db; }   /* blue */
.outer { background-color: #9b59b6; }  /* purple */
.center {
  position: absolute;
  top: 25%;
  left: 50.5%;
  transform-origin: center center;
  z-index: 100;
}


.center span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8vmin;
  height: 8vmin;
  border-radius: 50%;
  background-color: #f39c12;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover scaling applied to the span */
.center span:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0.8vmin rgba(0,0,0,0.4);
  z-index: 10;
}


/* Mid ring quarter arcs */
.mid-ring a {
  position: absolute;
  top: 50%;
  left: 45%;
  width: 20vmin;   /* arc size */
  height: 20vmin;
  border: 3px solid #3498db;
  border-radius: 50%;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%); /* default quarter */
  background: rgba(52, 152, 219, 0.3); /* translucent blue */
  color: #1E1B16;
}

.mid-ring-svg {
  position: absolute;
  top: 30%;
  left: 52.5%;
  transform: translate(-50%, -50%);
  width: 60vmin;      /* matches your mid-ring radius ~20vmin (diameter = 40vmin) */
  height: 60vmin;
  z-index: 2;         /* under outer ring, over background */
}
/* arc styling = “pizza crust” */
.mid-arc {
  fill: none;
  stroke-width: 7;   /* thickness in viewBox units; scales with SVG */
  cursor: pointer;
  transition: stroke-width .2s, filter .2s, stroke .2s;
}

/* hover/active feedback */
.mid-arc:hover {
  stroke-width: 10;
}

/* Outer circle */
.outer {
  width: 8vmin;
  height: 8vmin;
  border-radius: 50%;
  font-size: 1.25vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  text-align: center;
  position: absolute;
  top: 25%;
  left: 50%;
  transform-origin: center center;
  z-index: 100;
  padding: 5px;
}

.outer span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8vmin;
  height: 8vmin;
  border-radius: 50%;
  background-color: #9b59b6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover scaling applied to the span */
.outer span:hover {
  transform: scale(1.5);
  box-shadow: 0 0 0.8vmin rgba(0,0,0,0.4);
  z-index: 10;
}

@media (max-width: 800px) {
.parent {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 0.25fr) 7fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.navBar { 
  grid-area: 1 / 1 / 2 / 2; 
  margin-bottom: 2%;
}
.subMenu { 
  grid-area: 2 / 1 / 3 / 2; 
  margin: 0px; 
  padding: 0px;
}
.mainCont { 
  grid-area: 3 / 1 / 4 / 2;
  display: block; 
  align-items: center;
  justify-items: center;
}
.largeCont { 
  grid-area: 3 / 1 / 4 / 2;
  display: block; 
  align-items: center;
  justify-items: center;
}
.tableCont { 
  grid-area: 3 / 1 / 4 / 2;
  display: block; 
  align-items: center;
  justify-items: center;
}
.panthBox{width: 95%; padding: 1%; border: 2px solid #5C2B2B; justify-items: center; margin: 1%;}
.flexit{display: block; justify-items: center;}
.histBox{width: 90%;}
.imgCont{width: 90%;}

.eras-menu h2 {display: block; margin: 1%;}
.eras-menu li {
  display: inline-flex;
  text-align: center;
  margin: 0px;
  width: 100px;
  height: 100px;
}
.eras-menu li a{
  padding: 0px;
  padding-top: 25%;
}
.subMenu .disclaimer-box{
  width: 92%;
  justify-self: center; 
  justify-items: center;
}

.pin {
  width: 15px;
  height: 15px;
}
.info{width: 100%;}
.plane-ring-container a {
  top: 45%;
  left: 45%;
}
.mid-ring-svg {
  top: 50%;
  left: 50%;
}

}

@media (max-width: 600px){
  .pin{width: 10px; height: 10px;}
  .plane-ring-container a {
  top: 35%;
  left: 45%;
}
.mid-ring-svg {
  top: 38%;
  left: 50%;
}
}
@media (max-width: 400px){
  .plane-ring-container a {
  top: 20%;
  left: 45%;
}
.mid-ring-svg {
  top: 22%;
  left: 50%;
}
}


