:root {
    --bg: #FAF9F6;
    --box-bg: #eed7cd;
    --alt-bg: #f6eae4;
}


@font-face {
    font-family: 'Mondwest';
    src: url('/fonts/Mondwest.otf') format(opentype);
}

/* TABLE OF CONTENT
BODY
BOXES
GRID
LINKS
POSITIONING
TABLES
PHONE STUFF
*/


/* === BODY === */
html {
    background-color: var(--bg);
}


* {
    font-family: 'Mondwest', serif;
}

*:lang(zh),
*:lang(ja),
*:lang(ko) {
    font-family: serif;
}

h1 {
    font-size: 4rem;
    text-align: center;
}

hr {
    border: 1px solid black;
}

blockquote {
    margin: 0 15%;
}

/* === BOXES === */
.box {
    background-color: #FAF9F6;
    border: 4px solid black;
    margin: 1% 2%;
}

.inner-box {
    justify-items: center;
    border: 2px dotted black;
    background-color: #fdf3f2;
    margin: 1% 2%;
}


/* === GRID === */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    justify-items: center;
}

header {
    grid-row: 1;
    grid-column: 1 / span 3;
}

main {
    grid-row: 2;
    grid-column: 1 / span 3;
    justify-items: center;
}

footer {
    grid-row: 3;
    grid-column: 1 / span 3;
    border-top: 2px black solid;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 49%));
    gap: 2%;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 32%));
    gap: 2%;
}

.auto-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.col1 {grid-column: 1};
.col2 {grid-column: 2};
.col3 {grid-column: 3};

/* === IMAGE MAP === */
.image:hover img {
    transform: rotate(10deg);
}

.image p {
    opacity: 0%;
}

.image:hover p {
    opacity: 100%
}

.link {
    background-color: white;
    font-size: 2rem;
    position: absolute;
}

.image a {
    text-decoration: none;
}

/* === LINKS === */
a {
    color: black;
}

a:hover, h1 a {
    text-decoration: none;
}

a:not([href]) {
    color: gray;
    text-decoration: line-through;
}

a:not([href]) img {
    filter: grayscale(100%);
}

a h1 {
    text-decoration: none;
}

/* === POSITIONING === */
.center {
    text-align: center;
}

.image-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === TABLES === */
td {
    border: 1px solid black;
    padding: 2px;
}

.genealogy td, th {
    text-align: center;
}

.genealogy td:nth-child(1) {
    text-align: left;
}

.genealogy td:nth-child(2) {
    border-right: none;
}
.genealogy td:nth-child(3) {
    border-left: none;
}

#table2 {
    border-right: 1px solid black;
}

/* === PHONE STUFF === */