﻿:root {
    --bz-blue-darkest: #00354e;
/*    --bz-blue-darkest: #00364F;*/
/*    --bz-blue-darker: #5F72B7;*/
    --bz-blue-darker: #005881;
    --bz-blue: #0086C5;
/*    --bz-blue-lighter: #C4CDF2;*/
    --bz-blue-lighter: #33CCFF;
    --bz-blue-lightest: #C5ECFF;
    --bz-grey-darkest: #4D4D4D;
    --bz-grey-darker: #0000008a;
    --bz-grey: #9E9E9E;
    --bz-grey-lighter: #c0c0c0;
    --bz-grey-lightest: #F8F8F8;
    --bz-green: #339933;
    --bz-red: #FF3333;
    --bz-yellow: #FFCC00;
    --bz-yellow-darker: #DDB100;
  }

html, body {
    font-family: 'Roboto';
    font-size: 16px;
    background-color: var(--bz-grey-lightest);
    line-height: 125%;
}


p, ul, ol {
    font-size: 1rem;
}


h1 {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: left;
    margin-top: 18px;
    margin-bottom: 16px;
    line-height: 125%;
    color: var(--bz-blue-darkest);
}

h2 {
    font-size: 1.6rem;
    font-weight: normal;
    text-align: left;
    margin-top: 18px;
    margin-bottom: 14px;
    line-height: 125%;
}

h3 {
    font-size: 1.2rem;
    font-weight: normal;
    font-style: italic;
    text-align: left;
    margin-top: 16px;
    margin-bottom: 14px;
    line-height: 125%;
}

.bz-subtitle {
    font-size: 1.3rem;
    font-weight: normal;
    font-style: italic;
    text-align: center;
    margin-bottom: 40px;
    color: var(--bz-blue-darkest);
}

/***************Used in WWW***********************/

/*
 * SVG
 */

 .bz-square {
    fill: none;
    stroke: #fff;
    stroke-miterlimit: 12;
    stroke-width: 10px;
}

.bz-circle {
    fill: #fff;
    stroke-width: 0px;
}

.bz-icon-white {
    fill: white;
}


.bz-svg-go {
    height:1em;
    margin-bottom: 0.125em;
    margin-left:0.5em;
}

/*
 * Image
 */

 
.bz-overlay {
    font-size: smaller;
    position: absolute;
    padding: 4px 8px;
    width: 40%;
    font-style: italic;
    box-shadow: 4px 4px 5px rgb(0 0 0 / 25%);
    background-color: rgba(255, 255, 255, 0.8);
}
.bz-animate {
    animation: 1s ease 0s normal forwards 1 fadein;
}

@keyframes fadein{
    0% { opacity:0; }
    66% { opacity:0; }
    100% { opacity:1; }
}

.bz-bottom-left {
    bottom: 0px;
    left: 0px;
}
.bz-bottom-right {
    bottom: 0px;
    right: 0px;
}


.maxXL {
    max-width: 640px;
    width: 100%;
}

.maxLG {
    max-width: 560px;
    width: 100%;
}

.maxMD {
    width: 100%;
    max-width: 480px;
}

.maxMDh {
    max-height: 400px;
    height: auto;
}


.maxSM {
    width: 100%;
    max-width: 320px;
}

.maxSMh {
    max-height: 240px;
    height: auto;
}
.maxXSh {
    max-height: 80px;
    max-width: 100%;
    height: auto;
}

.maxXS {
    max-width: 240px;
    width: 100%;
}



/*
 * Text
 */


.bz-menu-item {
    overflow-y: auto;
}

.bz-center{
    text-align: center;
}

.bz-page {
    padding: 10px 10px 10px 10px;
}

.bz-page .mdl-grid {
    padding: 0px;
}


.bz-button {
    color: white;
    background-color: var(--bz-blue-darkest);
    text-align: center;
}

.bz-btn-caption {
    margin-top: 6px;
    font-weight: bold;
    font-size: 1.1rem;
}


.bz-toc {
    text-align: center;
}

.bz-toc a, a.bz-toc {
    color: #000;
    text-transform: uppercase;
    line-height: 2rem;
    text-decoration: none;
    margin-left: 18px;
    margin-right: 18px;
}

#www-beloz .mdl-cell {
    position: relative;
}

#www-beloz hr {
    margin-top: 48px;
    margin-bottom: 32px;
}

/*
 * MDL Hacks
 */


 .mdl-layout {
    position: relative;
    min-height: 100% ;
    max-width: 960px;
    margin-left: auto ;
    margin-right: auto;
}

.mdl-layout__header {
    background-color: var(--bz-blue-darkest);
}

/* MENU */

a.mdl-layout-title {
    text-decoration: none;
    color:white;
}

.mdl-menu__item a {
    font-family: "Helvetica","Arial",sans-serif; 
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-weight: 500;
    height: 36px;
}

.mdl-layout__header-row {
    justify-content: space-between;
}

.mdl-tabs__tab-bar a {
    color: var(--bz-grey);
}


/***************************************/

#score h1 {
    text-align: center;
}

.mdl-grid h1, .mdl-grid h2, .mdl-grid h1, .mdl-grid h2 {
    text-align: left;
    margin-top: 0px;
}


#scoreboard h5 {
    margin: 12px;
    font-size: 1.25rem;
}


form#belozInfo{
    display: none;
}





/* mdl card */

.bz-card{
    width: 100%;
}
.bz-card .mdl-card__title {
    background-color:  var(--bz-blue-darker);
    color: white;
}
.bz-card .mdl-card__title-text{
    font-size: 20px;
}

.bz-card .mdl-card__supporting-text {
    width: auto;
}
.bz-card .mdl-card__actions {
    text-align: right;
}

.bz-card .mdl-button {
    padding-right: 0px;
    padding-left: 0px;
}

/* WWW page cards */

.www-card.mdl-card {
    width: 80%;  
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 32px;
}

.www-card > .mdl-card__title {
    color: white;
    height: 125px;
    background-color: var(--bz-blue-darkest);
    padding: 0px;
}

.www-card#www-app-card > .mdl-card__title {
    background: url('../../img/playing_cards.jpg') center / cover;
}


.www-card .mdl-card__title-text {
    padding: 6px 16px;
    width: 100%;
}
#www-app-card .mdl-card__title-text {
    background-color: var(--bz-grey-darker);
}
#www-beloz .mdl-card__title-text {
    background-color: #91672ade;
}



 #bz-main .mdl-tabs {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    height: 100%;
}

.bz-footer-tab {
    height: 72px;
    border-top-color: var(--bz-grey);
    border-top-style: solid;
    border-top-width: 1px;
    border-bottom-width: 0px;
    width: 100%;
    background-color: white;
}

.bz-footer-tab .mdl-tabs__tab {
    height: 60px;
    line-height: 24px;
    padding-top: 12px;
}

.mdl-tabs__tab {
    color: var(--bz-grey);
}
.mdl-tabs__tab.is-active {
    color: var(--bz-blue-darkest);
}
.mdl-tabs__tab svg {
    height: 30px;
    fill: var(--bz-grey);
}
.mdl-tabs__tab.is-active svg {
    fill: var(--bz-blue-darkest);
}

.mdl-tabs.is-upgraded .bz-footer-tab .mdl-tabs__tab.is-active:after {
    top: 0;
    background: var(--bz-blue-darkest);
}

/* List */

a.mdl-list__item-primary-content  {
    text-decoration: none;
    color: var(--bz-grey-darkest)
}
.mdl-list__item-avatar{
    text-align: center;
    padding-top: 3px;
    background-color: var(--bz-blue-darkest);
}
.mdl-list__item-avatar svg {
    height: 32px;
    fill: white;
}

/* Dialog */

.mdl-dialog__title {
    font-size: 28px;
    text-align: left;
}

.mdl-dialog__content {
    text-align: left;
    font-size: 16px;
}

#dialog-score .mdl-dialog__content{
    text-align: center;
}



/*
 * BeloZ styles
 */

/* Playing cards */
.bz-hand {
    display: flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
/*    float:left; */
    margin-right: 6px;
}
.bz-pcard {
    padding-top: 6px;
    margin: 0px 6px;
    height: 42px;
    width: 30px;
    border: 1px var(--bz-grey-darkest) solid ;
    border-radius: 10%;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    line-height: 110%;
    background-color: white;
}
.bz-suit {
    font-size: 1.0em;
}

.bz-caption {
    font-weight: bold;
    margin-bottom: 6px;
    text-align: center;
}

.bz-callout {
    border: solid 1px var(--bz-grey-darker);
    background-color: white;
    padding: 6px;
}

#bz-menu-header {
    font-size: 20px;
    font-style: italic;
}

.bz-footer{
    margin-top: 6px;
    padding: 12px 10px;
    color: var(--bz-blue-darkest);
    font-size: 0.7rem;
    line-height: 120%;
}
.bz-footnote {
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--bz-grey-darker);
    line-height: 100%;
}

.bz-active {
    display: block !important;
}


/**
.bz-footer > a {
    text-decoration: none;
    color: var(--bz-blue-darkest);
    white-space: nowrap;
}

.bz-banner-footer {
    padding-bottom: 8px;
    padding-top: 8px;
    color: white;
    background-color: var(--bz-blue-darkest);
}

.bz-banner-footer .mdl-button {
    color: #FFFFFF;
}***/




.bz-footer-tab .bz-square {
    stroke: var(--bz-grey);
}

.bz-footer-tab .bz-circle {
    fill: var(--bz-grey);
}

.bz-footer-tab .is-active .bz-square, .bz-icon-black .bz-square {
    stroke: var(--bz-blue-darkest);
}

.bz-footer-tab .is-active .bz-circle, .bz-icon-black .bz-circle {
    fill: var(--bz-blue-darkest);
}



.bz-svglead {
    float:left;
    margin: 0 8px 8px 0;
}

/*
 *   WEB Home page
 */


.bz-lead {
    font-size: 18px;
}

/***********  Rules  ******************/
.mode-blt .blt-on {
    display: block; 
}
.mode-blt .blz-on {
    display: none; 
}
.mode-blz .blt-on {
    display: none; 
}
.mode-blz .blz-on {
    display: block; 
}



.bz-table {
    margin-left: auto;
    margin-right: auto;
    border-spacing: 0px;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.bz-table th {
    border-left: var(--bz-blue-darkest) 1px solid;
    border-right: var(--bz-blue-darkest) 1px solid;
    background-color: var(--bz-blue-darkest);
    color: white;
    padding: 3px 5px 3px 5px;
}
.bz-table td {
    border-bottom:  var(--bz-blue-darkest) 1px solid;;
}
.h-animal {
    max-height: 50px;
    height: auto;
}
.w-animal {
    max-width: 80px;
    width: 100%;
}

.w-animal-sm {
    max-width: 70px;
    width: 100%;
}

.h-strength {
    max-height: 30px;
    height: auto;
}
.bz-animal {
    border-left: var(--bz-grey-darkest) 1px solid;
    text-align: right;
    padding: 3px 5px 3px 5px;
    vertical-align: middle;
}
.bz-strength {
    text-align: center;
    padding: 3px 5px 3px 5px;
    vertical-align: middle;
}
.bz-value {
    text-align: center;
    padding: 3px 5px 3px 5px;
    vertical-align: middle;
    font-size: 1.2rem;
    line-height: 90%;
    color: var(--bz-blue-darkest);
    border-right: var(--bz-blue-darkest) 1px solid;
}




  
/***********  SCORE  ******************/
/*
 * SCORE Frame
 */

#score .mdl-grid { 
    max-width: 600px;
    text-align: center;
}


/*
 * SCORE Rows
 */


#score .recorded-row,
#score .score-btn-row,
#score .total-row,
#score .top-row
{
    padding-bottom: 0px;
    padding-top: 0px;
    text-align: center;
}

#score .top-row {
    font-size: 1.3rem;
    /*  font-weight: bold;*/
}

#score .recorded-row {
    font-size: 1.0rem;
}


#score .total-row {
    font-size: 1.3rem;
    font-weight: 600;
    background-color: var(--bz-blue-lightest);
}

#score .score-row {
    background-color: var(--bz-grey-lightest);
}


/*
 * SCORE Cells
 */


.recorded-row .mdl-cell,
.score-btn-row .mdl-cell,
.total-row .mdl-cell,
.top-row .mdl-cell
{
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 12px;
    padding-bottom: 12px;
}


.recorded-row .mdl-cell {
    padding-top: 3px;
    padding-bottom: 3px;
}

#score .border-right{
    border-right: 1px solid var(--bz-blue-darkest);
}


/*
 * SCOREBOARD
 */
.btn-newgame,
.btn-dialog.dialog-erase {
    color: white;
    background-color: var(--bz-red) !important;
}

.btn-dialog.dialog-undo,
.btn-undoscore {
   /* background-color: #F0A81F !important;*/
    background-color: var(--bz-yellow-darker) !important;
    color: white;
}

.btn-newgame:disabled,
.btn-undoscore:disabled {
    background-color: var(--bz-grey-lighter) !important;
}

.btn-score {
    color: white;
    background-color: var(--bz-blue-darker) !important;
}

 #scoreboard .btnkey,
 #scoreboard .btnkey-cmd,
 #scoreboard .btnkey-add {
     font-size: 18px;
     font-weight: 500;
     margin-bottom: 12px;
     margin-left: 2px;
     margin-right: 2px;
     min-width: 55px;
     padding-left: 8px;
     padding-right: 8px;
 }
 
 #scoreboard .btnkey-add,
.btnkey-cmd.undo-declaration {
     color: white;
     background-color: var(--bz-blue-darker);
 }
 
 #scoreboard .btnkey-cmd.undo-declaration:disabled {
    color: black;
    background-color: var(--bz-grey-lighter);
}

#scoreboard .btnkey-cmd.undo-declaration:disabled > .bz-icon-white {
    fill: var(--bz-grey-darker);
}


.score-row input {
    font-size: 16px;
    padding: 10px;
    background-color: white;
    width: 90%;
}
.score-row .activeInput {
    outline: 2px solid var(--bz-blue-darker) !important;
}

.dialog-cancel {
    position: absolute;
    top: 10px;
    right: 10px;
}


/*********************************** HELPER PAGE ****************/

#order ul li {
    min-height:30px;
}

#order .mdl-list,
#order .mdl-list__item{
    padding: 8px 0px; 
}

#order .mdl-list__item-secondary-content {
    font-style: italic;
    font-size: 1rem;
}

#order .mdl-list{
    margin: 0px 0px 0px 0px; 
}





/*
//-------------------- TABS --------------------------------
*/

.bz-tab-container .bz-tab-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    margin-bottom: 0px;
    padding:0px;
    border-bottom: var(--bz-blue-darker) 6px solid;
}

.bz-tab-bar .bz-tab {
    flex-grow: 1;
    font-style: normal;
    color:#fff;
    text-align: center;
    padding: 6px;
    background-color: var(--bz-blue-darker);
/*    background-color: white;*/
}

.bz-tab.is-active {
    border-bottom: white solid 1px;
}

.bz-tab-content {
    display: none;
}
.bz-tab-content.is-active {
    display: block;
}


/*
//-------------------- DECISION TREE --------------------------------
*/

/*
 * Init tree making top fork active
 */

 .dt-tree .dt-fork, .dt-leaf, .dt-fork-next {
    display: none; 
    line-height: 125%;
}

.dt-tree .dt-fork:first-of-type,
.dt-tree .dt-branch.dt-selected > .dt-fork {
    display: grid; 
    text-align: center;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "header header"
                        "branch1 branch2";
}

.dt-tree .dt-branch-input {
    display: block; 
}
.dt-tree .dt-branch.dt-branch1 {
   grid-area: branch1; 
}
.dt-tree .dt-branch.dt-branch2 {
    grid-area: branch2; 
 }

.dt-tree .dt-fork:first-of-type .dt-branch {
    display: block; 
}

/*
 * Manage visility based on selection
 */

.dt-tree .dt-fork.dt-selected {
    display: block !important; 
}
 
.dt-tree .dt-fork.dt-selected > .dt-fork-next {
    display: block !important; 
    text-align: left;
}

.dt-tree .dt-fork.dt-selected > .dt-fork-lbl {
    display: none; 
/*    grid-area: header;*/
}

.dt-tree .dt-fork.dt-selected > .dt-branch {
    display: none; 
}

.dt-tree .dt-branch.dt-selected {
    display: block !important; 
}

.dt-tree .dt-branch.dt-selected > .dt-branch-input {
    display: none; 
}

.dt-tree .dt-branch.dt-selected > .dt-leaf {
    display: block;
}

#helpers .mdl-card__title {
    background-color:  var(--bz-blue-darkest);
    color: white;
}


/*
 * tree styling
 */

.dt-tree-card{
    width: 100%;
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 12px;
}

.dt-tree-card .mdl-card__supporting-text {
    width: auto;
}
.dt-tree-card .mdl-card__actions {
    text-align: right;
}



 .dt-tree .dt-icon-check {
    height: 24px;
    fill:#36B44D;
    margin-top: -3px;
    margin-right: 6px;
    float: left;
}

.dt-tree  { 
    padding: 10px 10px 10px 10px;
    background-color: white;
}

.dt-tree  .dt-fork { 
    padding: 6px 0px;
    margin-top: 16px;
    background-color:#EFEFEF;
    border: 1px solid var(--bz-blue-darkest);
}

.dt-tree  .dt-leaf { 
    padding: 12px 6px;
    margin-top: 16px;
    background-color:#EFEFEF;
    border: 1px solid var(--bz-blue-darkest);
    font-weight: bold;
    font-size: 1.1rem;
    text-align: left;
}


.dt-tree  .dt-fork.dt-selected { 
/*    background-color: var(--bz-blue-lighter);*/
    background-color: white;
    border: none;
    display: block;
    margin-top: 0px;
}

.dt-fork-lbl, .dt-branch-lbl {
    margin: 0px 6px;
}

.dt-fork-lbl {
    padding: 6px 6px 12px 6px;
    margin: 3px 0px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: left;
    grid-area: header;
}

.dt-fork-next {
    background-color: white;
    padding: 0px 6px 0px 6px;
    margin-bottom: 6px;
    font-weight: bold;
    text-align: left;
}


.dt-branch1 > .dt-branch-input > .dt-input {
    background-color: var(--bz-green);
    color: white;
    margin: 6px 0px;
}

.dt-branch2 > .dt-branch-input > .dt-input  {
    background-color:var(--bz-red);
    color: white;
    margin: 6px 0px;
}

.dt-branch-lbl {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
}

.dt-cmd{
    padding: 0px;
    text-align: center;
}

.dt-btn-back{
    position: relative;
    top: -6px;
    color:  var(--bz-blue-darkest);
    vertical-align: text-top;
    float: left;
    margin-right: 3px;
}

.dt-reset, .dt-reset:hover {
    background-color: white;
/*    cursor: pointer; /* hack for IOS */
}


.dt-leaf .dt-btn-back{
    position: relative;
    top: -9px;
}





 
/*
 / FONTS ROBOTO LATIN ONLY
*/


/* roboto-regular - latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
}

/* roboto-italic - latin */
@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: local(''),
        url('../fonts/roboto-v30-latin-italic.woff2') format('woff2');
}


/* roboto-700 - latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: local(''),
        url('../fonts/roboto-v30-latin-700.woff2') format('woff2');
}

/* roboto-700italic - latin */
@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 700;
    src: local(''),
        url('../fonts/roboto-v30-latin-700italic.woff2') format('woff2');
}