@import url('https://fonts.googleapis.com/css2?family=Alegreya&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Alegreya', serif;
    font-size: 14pt;
    text-decoration: none;
    color: inherit;
}

div.main {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

div.main > div {
    padding: 1em;
    border-radius: 1em;
    background-color: rgba(255,255,255,1);
    text-align: center;
}

div.main p {
    padding: 0.5em;
}

div.main input {
    text-align: center;
    padding: 0.25em 0.5em;
    border: 1px #CCCCCC solid;
    border-radius: 0.5em;
    outline: none;
}

div.main input:focus {
    box-shadow: 0 0 3px rgba(100,100,200,0.5);
}

div.main button, div.result-footer > a {
    padding: 0.25em 0.75em;
    border: 1px #007700 solid;
    background-color: #77cc77;
    border-radius: 0.5em;
    transition: background-color 0.25s;
}
div.main button:active, div.result-footer > a:active {
    background-color: #CCFFCC;
}

div.result {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    padding-top: 1em;
}
div.left-nums {
    width: 10em;
}
div.right-nums {
    width: 7em;
}

div.result > div > div {
    display: flex;
    width: 100%;
    /*justify-content: space-around;*/
    align-items: flex-start;
}
p.number {
    width: 2em;
    text-align: center;
}
p.number-2 {
    width: 4em;
    text-align: center;
}
p.symbol {
    width: 1em;
    text-align: center;
}
div.chakra > p {
    width: 100%;
    text-align: center;
    padding-left: 1em;
    box-sizing: border-box;
}
div.date, div.date-sums {
    padding: 1em 0;
}

div.line {
    border-top: 2px #007700 dashed;
    margin: 2em;
}

div.setka {
    width: fit-content;
    margin: 0 auto;
}
div.setka-line {
    display: flex;
    justify-content: flex-end;
}
div.setka-line > div {
    width: 5em;
    box-sizing: border-box;
    padding: 0.5em;
}
div.setka-line label {
    display: block;
    font-size: 0.8em;
    text-align: right;
    padding-right: 0.5em;
}
div.setka-line p {
    text-align: center;
}

div.setka-0 {
    border: 1px #000 solid;
    margin-bottom: 2em;
}

div.setka-1, div.setka-7, div.setka-3, div.setka-6 {border-right: 1px #000 solid; border-bottom: 1px #000 solid}
div.setka-9, div.setka-5 {border-bottom: 1px #000 solid;}
div.setka-2, div.setka-8 {border-right: 1px #000 solid;}

#trapezium {
    height: 0;
    width: 140px;
    border-bottom: 160px solid #fff;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;

    position: relative;

    margin: 0 auto;

}


#trapezium:after {
    content: '';
    z-index: -1;
    position: absolute;
    top:-2px;
    left:-84px;
    /*bottom: -2px;*/

    height: 0;
    width: 144px;
    border-bottom: 164px solid #000;
    border-left: 82px solid transparent;
    border-right: 82px solid transparent;
}

div.piramida {
    margin: 0 auto;
    width: 300px;
    position: absolute;
    top: 0;
    left: -80px;
}

div.piramida > div {
    border-bottom: 1px #000 solid;
    text-align: center;
    margin: 0 auto;
    line-height: 37px;
    height: 40px;
    box-sizing: border-box;
}

div.bramin {width: 180px}
div.kshatri {width: 220px}
div.vayshyi {width: 260px}
div.shudra {border-bottom: none !important;}
div.result-footer {
    padding: 2em 1em 1em 1em;
    text-align: center;
}