﻿body {
    background-color: inherit;
    font: normal 0.9em/100% fontawesome, "Helvetica Neue", Arial, sans-serif;
    background-color: #f6f9f6; /* BELA */
    margin: 0px;
}

.tabWrapper {
    min-width: 320px;
    max-width: 640px;
    margin: 0 auto;
}

.tab {
    width: 100%;
}

.tabHeader {
    background-color: #2563eb; /* TEMNO MODRA */
    color: #f6f9f6; /* BELA */
    padding: 15px;
    font-size: 1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    min-height: 25px;
}

.tabOption {
    display: flex;
    margin-top: 10px;
}

.tabData {
    margin-left: 20px;
    margin-bottom: 10px;
}
.tabInnerData {
    display: flex;
    margin-left: 20px;
    margin-bottom: 10px;
}

.tabOption label {
    margin-right: 10px;
}

#tabCalculate {
    margin-top: 10px;
    padding: 20px;
}

#tabSummary {
    border: 1px solid #d6dcff;
    border-radius: 10px;
}

/* LABEL*/

label {
    min-width: 6em;
}
label[for=paneliSmer1], label[for=paneliSmer2], label[for=paneliSmer3],
label[for=paneliNaklon1], label[for=paneliNaklon2], label[for=paneliNaklon3] {
    min-width: 3em;
}
#investicijaData label {
    min-width: 12em;
}
#vetrnicaData label {
    min-width: 8em;
}

/* SELECT */
select {
    /* styling */
    background-color: white;
    border: thin solid #afafaf;
    border-radius: 4px;
    display: inline-block;
    font: inherit;
    line-height: 1.5em;
    padding: 0.5em 3.5em 0.5em 1em;
    /* reset */

    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.minimal {
    background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%), linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
}

    select.minimal:focus {
        background-image: linear-gradient(45deg, green 50%, transparent 50%), linear-gradient(135deg, transparent 50%, green 50%), linear-gradient(to right, #ccc, #ccc);
        background-position: calc(100% - 15px) 1em, calc(100% - 20px) 1em, calc(100% - 2.5em) 0.5em;
        background-size: 5px 5px, 5px 5px, 1px 1.5em;
        background-repeat: no-repeat;
        border-color: green;
        outline: 0;
    }


select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

/* CHECKBOX */

.checkbox-block {
    display: flex;
    justify-content: space-between;
}

.checkbox-effect:not(:checked),
.checkbox-effect:checked {
    position: absolute;
    left: -9999px;
}

label {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

/* checkbox effect #4 */
.checkbox-effect-4:not(:checked) + label:before,
.checkbox-effect-4:checked + label:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f6f9f6; /* BELA */
    box-sizing: border-box;
    border-radius: 3px;
    margin-right: 20px;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0.2s;
}

.checkbox-effect-4:not(:checked) + label:after, .checkbox-effect-4:checked + label:after {
    content: "\f00c";
    font-family: fontawesome;
    font-size: 22px;
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: 0;
    left: 2px;
    color: #f6f9f6; /* BELA */
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0;
    transform-origin: center center;
    opacity: 0;
}


#dodatnaporabaData .checkbox-effect-4:not(:checked) + label:before,
#dodatnaporabaData .checkbox-effect-4:checked + label:before {
    border: 2px solid black; /* BELA */
}

#dodatnaporabaData .checkbox-effect-4:not(:checked) + label:after,
#dodatnaporabaData .checkbox-effect-4:checked + label:after {
    color: black; /* BELA */
}


.checkbox-effect-4:not(:checked) + label:after {
    transform: scale(0);
}

.checkbox-effect-4:checked + label:before {
    transform: scale(0);
    opacity: 0;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
    transition-delay: 0;
}

.checkbox-effect-4:checked + label:after {
    transform: scale(1);
    opacity: 1;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.57, 1.9, 0, 1.52);
    transition-delay: 0.2s;
}

/* BUTTON */

.button-5 {
    align-items: center;
    background-clip: padding-box;
    background-color: #fbd810; /* ROZA */
    border: 1px solid transparent;
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    margin: 10px;
    width: calc(100% - 20px);
    border-radius: 10px;
}

    .button-5:hover,
    .button-5:focus {
        background-color: #ffe96e; /* ROZA SVETLA */
        box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
    }

.button-5:hover {
    transform: translateY(-1px);
}

.button-5:active {
    background-color: #c24fe1; /* ROZA TEMNA */
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
    transform: translateY(0);
}

/* INPUT NUMBER */

input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.number-input {
    border: 2px solid #ddd;
    display: inline-flex;
}

.number-input-noButtons {
    display: inline-flex;
}

.number-input,
.number-input *,
.number-input-noButtons,
 number-input-noButtons * {
    box-sizing: border-box;
}

.number-input button {
    outline: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    width: 2.0rem;
    height: 2.0rem;
    cursor: pointer;
    margin: 0;
    position: relative;
}

    .number-input button:before,
    .number-input button:after {
        display: inline-block;
        position: absolute;
        content: '';
        width: 1rem;
        height: 2px;
        background-color: #929292;
        transform: translate(-50%, -50%);
    }

.number-input button.plus:after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.number-input input[type=number]
{
    font-family: sans-serif;
    max-width: 6rem;
    padding: .5rem;
    border: solid #ddd;
    border-width: 0 2px;
    font-size: 1.2rem;
    height: 2rem;
    font-weight: bold;
    text-align: center;
}

.number-input-noButtons input[type=number] {
    font-family: sans-serif;
    max-width: 6rem;
    border: solid #ddd;
    border-width: 2px;
    font-size: 1.2rem;
    height: 2rem;
    font-weight: bold;
    text-align: center;
}


/* ALERT */
/* The alert message box */
.alert {
    padding: 5px;
    background-color: #fff7f7;;
    color: #f44336;
    margin: 20px auto;
    width: min(500px, 80%);
}

/* The close button */
.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

/* When moving the mouse over the close button */
.closebtn:hover {
    color: black;
}

.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1;
    width: 100%;
    height: 100%;
}

    .modal[open] {
        display: flex;
        top: 0px;
        left: 0px;
    }

.model-inner {
    background-color: white;
    border-radius: 0.5em;
    max-width: 600px;
    padding: 2em;
    margin: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid black;
}

#modal-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: black;
    opacity: 0.5;
}

@media only screen and (max-width: 420px) {
    #solarnisledilnikMoc {
        max-width: 185px;
    }
    #hranilnikKapaciteta {
        max-width: 185px;
    }
    #paneliMoc {
        max-width: 185px;
    }
    #paneliSmer1, #paneliSmer2, #paneliSmer3 {
        max-width: 130px;
        font-size: 0.9em;
    }
    
}
#modal-text {
    line-height: 1.8;
}