* {
    font-family: 'Tahoma', 'Helvetica', 'Roboto', sans-serif;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 16px;
}

body {
    position: relative;
}

.site {
    width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 10vh;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    top: 10vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 10px;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

.input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.wymiary {
    max-width: 300px;
}

.wymiary>input {
    width: 45%;
}

.wymiary>input:first-of-type {
    text-align: right;
}

.wymiary>input:nth-of-type(2) {
    text-align: left;
}

.double>input {
    border: none;
    text-align: right;
    background-color: white;
    color: black;
}

label {
    padding: 0;
    font-size: 1.25rem;
    margin: 3px;
}

.max {
    width: max-content;
}

.hidden {
    visibility: hidden;
}

input {
    font-size: 1.25rem;
    margin: 3px;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    border: 1px solid black;
    min-width: 60px;
}

input:disabled {
    background-color: #f5f5f5;
}

input[type=submit] {
    padding: 10px;
    width: min-content;
    cursor: pointer;
    background-color: lightgray;
    align-self: center;
}

input[type=submit]:hover {
    background-color: black;
    color: white;
}

input[type=number] {
    text-align: center;
}

input[type=checkbox],
input[type=radio] {
    min-width: 0;
    width: auto;
    margin-right: 10px;
}

select {
    font-size: 1rem;
    margin: 3px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid black;
    min-width: 60px;
}

.btn {
    font-size: 1.25rem;
    margin: 3px;
    border-radius: 5px;
    border: 1px solid black;
    padding: 10px;
    width: max-content;
    cursor: pointer;
    background-color: lightgray;
    align-self: center;
    color: black;
}

.btn:visited {
    color: black;
}

.btn:hover,
.btn:focus {
    background-color: black;
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

label {
    width: max-content;
    text-align: center;
}

p {
    text-align: center;
}

.wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.inline {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.center-flex {
    align-items: center;
    justify-content: center;
}

.horizontal {
    justify-content: space-between;
    flex-direction: row;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 25%);
    grid-template-rows: repeat(3, 25%);
    column-gap: 5%;
    row-gap: 20px;
    justify-content: center;
}

table {
    border: 1px solid black;
    border-radius: 5px;
    border-collapse: separate;
    border-spacing: 0 0;
}

td {
    border-top: 1px solid black;
    width: max-content;
    text-align: center;
}

p {
    margin: 0;
    margin-top: 10px;
    padding: 0;
}

.kloc {
    width: 100px;
    height: 100px;
    background-color: black;
}

.klocek {
    width: 20px;
    height: 20px;
    background-color: black;
    display: inherit;
}

.procent {
    width: 100%;
}

#dotab {
    margin-top: 30px;
    width: 100%;
}

.back {
    color: #F23030 !important;
    font-size: 24px;
}

.back:hover {
    color: black !important;
}

a {
    text-decoration: none;
    color: #000;
}

a:visited {
    color: #000;
}

.podpis {
    font-size: 11px;
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    z-index: -1;
    transform: translateY(0);
    transition: transform 1000ms cubic-bezier(.65, .05, .36, 1) 0s;
}

.showPodpis {
    transform: translateY(100%);
    transition: transform 1000ms cubic-bezier(.65, .05, .36, 1) 0s;
}

.menu {
    width: max-content;
    height: max-content;
    display: grid;
    grid-template-columns: max-content max-content max-content;
    grid-template-rows: auto;
    column-gap: 20px;
    row-gap: 20px;
    margin-bottom: 20px;
}

.menu>a {
    position: relative;
    display: flex;
}

.menu>a>img {
    width: 102px;
    height: 102px;
}

td a {
    display: block;
    padding: 10px;
    color: black;
}

td a:visited {
    color: black;
}

table tr:first-child:hover {
    background-color: white;
}

tr:hover {
    background-color: gray;
}

.iloczyn {
    width: 0;
    transform: translate(5px);
    display: block;
    border-top: 0;
}

.wynikcmyk {
    margin: 0;
    font-size: 16px;
    width: max-content;
}

#c {
    color: #00ccff;
    font-weight: bolder;
}

#m {
    color: #ff0066;
    font-weight: bolder;
}

#y {
    color: #ffcc00;
    font-weight: bolder;
}

#k {
    color: #000000;
    font-weight: bolder;
}

.wyniki {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.cmyk {
    padding: 0 5px;
}

.kwadrat {
    display: block;
    width: 50%;
    border: 1px solid black;
    border-radius: 5px;
}

.kwadrat:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.min {
    width: min-content;
}

.rozmiary:after {
    content: attr(data-rozmiar);
    display: block;
    position: relative;
    font-size: 10px;
    padding-bottom: 3px;
}

.rozmiary-obrot:after {
    content: attr(data-dodatk);
    display: block;
    position: relative;
    font-size: 8px;
    padding-bottom: 3px;
    color: #F23030;
}

.rozrys {
    position: relative;
    border: 2px solid black;
    padding: 20px;
}

.rozrys>div {
    position: absolute;
}

.roz {
    border: 2px solid #ff00cc;
}

.nieb {
    border: 2px solid #00ccff;
}

.ziel {
    border-top: 2px solid #55d099;
    border-bottom: 2px solid #55d099;
}

#douzyt {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#douzyt>div {
    display: grid;
    grid-auto-flow: column;
    gap: 10px;
    align-items: center;
}

#douzyt>div>input {
    min-width: 80px;
}

#douzyt>div>*:first-child {
    width: 30px;
    text-align: right;
}

#douzyt>div>*:last-child {
    width: 10px;
}

#douzyt>div>p {
    cursor: pointer;
}

#donakl {
    border-bottom: double 3px black;
}

#donakl>div {
    display: grid;
    grid-auto-flow: column;
    gap: 10px;
    align-items: center;
}

#donakl>div>*:first-child {
    width: 30px;
}

#donakl>div>*:last-child {
    width: 10px;
}

#donakl>div>p {
    text-align: center;
    margin: 3px;
}

#naguzyt {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 10px;
}

#naguzyt>* {
    width: 86px;
}

#naguzyt>*:first-child {
    width: 30px !important;

}

#naguzyt>*:last-child {
    width: 10px !important;
}


#poduzyt {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 10px;
}

#poduzyt>* {
    width: 86px;
}

#poduzyt>*:first-child {
    width: 30px !important;

}

#poduzyt>*:last-child {
    width: 10px !important;
}

#poduzyt>p {
    cursor: pointer;
}

#douzyt>div>p {
    text-align: center;
    margin: 3px;
}

#add {
    cursor: pointer;
}

.wrapper>label {
    margin-top: 20px;
}

.svgwrap * {
    width: 0;
    height: 0;
}

.cashgrid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.cashgrid>div {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

.fail {
    color: #F23030;
}

.help-icon {
    position: absolute;
    top: -5vh;
    right: -100%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.main-help,
#help .help-icon {
    right: -10%;
}

@media screen and (max-device-width: 480px) and (orientation: portrait) {
    .help-icon {
        right: 0 !important;
        left: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .inline {
        flex-direction: column;
    }
}

#help {
    position: absolute;
    top: 0;
    background-color: white;
    z-index: 999;
    width: 100%;
    padding-top: 8vh;
    padding-bottom: 8vh;
    box-shadow: 0px -30px 50px darkgray;
    min-height: 100vh;
}

.closed {
    opacity: 0;
    transform: translateY(calc(-100% - 10vh));
    transition: transform 1000ms cubic-bezier(.65, .05, .36, 1) 0s, opacity 0ms linear 2000ms;
}

.opened {
    opacity: 100;
    transform: translateY(0);
    transition: opacity 0ms linear 0ms, transform 1000ms cubic-bezier(.65, .05, .36, 1) 0s;
}

.help-text {
    max-width: 800px;
    text-align: justify;
    margin: 0px 10px;
}

.help-text>img {
    width: 50%;
}

.help-text>img.double {
    width: 100%;
}

.active>span {
    font-weight: bold;
}

.active>input {
    background-color: #ccc;
}

.active>input:disabled {
    background-color: #aaa;
}

.nodisplay {
    display: none;
}

form>div {
    width: 100%;
}

.wrapper>img {
    max-width: 50vw;
}

[x-cloak] {
    display: none !important;
}

.red {
    color: red;
}

.green {
    color: #00AA00;
}

.bold{
    font-weight: bolder;
}