@font-face {
    font-family: 'ZenKaiUniv';
    src: url('fonts/ChinaCut-ZenKaiUniv-webfont.eot');
    src: url('fonts/ChinaCut-ZenKaiUniv-webfont.eot?#iefix')
    format('embedded-opentype'),
    url('fonts/ChinaCut-ZenKaiUniv-webfont.svg#chinacut-zenkaiunivregular')
    format('svg');
    font-weight: normal;
    font-style: normal;
}

html {
    margin:0;
    padding:0;
    overflow-x:hidden;
  }
  
  body {
    background-image: linear-gradient(to bottom, #f1f6f0, #fff6df);
    overflow-x:hidden;
    position:relative;
  }
  

.ui-tooltip {
    background-color: rgb(255, 253, 239);
}
.ui-tooltip-content{
    /*font-size: 0.75rem;*/
}
/*bootstrap responsive off*/
/*body { min-width: 960px; }
.container { width: 960px; max-width: none !important; }*/

.china-name, .pillar-china-name, .hidden-stem-horizontal-china-name, .hidden-stem-vertical-china-name,
.years-china-name, .sym-stars-china-name, .nai-element, .lumin-china-name {
    font-family: ZenKaiUniv;
    vertical-align: middle;
    line-height: 1.1em;
    height: 1.1em;
    margin: 0.125rem 0 !important;
}
.Wood  {color: #006633 !important}
.Fire  {color: #cc0000 !important}
.Earth {color: #663300 !important}
.Metal {color: #666666 !important}
.Water {color: #0066cc !important}

.wait-indicator {
    display: none;
    opacity: 0.8;
    filter: 'alpha(opacity=80)';
    z-index: 998;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
    background: #e3e3e3 url('loading.gif') 50% 50% no-repeat;
}
h1 {font-size: 1.5rem}
h2 {font-size: 1.125rem; font-weight: bold; margin: 0.75rem 0 0.5rem; text-align: center}
h3 {font-size: 1.75rem; }
/*---------------------MAIN TABLE------------------------*/
.main-table {
    margin: 0.625rem auto;
    /*border: 1px solid gray;*/
    font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif;
    color: #464f52;
    font-size: 0.8rem;
    line-height: normal;
}
.main-table td {
    vertical-align: top;
}
/*---------------------DATA FORM------------------------*/
.data-form {
    /*	margin: 0 auto 0.938rem;
        text-align: center;*/
    display: grid;
    font-weight: bold;
    font-size: x-large;
}
.form-row {
    margin-right: 6rem;
}
@media (max-width: 1000px) {
    .form-row {
        margin-right: 4rem !important;
    }
}
@media (max-width: 900px) {
    .form-row {
        margin-right: 2rem !important;
    }
}
@media (max-width: 800px) {
    .form-row {
        margin-right: 0 !important;
        margin-left: 0 !important;    }
}

.form-control {
    padding-bottom: 0.5rem;
}

.data-form .form-row {
    margin-bottom: 0.625rem;
}
.data-form .btn {
    width: 7.875rem;
}
.type.form-control, .data-form .form-control {
    display: inline-block !important;
    width: auto !important;
    min-width: 3.875rem !important
}
.table-cell-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.table-cell-container .text-end {
    font-weight: bold;
}
.data-form .checkbox {
    display: inline-block !important;
    width: 7.5rem !important;
    padding-left: 0 !important;
}
/*---------------------BAZI------------------------*/
.bazi-table {
    font-size: 0.688rem;
    text-align: center;
    margin: auto;
    width: 22.688rem;
}
/*#four-pillars-table, .year-period-table*/
/*{*/
/*    !* Убираем двойные линии между ячейками *!*/
/*    border-collapse: collapse;*/
/*    border: 1px solid black;*/
/*}*/
/*#four-pillars-table td, .year-period-table td*/
/*{*/
/*    padding: 0;*/
/*    border: 1px solid black;*/
/*    vertical-align: top;*/
/*    text-align: center;*/
/*    !*width: 25%;*!*/
/*    width: 5.313rem;*/
/*    font-size: 1rem;*/
/*}*/
table.four-pillars-table {
    /*width: 100%;*/
    text-align: center;
    border: 1px solid #57674D;
    border-radius: 1.563rem;
}
table.fourPillarsTable td, table.fourPillarsTable th {
    padding: 0.313rem 0.188rem;
}
table.fourPillarsTable tbody td {
    font-size: 1.625rem;
}
table.four-pillars-table thead {
    background: #57674D;
    /*border-bottom: 0 solid #444444;*/
}
table.fourPillarsTable thead th {
    font-size: 2.375rem;
    font-weight: bold;
    color: #F0F0F0;
    text-align: left;
}
table.fourPillarsTable tfoot {
    font-size: 0.8rem;
    font-weight: bold;
    color: #F0F0F0;
    background: #57674D;
    background: -moz-linear-gradient(top, #818d79 0%, #67765e 66%, #57674D 100%);
    background: -webkit-linear-gradient(top, #818d79 0%, #67765e 66%, #57674D 100%);
    background: linear-gradient(to bottom, #818d79 0%, #67765e 66%, #57674D 100%);
    /*border-top: 1px solid #57674D;*/
}
table.fourPillarsTable tfoot td {
    font-size: 0.8rem;
}
table.four-pillars-table tfoot .links {
    text-align: right;
}
table.four-pillars-table tfoot .links a{
    display: inline-block;
    background: #FFFFFF;
    color: #57674D;
    padding: 0.125rem 0.5rem;
}

.sym-stars-table {
    width: 48.25rem;
    margin: auto;
    text-align: left;
    font-size: 0.938rem;
}
.sym-stars
{
    font-size: 0.938rem;
}
.sym-stars-left
{
    /*padding-left: 30px;*/
}
.sym-stars-right
{
    padding-left: 11.25rem;
}
.sym-stars-china-name
{
    font-size: 1.125rem;
}
.pillar .pillar-china-name
{
    font-size: 6.25rem;
    height: 6.875rem;
    border: 1px solid #57674D;
    border-radius: 0.938rem;
}

.pillar-rus-name
{
    font-weight: bold;
}

.hidden-stem-vertical-lumin
{
    font-weight: bold;
}

.hidden-stem-vertical-china-name, .hidden-stem-vertical-lumin
{
    font-size: 6.25rem;
    border: 1px solid #57674D;
    border-radius: 0.938rem;
}

.pillar-rus-name, .hidden-stem-vertical-rus-name
{
    /*	border: 1px solid black;*/
    font-size: 1rem;
    line-height: 130%;
    border: 1px solid #57674D;
    border-radius: 0.938rem;
}
.hidden-stem-vertical-china-name
{
    /*	border: 1px solid black;*/
    font-size: 6.25rem;
    height: 6.875rem;
}
.hidden-stem-vertical-lumin
{
    font-size: 1rem;
    padding: 0.188rem 0.125rem;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    /*cursor: pointer;*/
}
.born-hidden-stem
{
    font-size: 6.25rem;
    height: 6.875rem;
    text-align: center;
    align-items: center;
}
.hidden-stem-horizontal-china-name
{
    /*border: 1px solid black;*/
    letter-spacing: 0.3em;
    margin-top: 0.313rem;
    margin-bottom: 0.313rem;
    font-size: 1.25rem !important;
    height: 1.25rem !important;
}
.hidden-stem-horizontal-china-name .born-hidden-stem
{
    letter-spacing: 0.1em;
    font-size: 1.125rem;
    height: 1.125rem;
}
.luck-pillars-table
{
    margin: auto;
    border-collapse: collapse;
    border: 1px solid black;
}
.luck-pillars-table td
{
    padding: 0;
    border: 1px solid black;
    text-align: center;
    vertical-align: middle;
    /*width: 5.313rem;*/
    font-size: 0.8rem;
}
.luck-pillars-table .pillar-china-name
{
    font-size: 2.5rem;
    height: 2.5rem;
}
.luck-pillars-table .pillar-rus-name
{
    font-size: 0.688rem;
}
.luck-pillars-table .hidden-stem-horizontal-china-name
{
    font-size: 1rem !important;
    height: 1rem !important;
}
.luck-pillars-table .years-china-name
{
    margin: 0;
    font-size: 0.875rem;
}
.da-gua-row td
{
    line-height: 70%;
    padding: 0.25rem 0;
}
.dagua
{
    position: absolute;
    top: 0.188rem;
    right: 0.25rem;
    line-height: 0.625rem;
    font-size: 0.8rem;
    font-weight: bold;
}
.lumin-row td, .sym-stars-row td, .prov-row td
{
    font-size: 0.688rem;
    padding: 0.188rem 0.125rem;
    height: 2.25rem;
    vertical-align: middle;
    /*cursor: pointer;*/
}
.sym-stars-row td
{
    vertical-align: top;
}
.years-table td
{
    border: none;
    /*border-bottom: 1px solid black;*/
    padding: 0.125rem;
}
.sym-star
{
    /*	border: 1px solid #666666;
        border-radius: 0.25rem ;
        margin-top: 0.125rem;*/
    margin-top: 0.438rem;
    /*cursor: pointer;*/
}
.gua-table
{
    /*width: 7.5rem;*/
    border: none;
    margin: 1.563rem 1.25rem 0 0;
    float: left;
}
.bazi-light .gua-table
{
    margin: 2.5rem 2.5rem 0 0 !important;
}
.gua-table td:nth-child(odd) {text-align: left}
.gua-table td:nth-child(even) {text-align: right}

.lumin
{
    position: relative;
    width: 26.25rem;
    height: 24.875rem;
    text-align: center;
    margin-top: 4.688rem;
    margin-bottom: 0.625rem;
}
.lumin img {
    position: absolute;
    left:0;
    top:0;
}
.lumin .lumin-china-name
{
    font-size: 1.375rem;
    height: 1.375rem;
    margin: 0;
}

.lumin-spacer
{
    height: 0.75rem;
}

.lumin .lumin-index
{
    font-size: 0.625rem;
    vertical-align: sub;
}

#EqualsYang {
    left: 10.375rem;
    position: absolute;
    top: 2.188rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #EqualsYang {
    height: auto;
    min-height: 4.25rem;
}
#EqualsYin {
    left: 13.188rem;
    position: absolute;
    top: 2.188rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #EqualsYin {
    height: auto;
    min-height: 4.25rem;
}
#CreatingYin {
    left: 21.5rem;
    position: absolute;
    top: 8.25rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #CreatingYin {
    height: auto;
    min-height: 4.25rem;
}
#CreatingYang {
    left: 18.688rem;
    position: absolute;
    top: 8.25rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #CreatingYang {
    height: auto;
    min-height: 4.25rem;
}
#CreatingMeYin {
    left: 4.875rem;
    position: absolute;
    top: 8.25rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #CreatingMeYin {
    height: auto;
    min-height: 4.25rem;
}
#CreatingMeYang {
    left: 2.063rem;
    position: absolute;
    top: 8.25rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #CreatingMeYang {
    height: auto;
    min-height: 4.25rem;
}
#PenetratingMeYin {
    left: 8.375rem;
    position: absolute;
    top: 16.938rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #PenetratingMeYin {
    height: auto;
    min-height: 4.25rem;
}
#PenetratingMeYang {
    left: 5.563rem;
    position: absolute;
    top: 16.938rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #PenetratingMeYang {
    height: auto;
    min-height: 4.25rem;
}
#PenetratingYin {
    left: 18.188rem;
    position: absolute;
    top: 17.063rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #PenetratingYin {
    height: auto;
    min-height: 4.25rem;
}
#PenetratingYang {
    left: 15.438rem;
    position: absolute;
    top: 17.063rem;
    margin-bottom: 0;
    /*border: 1px solid #0080ff;*/
    width: 2.875rem;
    padding-top: 0;
    height: 4.313rem;
}
html > body #PenetratingYang {
    height: auto;
    min-height: 4.25rem;
}


.calculator-header-style {
    font-weight: bold; 
    font-size:5em
  }
  
  @media (max-width: 900px) {
    .calculator-header-style {
      font-weight: bold; 
      font-size:3em
    }
    
  }

/*@media print {*/
/*    .main-table*/
/*    {*/
/*        zoom: 0.9;*/
/*        -ms-zoom: 0.9;*/
/*        -webkit-zoom: 0.9;*/
/*    }*/
/*    table*/
/*    {*/
/*        margin: 0;*/
/*    }*/
/*}*/