:root
{
    --primary-color: hsl(43, 27%, 36%);
}

/* General rules */
* { box-sizing: border-box; }
html { height: 100%; overflow-y: scroll;}
body
{
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-optical-sizing: auto;
    background-color: white;
}
main
{
    display: flex;
    flex-direction: column;
    max-width: 1140px;
    min-height: 100vh;
    margin: 0 auto;
}

.material-symbols { font-family: 'Material Symbols Outlined'; }
.material-symbols-outlined { vertical-align: middle; }
h2 .material-symbols-outlined
{
    display: inline-block;
    font-size: 40px;
    width: 48px;
}
a
{
    color: var(--primary-color);
    text-decoration: none;
}
a:focus
{
    outline: 4px solid var(--primary-color);
    outline-offset: 4px;
}
a:hover { text-decoration: underline; }

button,a.btn
{
    display: inline-block;
    font-size: 18px;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: bold;
}
button:hover,a.btn:hover
{
    background-color: white;
    color: var(--primary-color);
    outline: 3px solid var(--primary-color);
}
input
{
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
}
input:focus
{
    outline: 4px solid var(--primary-color);
    outline-offset: -2px;
}

/*** Header ***/
bde-header
{
    margin-top: 16px;
    position: relative;
    padding-left: 128px; 
    border-radius: 16px 16px 0 0;
    background-color: rgba(184, 134, 11, .6);
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.025) 0px,
        rgba(255,255,255,0.025) 6px,
        transparent 6px,
        transparent 12px
    );
}
bde-header h1
{
    color: #f0f0f0;
    /*margin: 16px 32px 0 32px;*/
    margin: 16px 0 0 0;
    padding: 32px;
    font-family: 'Lugrasimo', sans-serif;
    font-size: 48px;
    text-align: center;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, .5);
}
bde-header h1 span
{
    color: rgba(0, 0, 0, .5);
    display: block;
    font-size: 24px;
    margin-top: 8px;
    font-family: 'Open Sans';
    font-weight: bold;
    text-shadow: none;
}
bde-header img
{
    opacity: 0.5;
    position: absolute;
    bottom: -5px;
    left: -4px;
}

/*** Main Navigation ***/
bde-mainnav
{
    border-right: 1px solid var(--primary-color);
}
bde-mainnav ul
{
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}
bde-mainnav li
{
    font-size: 16px;
    font-weight: 500;
    flex: 1 1 50px;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-left: none;
    border-right: 1px solid var(--primary-color);
    background-color: #f9f9f9;
}
bde-mainnav li:last-child
{
    border-right: 0;
}
bde-mainnav li:first-child
{
    border-left: 1px solid var(--primary-color);
    /*border-radius: 0 0 0 16px;*/
}
bde-mainnav li:hover
{
    background-color: #e8e8e8;
    cursor: pointer;
}
bde-mainnav li a
{
    margin: 8px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    span { display: block; }
}
bde-mainnav li a:focus
{
    outline: 4px solid hsl(43, 27%, 46%);
    outline-offset: 4px;
}
bde-mainnav li.active a:focus { outline: 5px solid hsl(43, 27%, 46%); }
bde-mainnav li.active { background-color: var(--primary-color); }
bde-mainnav li.active a
{
    color: #eee;
    font-weight: bold;
}
bde-mainnav li.up
{
    width: 100px;
    border-left: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}
bde-mainnav .material-symbols
{
    font-size: 32px;
    font-weight: normal;
}


/*** Names Directory ***/
bde-names
{
    position: relative;
}
bde-nameshints
{
    display: block;
    text-align: right;
    margin-bottom: 8px;
}
bde-nameshints .info-button
{
    cursor: pointer;
}
bde-nameshints .content
{
    text-align: left;
}
bde-names input
{
    font-weight: 600;
    margin: 0 0 16px 0;
    padding: 12px;
    border: 2px solid var(--primary-color);
    width: calc(100% - 0px);
    display: block;
}
bde-names ul { padding: 0;}
bde-names li
{
    font-weight: 500;
    display: block;
    padding: 8px 16px;
    margin: 0;
    border: 1px solid var(--primary-color);
    border-bottom: 0;

    .altname 
    {
        color: hsl(43, 27%, 66%)
    }
}
bde-names li:last-child { border-bottom: 1px solid var(--primary-color); }
bde-names li:nth-child(odd) { background-color: #f9f9f9; }
bde-names li:hover { background-color: #f0f0f0; }
bde-names h4,span.spacer
{
    margin: 0;
    display: inline-block;
    width: 32px;
}
bde-names a { text-decoration: none; }

/*** Biography ***/
bde-biography img.portrait
{
    float: right;
    margin: 0 0 32px 32px;
    max-width: 300px;
    max-height: 400px;
}

/*** Content ***/
#content
{
    border-left: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
    padding: 16px 32px;
    flex-grow: 1;
}

/*** Footer ***/
bde-footer
{
    text-align: center;
    border: 1px solid var(--primary-color);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    margin-bottom: 16px;
}

/*** Contact Form ***/
bde-contactform form
{
    display: flex;
    flex-direction: column;
}

/*** Search ***/
bde-search input
{
    font-weight: 600;
    margin: 0 0 16px 0;
    padding: 12px;
    border: 2px solid var(--primary-color);
    width: calc(100% - 0px);
    display: block;
}
bde-search .result a
{
    font-weight: bold;
}
/*** Components ***/
bde-embed
{
    display: block;
    text-align: center;
}
bde-embed img
{
    max-height: 350px;
    max-width: 100%;
}

/*** Responsive Design ***/
@media screen and (max-width: 600px)
{
    body
    {
        font-size: 16px;
    }
    bde-header{ border-radius: 0; padding-left: 0; margin-top: 0; }
    bde-header img { z-index: -1; opacity: 0.2; max-width: 250px; bottom: -3px}
    bde-header h1 { padding: 24px; font-size: 32px; margin: 0; }
    bde-header h1 span { font-size: 24px; }
    bde-mainnav
    {
        margin: 0;
        border: 0;
    }
    bde-mainnav ul
    {
        flex-wrap: wrap;
    }
    bde-mainnav li
    {
        font-size: 12px;
        flex: 1 1 20%;
        border: 0 !important;
        border-radius: 0 !important;        
    }
    bde-mainnav li a:hover { text-decoration: none; }
    bde-mainnav li a:focus { outline: none;}
    bde-mainnav li.active a:focus { outline: none;}
    bde-mainnav li.up { padding: 8px; width: 100px; border-left: 1px solid var(--primary-color); }

    #content { border: 0; padding: 16px; }
    bde-footer
    {
        border: 0;
    }
}

