﻿/**
 * program Trojuhelnik version: 5.1
 * created by J.Resler
 * license GPL v. 3.0
**/


/* main css data */
html 
{
    display: block;
    height: 100%;
    overflow-x: hidden; 
    overflow-y: hidden;
}

body
{
    background-color: #f1f1f1!important;
    display: block;
    margin: 0px;
    padding: 0px;
    height: 100%;
}

/* css for main menu div */
#topDiv
{
    background-color: #5f5f5f;
    width: 100%;
    min-width: 850px;
    height: 50px;
}

/* css for div with triangle items */
#leftDiv
{
    position: absolute;
    top: 50px;
    width: 12%;
    min-width: 100px;
    height: calc(100% - 50px);
    overflow-y: scroll;
    overflow-x: hidden;
}

/* css for div items checkbox */
#threeitems
{
    margin-top: 10%;
}

/* css for div with triangle items */
#rightDiv
{
    position: absolute;
    top: 50px;
    right: 0;
    width: 12%;
    min-width: 100px;
    height: calc(100% - 50px);
    overflow-y: scroll;
    overflow-x: hidden;
}

/* main div css where all triangle data is shown */
#centerDiv
{
    position: absolute;
    top: 50px;
    left: 12%;
    width: 76%;
    min-width: 850px;
    height: calc(100% - 50px);
}

#centerTLDiv
{
    position: absolute;
    width: 25%;
    text-align: center;
    vertical-align: middle;
}

#centerBLDiv
{
    position: absolute;
    top: 30%;
    width: 25%;
    height: 70%;
    text-align: left;
    vertical-align: middle;
}

#centerBRDiv
{
    left: 25%;
    position: absolute;
    width: 75%;
    height:100%;
}

#completetable1,
#completetable3
{
    width: 20%;
    display: inline-block;   
    white-space: nowrap;
    margin-left: 1%;
}

#completetable2,
#completetable4
{
    width: 55%;
    white-space: nowrap;
    display: inline-block;
}

#completetable4
{
    margin-left: 20%
}

/* div to show other pages */
#newsDiv,
#programDiv,
#downloadDiv,
#authorDiv,
#graphDiv
{
    position: absolute;
    z-index: 200;
    background-color: #ddffdd;
    top: calc(5% + 50px);
    left: 9%;       
    width: 83%;
    height: calc(87% - 50px);
    display: none;
}

#newsBut,
#programBut,
#downloadBut,
#authorBut,
#selLangBut
{ 
    float: right;
}

#elementscheckbox
{
    width: 100%;
    text-align: center;
    vertical-align: middle;
    line-height: 90%;
    display: inline-block;
}

#selLangDiv
{
    position: absolute;
    background-color: #ddffdd;
    float: right;
    top: calc(10px + 50px);
    right: 1%;       
    width: 215px;
    height: 50px;
    display: none;
}

#errorDiv
{
    position: absolute;
    background-color: rgba(140,0,0,0.70);
    font-size: 25px;
    text-align: center;
    vertical-align: middle;
    line-height: 90px;  
    color: white;
    float: right;
    top: calc(10px + 50px);
    right: 1%;       
    width: 60%;
    height: 10%;
    display: none;
}

input[type="text"],
.button,
.label,
.resRow,
.compRow,
.resHead,
.rescell,
.compcell,
.complabel,
.resnote,
.items,
.text
{
    font-family: "Segoe UI",Arial,sans-serif;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: normal;
    text-decoration: none;
    border: none;
}

.resHead,
.items
{
    font-weight: bold;
}

.button
{
    font-weight: bold;
    color: #ffffff;
}

input[type="text"]
{
    width: 50%;
    height: 35px;
    color: #ffffff;
    font-weight: bold;
    background-color: red;
    text-align: center;
    vertical-align: middle;
    line-height: 35px;
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
    cursor: pointer;
    margin-top: 2px;
}

#openGraphDiv
{
    background-color: #5f5f5f;
    width: 100%;
    height: 35px;
    text-align: center;
}



#precDiv
{
    width: 100%;
    height: 25px;
    white-space: nowrap;
    display: flex;
    align-items: flex-start;
}

#precision,
#poloz,
#hodnot
{
    width: 90%;
    height: 100%;
    padding: 0px 0px;
    text-align: center;
}

#prec
{
    width: 20%;
    height: 100%;
    padding: 0px 0px;
}

/* buttons in main menu */
.button
{
    height: 35px;
    background: transparent;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 5px;
}

.button:hover
{
    background-color: #000;
}

.resRow:hover,
.compRow:hover,
.compRow2:hover
{
    background-color: rgba(0,0,0,0.10);
}

.button img 
{ 
    width: 30px;
}

/* labels */
.label,
.label2
{
    width: 30%;
    height: 35px;
    background-color: transparent;
    text-align: center;
    vertical-align: middle;
    line-height: 35px;
    display: inline-block;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 0px;
    margin-left: 10px;
}

.label2
{
    margin-top: 20px;
    width: 90%;
}

.resRow,
.compRow,
.resHead
{
    width: 100%;
    height: 25px;
    background-color: transparent;
    text-align: center;
    vertical-align: middle;
    line-height: 25px;
    margin-top: 2px
}

.compRow,
.compRow2
{
    margin-top: 0px;
}

.rowLeft
{
    text-align: left;
}

.rescell,
.compcell,
.resnote
{
    width: 5%;
    height: 25px;
    background-color: transparent;
    text-align: center;
    vertical-align: middle;
    line-height: 25px;
    font-size: 18px;
    font-weight: normal;
    padding: 5px 10px;
    margin-top: 2px
}

.complabel
{
    width: 20px;
    background-color: transparent;
    position: relative;
    padding: 0px 1%;
    margin: 0px 0px 0px 1%;
}

.resnote
{
    padding: 5px 20px 0px 5px;
    margin: 0px 0px 0px 25px;
}

.items
{
    width: 100%;
    height: 15px;
    text-align: center;
    vertical-align: middle;
    background: transparent;
    padding: 0% 0px 5% 5%;
    margin: 0% 0px 0px 0%;
    margin-top: 2px;
    float: left;
}

.text
{
    width: 80%;
    height: 80%;
    background: transparent;
    font-weight: normal;
    line-height: 1.6;
    display: block;
    margin: 50px 0px 0px 40px;
}

.selected
{
    background-color: #4CAF50;
}

.rightchcb
{
    width: 100%;
    height: 15px;
}

.gap 
{
    height: 120px;
}

.setvalues
{
    width: 100%;
    text-align: left;
}

.autoBut,
.autoBut:active,
.autoBut:checked
{
    width: 110px;
    line-height: 35px;
    padding: 0px 0px;
    color: white;
}

.autoBut:hover
{
    color: white;
}

.red
{
    background-color: red;
}

.transparent
{
    background-color: transparent;
}







/* MOBILE */
/* MOBILE */
/* MOBILE */


@media only screen and (max-device-width: 850px),  (max-device-height: 900px), (max-height: 700px)
{
    /* main css data */
    html 
    {
        display: block;
        height: 3150px;
        overflow-x: hidden; 
        overflow-y: visible;
    }

    body
    {
        background-color: #f1f1f1!important;
        display: block;
        margin: 0px;
        padding: 0px;
    }

    /* css for main menu div */
    #topDiv
    {
        position: absolute;
        top: 0px;
        background-color: #5f5f5f;
        width: 100%;
        /*min-width: 980px;*/
        height: 100px;
    }

    /* css for div with triangle items */
    #leftDiv
    {
        position: absolute;
        top: 150px;
        width: 100%;
        min-width: 100px;
        /*height: calc(100% - 100px);*/
        overflow-y: hidden;
        overflow-x: hidden;
    }
    
        /* css for div items checkbox */
    #threeitems
    {
        margin-top: 3%;
    }

    /* css for div with triangle items */
    #rightDiv
    {
        position: absolute;
        top: 3000px;
        width: 100%;
        min-width: 100px;
        max-height: 800px;
    }

    #openGraphDiv
    {
        position: relative;
        /*position: absolute;*/
        background-color: #5f5f5f;
        width: 100%;
        text-align: center;
    }

    /* main div css where all triangle data is shown */
    #centerDiv
    {
        position: absolute;
        top: 951px;
        left: 0%;
        width: 100%;
        min-width: 100px;
    }

    #centerTLDiv
    {
        position: relative;
        top: 0px;
        width: 100%;
        z-index: 100;
    }
    
    #resultstable
    {
        z-index: 100;
    }

    #centerBLDiv
    {
        position: relative;
        top: 0px;
        left: 0%;
        width: 100%;
        height: 800px;
    }
    
    #centerBRDiv
    {
        position: relative;
        top: 0px;
        width: 100%;
        left: 0%;
        height: 800px;
    }
    
    #completetable1,
    #completetable3
    {
        width: 240px;
        display: inline-block;    
        margin-left: -20px;
    }

    #completetable2,
    #completetable4
    {
        width: 200px;
        display: inline-block;
    }
    
    #completetable1,
    #completetable2
    {
        margin-left: 120px;
    }
    
    #completetable3,
    #completetable4
    {
        position: absolute;
        left: 350px;
        top: 400px;
        width: 200px;
        display: inline-block;
    }
    
    #completetable3
    {
        left: 250px;
    }

    /* div to show other pages */
    #newsDiv,
    #programDiv,
    #downloadDiv,
    #authorDiv,
    #graphDiv
    {
        display: none;
    }

    #newsBut,
    #programBut,
    #downloadBut,
    #authorBut,
    #triangleBut,
    #authorBut,
    #aButLabel
    { 
        display: none;
    }
    
    #selLangBut
    { 
        float: right;
        width: 150px;
        height: 90%;
    }

    #elementscheckbox
    {
        width: 90%;
        text-align: center;
        vertical-align: middle;
        line-height: 90%;
        display: inline-block;
    }

    #selLangDiv
    {
        position: absolute;
        background-color: #ddffdd;
        float: left;
        top: 80px;
        right: 11%;       
        width: 415px;
        height: 80px;
        display: none;
    }

    #errorDiv
    {
        position: fixed;
        background-color: rgba(140,0,0,0.70);
        font-size: 40px;
        text-align: center;
        vertical-align: middle;
        line-height: 90px;  
        color: white;
        float: left;
        top: calc(10px + 50px);
        right: 1%;       
        width: 98%;
        height: 10%;
        display: none;
    }

    input[type="text"],
    .button,
    .label,
    .label2,
    .resRow,
    .compRow,
    .resHead,
    .rescell,
    .compcell,
    .complabel,
    .resnote,
    .items,
    .text
    {
        font-family: "Segoe UI",Arial,sans-serif;
        color: #1a1a1a;
        font-size: 40px;
        font-weight: bold;
        text-decoration: none;
        border: none;
    }
    
    .resHead,
    .items
    {
        font-weight: bold;
    }

    .button
    {
        font-weight: bold;
        color: #ffffff;
    }

    input[type="text"]
    {
        width: 60%;
        height: 80px;
        color: #ffffff;
        font-weight: bold;
        background-color: red;
        text-align: center;
        vertical-align: middle;
        line-height: 35px;
        padding: 5px 10px;
        cursor: pointer;
        margin-top: 20px;
        float: right;
    }

    #openGraphDiv
    {
        background-color: #5f5f5f;
        width: 100%;
        height: 35px;
        text-align: center;
    }
    
    #graphBut
    {
        padding: 0px 5px;
        margin-top: 0px;
        height: 100%;
    }
    
    #graphBut
    {
        width: 140px;
    }

    #precDiv
    {
        width: 100%;
        height: 50px;
        white-space: nowrap;
        display: flex;
        align-items: flex-start;
    }

    #precision,
    #poloz,
    #hodnot
    {
        width: 100%;
        height: 100%;
        padding: 10px 0px;
        text-align: center;
    }
    
    #setPrec
    {
        width: 100%;
        padding: 0px 0px;
        text-align: center;
        padding-bottom: 20px;
    }
    
    #precSpan
    {
        display: none;
    }

    #prec
    {
        width: 20%;
        height: 100%;
        padding: 0px 0px;
        text-align: center;
        vertical-align: middle;
        float: left;
        margin-left: 40%;
    }

        /* buttons in main menu */
     .button
     {
         height: 35px;
         background: transparent;
         padding: 5px 10px;
         cursor: pointer;
         margin-top: 5px;
     }

     .button:hover
     {
         background-color: #000;
     }

     .resRow:hover,
     .compRow:hover,
     .compRow2:hover
     {
         background-color: rgba(0,0,0,0.10);
     }

     .button img 
     { 
         width: 80px;
     }

    /* labels */
    .label
    {
        width: 10%;
        height: 35px;
        background-color: transparent;
        line-height: 35px;
        margin-top: 45px
    }

    .resRow,
    .compRow,
    .resHead
    {
        width: 100%;
        height: 50px;
        background-color: transparent;
        text-align: center;
        vertical-align: middle;
        line-height: 50px;
        margin-top: 10px
    }

    .compRow,
    .compRow2
    {
        margin-top: 0px
    }

    .rescell,
    .compcell,
    .resnote,
    .complabel
    {
        width: 5%;
        height: 50px;
        background-color: transparent;
        text-align: center;
        vertical-align: middle;
        line-height: 50px;
        font-size: 40px;
        font-weight: normal;
        padding: 40px 20px 0px 0px;
        margin-top: 20px;
    }

    .complabel
    {
        width: 20px;
        background-color: transparent;
        position: relative;
        padding: 0px 1%;
        margin: 0px 0px 0px 1%;
    }

    .resnote
    {
        padding: 20px 20px 0px 5px;
        margin: 50px 0px 0px 25px;
    }

    .items
    {
        width: 99%;
        height: 10px;
        background: transparent;
        padding: 20px 0px 40px 0px;
        margin: 0% 0px 0px 1%;
        float: left;
    }

    .text
    {
        height: 50px;
        background: transparent;
        font-weight: normal;
        display: block;
        margin: 20px 0px 0px 40px;
    }

    .selected
    {
        background-color: #4CAF50;
    }

    .rightchcb
    {
        width: 80px;
        height: 60px;
        font-size: 40px;
    }
     
    .gap 
    {
        height: 120px;
    }

    .setvalues
    {
        width: 300px;
        text-align: left;
        display: inline-block;
    }

    .red
    {
        background-color: red;
    }

    .transparent
    {
        background-color: transparent;
    }
    
    .leftchcb
    {
        width: 80px;
        height: 60px;
        font-size: 40px;
    }
    
}