*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
}



body{
    background:#000;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

#app{
    width:100%;
    max-width:800px;
    height:100vh;
    height:100dvh;
    background:#202020;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}


header{
    width:100%;
    min-height:72px;
    background: #202020;
    border-bottom:1px solid #333;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 45px;
}

.logoLeft{
    height:40px;
    max-width:300px;
    object-fit:contain;
    display:block;
}

.logoBlock{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
}

.title{
    text-align:center;
    font-size:14px;
    font-weight:bold;
    color:#fff;
}


.verticalText {
    font-family: monospace;
    font-size: 10px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: mixed; /* keeps letters readable */    
}

.headerIcons{
    display:flex;
    align-items:center;
    gap:10px;
}

header a{
    display:block;
}

.k1Logo{
    height:50px;
    width:auto;
    display:block;
}

.k1Logo:hover{
    opacity:0.8;
}

.headerIcons img{
    height:50px;
    width:auto;
    object-fit:contain;
    cursor:pointer;
}

.headerHelp{
    width:22px;
    height:22px;
    margin-right:30px;
    display:block;
    background-image:url("pic/info.png");
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    cursor:help;
}

#content{
    width:100%;
    flex:1;
    min-height:0;
    padding:20px;
    padding-top: 0px;
    overflow-y:auto;
    font-size:12px;
}


.param{
    max-width:400px;
    display:grid;
    grid-template-columns:1fr 18px 65px 40px;
    align-items:center;
    gap:8px;
    background:#3c3c3c;
    border:1px solid #333;
    border-radius:3px;
    padding:5px;
    margin:0 auto 6px auto;
}


.param label{
    color:#ddd;
    font-weight:bold;
}

.param input{
    width:65px;
    background:#111;
    color:#fff;
    border:1px solid #555;
    border-radius:3px;
    padding:3px;
    text-align:center;
    font-size:13px;
}

.unit{
    width:40px;
    color:#aaa;
    text-align:left;
    font-weight:bold;
}


.help{
    display:inline-block;
    cursor:help;
}

.help img{
    width:14px;
    height:14px;
    display:block;
}

#helpPopup{
    position:fixed;
    display:none;
    max-width:400px;
    background:#111;
    color:#fff;
    border:1px solid rgb(170, 0, 0);
    border-radius:5px;
    padding:10px;
    font-size:12px;
    line-height:1.4;
    z-index:10000;
    pointer-events:none;
    box-shadow:0 0 10px rgba(0,0,0,.6);
}

footer{
    width:100%;
    min-height:65px;
    flex-shrink:0;
    background:#202020;
    border-top:1px solid #333;
    display:flex;
    align-items:center;
    gap:10px;
    padding-left:60px;
    padding-right:60px;
}



footer button{
    width:120px;
    height:35px;
    background:rgb(0, 170, 170);
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:16px;
    cursor:pointer;
}

.footerSpacer{
    flex:1;
}

footer button:hover{
    background:rgb(0, 170, 170);
}

footer button:disabled{
    background:#444;
    color:#888;
    cursor:default;
}



/*  Nejaka condition, ked je menej ako 600px, to ani netreba, kedze sme na desktope iba*/

@media(max-width:600px){
    header{
        padding:8px 12px;
    }

    #content{
        padding:12px;
    }

    footer{
        min-height:60px;
        padding:8px;
        gap:8px;
    }

    footer button{
        width:auto;
        flex:1;
        min-width:0;
        font-size:14px;
    }

    .footerSpacer{
        display:none;
    }
}

.ultimateParam.ultimateDisabled{
    background:#1d1d1d;
    border-color:#292929;
}

.ultimateParam.ultimateDisabled label,
.ultimateParam.ultimateDisabled .unit,
.ultimateParam.ultimateDisabled .help{
    opacity:0.35;
}

.ultimateParam input:disabled{
    background:#202020;
    color:#666;
    border-color:#333;
    cursor:not-allowed;
}
