:root {
    --bg-color: #bebebecf;
    --bg-box-color: rgba(255, 255, 255, 0.4);
    --text-color: #322b2b;
    --text-color-box-heading: #743b3b;
    --heading-color: #757b85;
    --highlight-color: rgba(83, 57, 7, 0.332);
    --table-heading-color: #757b85;
    --table-heading-text-color: #dcdee2;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;   
  color: var(--text-color);
  box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    text-align: justleftify;
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}

body.page-home {
    background-image: url('/images/background.png');
}

body.page-family {
    background-image: url('/images/background-family-standing.png');
}

body.page-tree {
    background-image: url('/images/background-tree.png');
}

body.page-certificates {
    background-image: url('/images/background-certificates.png');
}

body.page-certificates-birth {
    background-image: url('/images/background-certificates-birth.png');
}

body.page-certificates-death {
    background-image: url('/images/background-certificates-death.png');
}

body.page-certificates-marriage {
    background-image: url('/images/background-certificates-marriage.png');
}
body.page-census {
    background-image: url('/images/background-census.png');
}

body.page-research {
    background-image: url('/images/background-researching.png');
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 0.6em;
    background-color: rgba(113, 113, 113, 0.5); 
    padding: 2px;
    z-index: 1000; 
     display: flex;
    justify-content: right; /* center; */
    align-items: center;
    height: 20px;
}   

.hr-orange {
  border: none;
  border-top: 2px solid var(--highlight-color);
  margin: 20px 0;
}


h1, h2, h3 {
    color: var(--heading-color);
    padding-right: 10px;
    padding-bottom: 5px;
}

h1 {
    color: var(--heading-color);
    font-size: 5em;
    text-align: center;
    display: inline-block;
    position: relative;
    width: 100%;
    margin-bottom: 0.2em;
    padding-top: 18px;
}

h1::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 30px;
    width: 100%;
    height: 3px;
    background-color: var(--heading-color);
}   

h2 { 
    color: var(--highlight-color);
    font-size: 2.5em; 
    margin-top: 15px;
    margin-bottom: -15px;
}

h3 { 
    font-size: 1.5em; 
    color: var(--highlight-color);
    margin-bottom: -15px;
}   

p {
    color: var(--text-color);
    font-size: 1.0em;
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 10px;
    /*border-left: 2px solid var(--bg-color);*/
}

ul {
    padding-left: 20px;
    margin-left:50px;
}

.img-right {
    display: inline-block;
    float: right;
    padding: 20px;
    max-width: 500px;
} 


/* Navigation Bar */
/* ------------------------------------------------- */
/* Style the sticky navigation bar */
.navbar {
    position: fixed; /* Keeps it at the top, out of the document flow */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(5px); /* Optional: adds a glass-morphism blur effect */
    overflow: hidden;
    z-index: 1000; /* Ensures it stays above all other content */
    display: flex;
    justify-content: flex-start;
    padding: 2px 0;
}

/* Style the navigation links */
.navbar a {
    display: block;
    color: white;
    text-align: center;
    padding: 2px 20px;
    text-decoration: none;
    font-size: 16px;
}

/* Change color on hover */
.navbar a:hover {
    background-color: #555;
}

/* Style the main content to see the scrolling effect */
.content {
    padding: 20px;
    height: 2000px; /* Just to enable scrolling */
    background: linear-gradient(180deg, #e0f7fa, #ffffff);
}



/*--------- optionbox section ---------*/
#optionbox {
    padding: 3px 0;
    color: var(--text-color);
    font-size: 1em;
    padding-left: 20px;
}
.optionbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 25px;
    margin-top: 30px;
    min-height: 300px;
    margin-bottom: 20px;
}
.optionbox-list div {
    background: var(--bg-box-color);
    padding: 0px;
    font-size: 1em;
    font-weight: 300;
    border-radius: 15px;
    transition: background 0.5s, transform 0.5s;
    position: relative;
}
.optionbox-list div img {
    padding: 0;
    width: 100%;
    max-height: 160px;
    margin-bottom: 1px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    opacity: 100%;
}

.optionbox-icon {
    color: var(--text-color-box-heading);
    display: inline-block;
    vertical-align: middle;
    font-size: 2em;
    padding-left:10px;
}

.optionbox-list div h2 {
    font-size: 1.1em;
    font-weight: 200;
    color: var(--text-color-box-heading);
    margin-bottom: 5px;
    margin-top: 0px;
    font-style: italic;
    border-radius: 6px;
    padding: 0;
}

.optionbox-list div a {
    text-decoration: none;
    color: var(--text-color);
    text-align: justify;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 1px solid ;
}

.optionbox-list div:hover {
    /*background: #ff004f;*/
    transform: translateY(-10px);
    cursor: pointer;
}
.optionbox-list p {
    color: var(--text-color);
    font-size: 0.7em;
    margin: 0;
    padding-bottom: 10px;
    padding-right: 20px;
}
.optionbox-list p a {
    text-decoration: none;
    color: var(--text-color);
}
.optionbox-list p a:hover {
    color: var(--text-highlight-color);
    text-decoration: underline;
}


/* ------------------- tables -------------------*/
.table-center-container {
  display: flex;
  justify-content: center;
}   

table {
    font-size: 0.75em;
    border-collapse: separate;
    border-spacing: 0px;
    border: 1px solid var(--bg-box-color);
    
    table-layout: fixed;
}

th, td {
    padding: 3px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

th {
    background-color: var(--table-heading-color);
    color: var(--table-heading-text-color);
    font-weight: bold;
}

tr:nth-child(even) {
  background-color: var(--bg-box-color);
}

/* 
tbody tr:hover {
    background-color: var(--highlight-color);
}
*/


/* Timeline Bar */
/* ------------------------------------------------- */
.timeline {
    margin: 0 auto;
    max-width: 1100px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
    color: white;
}

.timeline__component {
    margin: 0px 20px 20px 20px;
}

.timeline__component--bg {
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.timeline__date {
    color: var(--heading-color);
    font-weight: bold;
}

.timeline__date--right {
    text-align: right;
}

.timeline__middle {
    position: relative;
    background: var(--heading-color);
}

.timeline__point {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    background: var(--heading-color);
    transform: translateX(-50%);
    border-radius: 50%;
}

.timeline__point--bottom {
    top: initial;
    bottom: 0;
}

.timeline__title {
    margin: 0;
    font-size: 1.25em;
    font-weight: bold;
}

.timeline__paragraph {
    font-size: 0.8em;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}