/* ------------------------------------ */
/*       GLOBAL PROJECT STYLESHEET      */
/* ------------------------------------ */

/* ---------- Color Reference --------- */
/* #262014 - dark, background
/* #F2F0E5 - light, text
/* #F0AA11 - yellow, accent
/* ------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}


/* ----------- Custom Fonts ----------- */
@font-face {
    font-family: LibreBaskerville;
    src: url('../fonts/LibreBaskerville-Regular.ttf');
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: LibreBaskerville;
    src: url('../fonts/LibreBaskerville-Bold.ttf');
    font-style: normal;
    font-weight: bold;
}
@font-face {
    font-family: LibreBaskerville;
    src: url('../fonts/LibreBaskerville-Italic.ttf');
    font-style: italic;
    font-weight: normal;
}
@font-face {
    font-family: SourceSans;
    src: url('../fonts/SourceSans3-VariableFont_wght.ttf');
    font-style: normal;
}
@font-face {
    font-family: SourceSans;
    src: url('../fonts/SourceSans3-Italic-VariableFont_wght.ttf');
    font-style: italic;
}

/* --------- Basic Font Styles -------- */
body { font-family: SourceSans; }
h1, h2, h3, h4, h5, h6 { font-family: LibreBaskerville; font-weight: bold; }

/* --------- Basic Color Styles ------- */
* { scrollbar-color: #6C614D #262014; }
body { 
    color: #F2F0E5;
    background-color: #262014;
}
::selection {
    background: #546d83;
}

/* --------- Basic Size Styles --------- */
h2 { font-size: 1.85em; }
h3 { font-size: 1.35em; }


/* ----------- Custom Anchors ---------- */
.anchor[name="tour"] { scroll-margin-top: 160px; }
.anchor[name="production"] { scroll-margin-top: 100px; }
.anchor[name="genealogies"] { scroll-margin-top: 45px; }

/* ------------------------------------- */




/* ---------------- Navbar ------------- */
.navbar {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    padding: 0 1em;
    background-color: #262014;
}
.navbar ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.navbar ul li {
    font-size: 0.9em;
    padding: 0.8em 1.5em;
}
.navbar a:link, .navbar a:visited {
    text-decoration: none;
    color: #F2F0E5;
    transition: 0.2s;
}
.navbar a:hover, .navbar a:active {
    color: #F0AA11;
}


/* ------------- Title Splash ---------- */
.titlesplash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(56,50,39,0.75), rgba(56,50,39,0.6) 20% 80%, rgba(56,50,39,0.75)), url('../img/splash_map_cropped.png');
    background-position: 50% 50%;
    height: 80vh;
}
.titlesplash h1 {
    margin: 0;
    text-align: center;
    font-size: 3em;
    text-shadow: 2px 4px 4px rgba(56,50,39,0.5);
}

/* --------------- Map Tour ------------ */
.tour h2 { 
    margin: 2.5em auto 1em; 
    text-align: center;
}
.tour {
    margin: 2.8em 0;
}

.tour .container {
    width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 500px;
    gap: 70px;
}

.textbox {
    background-color: #484236;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 6fr 1fr;
    gap: 15px;
    padding: 10px;
}

#section_title {
    grid-column: 1 / 3;
    font-size: 1.35em;

}
#section_title h3 { 
    margin: 20px 20px 0 20px;
}

#section_text {
    grid-column: 1 / 3;
    line-height: 1.45;
    font-size: 1.15em;
    overflow-y: scroll;
    scrollbar-color: #6C614D #383227;
    margin: 0 15px 10px 20px;
    padding-right: 1em;
}
#section_text p { margin-top: 0; }

.textbox button {
    border: none;
    cursor: pointer;
    background-color: #484236;
    transition-duration: 0.2s;
}
.textbox button:hover {
    background-color: #6C614D;
}
.icon {
    width: 1.5em;
    height: 1.5em;
    vertical-align: -0.125em;
}

.mapbox {
    background-color: #484236;
    overflow: hidden;
}

/* --------------- Content ------------- */
.content {
    width: 650px;
    margin: auto;
}
.content img.figure { 
    display: block;
    margin: 3em auto 1em; 
}
.content div.figure {
    text-align: center;
    margin: 3em auto 1em; 
}
.figure_outside {
    text-align: center;
    margin: 3em auto 1em;
}

.content h2 {
    text-align: center;
}
.content p {
    line-height: 1.45;
    font-size: 1.15em;
}

.genealogies {
    margin-top: 2.5em;
}

p.caption {
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 2.5em;
}

.content a:link, .content a:visited {
    color: #F0AA11;
}
.content a:hover, .content a:active {
    color: #f6d783;
}

/* ------------- Bibliography ----------- */
.bibliography {
    width: 650px;
    margin: auto;
}
.bibliography h2 {
    text-align: center;
    margin-top: 3em;
}
.bibliography h3 {
    margin-top: 2.5em;
}

.bibliography p {
    line-height: 1.25;
    font-size: 1.1em;
}

.bibliography .sources {
    padding-left: 2em;
}

.bibliography .sources p:first-letter {
    margin-left: -2em;
}

/* ---------------- Footer -------------- */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 30px;
}
.footer p {
    line-height: 1.5;
}

