
@font-face {
    font-family: 'DINPro';
    src: local('DIN Pro Regular'), local('DIN-Pro-Regular'),
         url('font/DINPro.woff2') format('woff2'),
         url('font/DINPro.woff') format('woff'),
         url('font/DINPro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DINPro';
    src: local('DIN Pro Medium'), local('DIN-Pro-Medium'),
         url('font/DINPro-Medium.woff2') format('woff2'),
         url('font/DINPro-Medium.woff') format('woff'),
         url('font/DINPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'DINPro';
    src: local('DIN Pro Bold'), local('DIN-Pro-Bold'),
         url('font/DINPro-Bold.woff2') format('woff2'),
         url('font/DINPro-Bold.woff') format('woff'),
         url('font/DINPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'PFDinMono';
    src: local('PF Din Mono Regular'), local('PF-Din-Mono-Regular'),
         url('font/PFDinMono-Regular.woff2') format('woff2'),
         url('font/PFDinMono-Regular.woff') format('woff'),
         url('font/PFDinMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PFDinMono';
    src: local('PF Din Mono Light'), local('PF-Din-Mono-Light'),
         url('font/PFDinMono-Light.woff2') format('woff2'),
         url('font/PFDinMono-Light.woff') format('woff'),
         url('font/PFDinMono-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
  }

body {
    font-family: 'DINPro', 'Calibri', sans-serif;
    color: #252631;
    background-color: #f2f4f6;
    margin: 0;
}

h1, h2 {
    font-weight: normal;
    margin-top: 1em;
    margin-bottom: .67em;
}

div {
    display: block;
}

span.header {
    font-weight: bold;
    margin-left: 2em;
}

span.big {
    font-size: 1.5em;
}

table {
    border-collapse: collapse;
}

td.right {
    text-align: right;
}

td.center {
    text-align: center;
}

td.total,
th.total {
    font-weight: bold;
    background: #F8FAFB;
}


/**********************************************************
 *
 * SITE Header
 *
 **********************************************************/

header {
    z-index: 500;
    width: 100%;
    height: 4rem;
    display: block;
    position: fixed;
    background: #FFF;
    border-bottom: solid 1px #778ca2;
}

div#header-content {
    max-width: 96rem;
    margin: 1rem auto;
}

div#header-content img {
    height: 2rem;
}

div#page {
    padding-top: 4rem;
}

div#page-content {
    max-width: 96rem;
    margin: 2rem auto;
}


/**********************************************************
 *
 * PAGE Header
 *
 **********************************************************/

div#page-header {
    width: 100%;
    background-color: #778ca2;
    color: #fff;
    border-bottom: 1px solid #e8ecef;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 1.875rem;
}

div#page-header-content {
    max-width: 96rem;
    margin: 0 auto;
}

div#page-header-content h1 {
    font-size: 1.625rem;
    line-height: 2rem;
    
    margin: 0;
    letter-spacing: 3px;
    font-style: normal;
    font-weight: 500;
}

div.page-header-box {
    color: #252631;
    background: #FFF;
    display: inline-block;
    box-shadow: 0 5px 10px 0 rgb(119 140 162 / 10%);
    padding: .125em .25em;
}

div.page-header-box.provider {
    font-weight: bold;
    margin-bottom: .5rem;
}

div.page-header-box.provider.ishares {
    background: #FDD835;
}

div.page-header-box.provider.xtrackers {
    background: #4DB6AC;
}

div.page-header-box.provider.spdr {
    background: #01579B;
    color: #EEE;
}

div.page-header-box.provider.lyxor {
    background: #1A237E;
    color: #EEE;
}


div.page-header-box.etf-info {
    margin-top: 1.5rem;
    margin-right: 2rem;
    padding: 0;
}

div.page-header-box .etf-info-property {
    background: #CFD8DC;  /* 100 BLUE GREY */
    display: inline-block;
    padding: .125em .25em;
}

div.page-header-box.etf-info.isin .etf-info-property {
    background: #C5CAE9;  /* 100 INDIGO */
}

div.page-header-box.etf-info.wkn .etf-info-property {
    background: #C5CAE9;  /* 100 BLUE */
}

div.page-header-box.etf-info.ter .etf-info-property {
    background: #C8E6C9;  /* 100 ORANGE */
}

div.page-header-box.etf-info.size .etf-info-property {
    background: #C8E6C9;  /* 100 GREEN */
}

div.page-header-box .etf-info-value {
    background: #F5F5F5;  /* 100 GREY */
    display: inline-block;
    padding: .125em .25em;
}



/**********************************************************
 *
 * CARD
 *
 **********************************************************/

div.card {
    border-top: 3px solid #778ca2;
    box-shadow: 0 10px 10px rgb(119 140 162 / 10%);
    background: white;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

div.card.primary {
    border-top-color: #D84315;
    border-top-color: #FF8A65;  /* 300 DEEP ORANGE */
}

div.card.secondary {
    border-top-color: #0277BD;
    border-top-color: #7986CB;  /* 300 INDIGO */
}

div.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 1rem 1.875rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

div.card-header h3 {
    color: #778ca2;
    font-size: 1.375rem;
    line-height: 1.688rem;
    letter-spacing: 2.53846px;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
    margin: 0 .5em 0 0;
}

div.card.primary div.card-header h3 {
    color: #D84315;
    color: #FF8A65;  /* 300 DEEP ORANGE */
}

div.card.secondary div.card-header h3 {
    color: #0277BD;
    color: #7986CB;  /* 300 INDIGO */
}


/* DIFFERENT COLOURS */
body {
    background: #E0E0E0;  /* 300 GREY*/
    background: #EEEEEE;  /* 200 GREY*/
}

header {
    background: #F5F5F5;  /* 100 GREY */
    background: #ECEFF1;  /*  50 BLUE GREY */
}

div#page-header {
    background: #313131;
    background: #424242; /* 800 */
    background: #37474F; /* 800  BLUE GREY*/
}


div.card-header {
    background: #F5F5F5;  /* 100 GREY */
    background: #FAFAFA;  /*  50 GREY */
}



/**********************************************************
 *
 * TABLE LIST of funds/stocks
 *
 **********************************************************/

table.list {
    font-size: .8125rem;
    line-height: 1.2em;
    margin: 0 auto;
    border-collapse: separate; /* Don't collapse */
    border-spacing: 0;
}

table.list th,
table.list td {
    padding: .625em 1.125em;
    border: 0;
    border-bottom: 1px solid #e8ecef;
}

table.list th {
    font-size: .875em;
    text-transform: uppercase;
    background: #FFF;
    border-bottom: 1px solid rgba(0,0,0,.125);
    position: sticky;
    top: 4rem;
}

table.list tr:hover td {
    background: #E8ECEF;
    cursor: pointer;
}

table.list td.isin {
    font-family: 'PFDinMono', monospace;
    font-weight: 300;
    font-size: 12.5px;
}

table.list img {
    border-radius: 50%;
}



table.valuation {
    line-height: 1.2em;
    margin: 0 auto;
}

table.valuation th,
table.valuation td {
    padding: .625em 1.125em;
}

table.valuation th {
    font-size: .875em;
    text-transform: uppercase;
}

table.valuation td {
    border-top: 1px solid #e8ecef;
}

table.valuation tr:hover td {
    background: #E8ECEF;
    pointer: normal;
}






div.tile {
    background: #f7f7f7;
    border: 1px solid #ddd;
    width: 16rem;
}

div.tile div.header {
    background: #66686A;
    color: white;
    font-size: .875rem;
    padding: .125em .25em;
}

div.tile div.content {
    font-size: 3rem;
    padding: .25em .5em;
    text-align: center;
}

div.tile div.content span.unit {
    font-size: .5em;
}

div.tile div.content span.change {
    margin-left: .5em;
    font-size: .42em;
    vertical-align: top;
}


div.values thead td {
    padding: .25em .5em;
    background: #66686A;
    color: white;
}
div.values tbody td {
    padding: .25em .5em;
    background: #f7f7f7;
}
div.values td:not(:first-child) {
    text-align: right;
    padding-left: 2em;
}
div.values tbody td:nth-child(2) {
    font-weight: bold;
    background: #e7e7e7;
}
div.values tbody td.coverage {
    font-size: .875em;
}

td.ter-3,
td.size-3,
td.ratio-3,
td.holdings-3,
td.coverage-0 {
    color: #ff0000;  /* red */
}
td.ter-2,
td.size-2,
td.ratio-2,
td.holdings-2,
td.coverage-1 {
    color: #ff8000;  /* orange */
}
td.ter-1,
td.size-1,
td.ratio-1,
td.holdings-1,
td.coverage-2 {
    color: #81d41a;  /* light green */
}
td.ter-0,
td.size-0,
td.ratio-0,
td.holdings-0,
td.coverage-3 {
    color: #00a933;  /* green */
}



div.chart-container {
    width: 60em;
    height: 40em;
}

div.table-container {
    width: 60em;
}

table.holdings {
    margin-top: 2em;
    margin-left: 2em;
    font-size: .875em;
}

table.holdings td {
    padding: .15em .45em;
    border-top: 1px solid #ddd;
}

div#chart-overlay {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

#chart-overlay .chart-container {
    background: white;
    margin: 2em auto;
}
