﻿@font-face
{
    font-family: Roboto;
    src: url('../Fonts/Roboto-Regular.ttf');
}

@font-face
{
    font-family: 'Roboto Bold';
    src: url('../Fonts/Roboto-Bold.ttf');
}

@font-face
{
    font-family: 'Roboto Italic';
    src: url('../Fonts/Roboto-Italic.ttf');
}

@font-face
{
    font-family: 'Roboto Condensed';
    src: url('../Fonts/RobotoCondensed-Regular.ttf');
}

@font-face
{
    font-family: 'Roboto Condensed Bold';
    src: url('../Fonts/RobotoCondensed-Bold.ttf');
}

@font-face
{
    font-family: 'Domine Bold';
    src: url('../Fonts/Domine-Bold.ttf');
}

/***********\
* ALL PAGES *
\***********/

/* Defaults per element */

html,
body
{
    padding: 0;
    margin: 0;
    background-color: #FFFFFC;
    color: #400000;
    font-family: Roboto, Arial;
    font-size: 14px;
    line-height: 21px;
}

h1
{
    font-family: 'Domine Bold', Arial;
    font-size: 24px;
    line-height: 24px;
    margin: 0;
    padding: 0;
}

h2
{
    font-family: 'Domine Bold', Arial;
    font-size: 20px;
    line-height: 20px;
    margin: 0;
    padding: 0;
}

h3
{
    font-family: 'Domine Bold', Arial;
    font-size: 16px;
    line-height: 16px;
    margin: 0;
    padding: 0;
}

a
{
    color: #400000;
}

a:hover
{
    color: #800000;
}

/* All pages bar */

div.pagebar
{
    display: flex;
}

div.pagebar div.left,
div.pagebar div.right
{
    width: 96px;
    flex: 0 0 96px;
}

div.pagebar div.left
{
    border: 1px dotted #400000;
    padding: 16px 16px 16px 0;
    background-color: #FFFFFF;
}

div.pagebar div.right
{
    border: 1px solid #FFFFFC;
    padding: 16px 0 16px 16px;
}

div.pagebar div.middle
{
    flex: 1;    
    padding: 20px;
    text-align: center;
}

div.pagebar div.icon
{
    width: 32px;
    height: 32px;
    margin-left: 16px;
    float: left;
}

div.pagebar a,
div.pagebar span
{
    display: block;
    height: 32px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

div.pagebar span
{
    background-position: 0 -64px;
}

div.pagebar a:hover
{
    background-position: 0 -32px;
}

div.pagebar a.home,
div.pagebar span.home
{
    background-image: url('/Images/IconHome.png');
}

div.pagebar a.rootentry,
div.pagebar span.rootentry
{
    background-image: url('/Images/IconRootEntry.png');
}

/* Title-body box */

div.titlebodybox
{
    width: 600px;
    margin: 0 auto 0 auto;
}

div.titlebodybox div.title
{
    color: #FFFFFF;
    text-align: center;    
    border: 1px solid #400000;
    background-color: #400000;
    height: 24px;
    padding-top: 6px;
}

div.titlebodybox div.body
{
    text-align: center;
    border-left: 1px dotted #400000;
    border-right: 1px dotted #400000;
    border-bottom: 1px dotted #400000;
    background-color: #FFFFFF;
    padding: 20px;
}

/* Form grid */

div.formgrid
{
    display: grid;
    grid-template-columns: 200px 200px;
    gap: 0;
    width: 400px;
    margin: 0 auto 0 auto;
}

div.formgrid div
{
    padding: 5px;
}

div.formgrid div.key
{
    text-align: right;
}

div.formgrid div.value > *
{
    width: 100%;
    box-sizing: border-box;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #400000;
}

/* Form generic */

div.formintro
{
    padding-bottom: 20px;
}

div.formerror
{
    color: #FF4040;
}

div.formsuccess
{
    color: #408040;
}

div.formwarnings
{
    color: #CA5100;
    text-align: left;
    border: 1px dotted #CA5100;
}

div.formbuttons
{
    padding-top: 20px;
}

/* Form button and button link */

input.formbutton,
a.formbutton
{
    display: inline-block;
    font: inherit;    
    background-color: #400000;
    color: #FFFFFF;
    padding: 5px 10px 5px 10px;
    border: 1px solid #FFFFFF;
    text-decoration: none;
    height: auto;
    cursor: default;
}

input.formbutton:hover,
a.formbutton:hover
{
    background-color: #800000;
    text-decoration: none;
}

/* Link button */

input.formlink
{
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #400000;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

input.formlink:hover
{
    color: #800000;
}

/* List table */

table.list
{
    border-collapse: collapse;
    border: 1px solid #400000;
    width: 100%;
}

table.list tr > th + th
{
    border-left: 1px dotted #FFFFFF;
}

table.list tr th
{
    font-family: 'Domine Bold', Arial;
    font-size: 14px;
    background-color: #400000;
    color: #FFFFFF;
    height: 30px;
    text-align: left;
    padding: 0 5px 0 5px;
}

table.list tr > td + td
{
    border-left: 1px dotted #400000;
}

table.list tr:nth-child(even) > td
{
    background-color: #ECECEC;
}

table.list tr td
{
    background-color: #FFFFFF;
    height: 30px;
    text-align: left;
    padding: 0 5px 0 5px;
}

table.list tr td.center,
table.list tr th.center
{
    text-align: center;
}

table.list tr td.right,
table.list tr th.right
{
    text-align: right;
}

/* Common generic selectors */

.gender_unknown
{
    background-color: rgb(240, 240, 240);
    border: 1px solid rgb(240, 240, 240);
}

.gender_male
{
    background-color: rgb(240, 240, 255);
    border: 1px solid rgb(240, 240, 255);
}

.gender_female
{
    background-color: rgb(255, 236, 244);
    border: 1px solid rgb(255, 236, 244);
}

.mediapreview
{
    max-width: 240px;
    max-height: 240px;
    width: auto;
    height: auto;
}

.mediathumbnail
{
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
}

/***********\
* HOME PAGE *
\***********/

/* User menu */



/****************\
* USER LIST PAGE *
\****************/

div.userlist
{
    width: 1000px;
}

/*************\
* PERSON PAGE *
\*************/

/* Navigator tree */

div.navigatortree
{
    overflow-x: auto;
    overflow-y: hidden;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial;
    font-size: 11px;
    line-height: 14px;
}

div.navigatortree a
{
    text-decoration: none;
}

div.navigatortree div.inner
{
    margin: 0 auto 0 auto; 
    padding: 5px;
}

div.navigatortree div.persons
{
    position: relative;
    height: 60px;
}

div.navigatortree div.person
{
    position: absolute;
    top: 0;
    width: 110px;
    height: 58px;
}

div.navigatortree div.current_yes
{
    border: 1px dotted #800000;
    color: #800000;
}

div.navigatortree div.current_yes a
{
    color: #800000;
}

div.navigatortree div.relationname
{
    height: 44px;
    text-align: center;
}

div.navigatortree div.relationname span.name
{
    font-family: 'Roboto Condensed Bold', 'Arial Narrow', Arial;
    font-size: 13px;
}

div.navigatortree div.yearrange
{
    text-align: center;
    height: 11px;
}

div.navigatortree div.lines
{
    position: relative;
}

div.navigatortree div.lines line { stroke-width: 3px; }
div.navigatortree div.lines line.family_0 { stroke: #EFEFEF; }
div.navigatortree div.lines line.family_1 { stroke: #DFDFDF; }
div.navigatortree div.lines line.family_2 { stroke: #CFCFCF; }
div.navigatortree div.lines line.family_3 { stroke: #BFBFBF; }
div.navigatortree div.lines line.family_4 { stroke: #AFAFAF; }
div.navigatortree div.lines line.family_5 { stroke: #9F9F9F; }
div.navigatortree div.lines line.family_6 { stroke: #800000; }

div.navigatortree div.family
{
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    background-color: rgb(240, 240, 240);
    padding: 0 1px 0 1px;
}

/* Person container */

div.personcontainer
{
    margin: 0 auto 0 auto; 
    width: 960px;
    padding: 20px;
}

/* Person bar */

div.personbar
{
    padding: 20px;
    width: 240px;
    float: left;
}

/* Portrait */

div.portrait
{
    text-align: right;
}

div.portrait div.caption
{
    font-family: 'Roboto Italic';
    font-size: 12px;
    line-height: 12px;
}

/* Person body */

div.personbody
{
    margin-left: 280px;
    padding: 20px;
    width: 640px;
}

/* Person summary */

section.personpersonsummary div.sectiontitle
{
    margin-bottom: 20px;
}

div.personsummary div.name
{
    font-family: 'Roboto Bold';
}