
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --viharcek: #19682b;
    --rdeca:#B50716;
    --rjava: #691920;
    --SvetloZ:#b4ccba;
    --SvetloZ1:#bcddc8;
    --crna: #0A1A13;
    --bela: #EEFFEE;
    --robovi: #69192040; 
}



body {
    font-family: 'Alegreya Sans', sans-serif;
    background-color: #19682B20;
    
}

.container {
    width: min(90%, 1300px);
    margin: 0 auto;
}


textarea {
    white-space: pre-wrap;
}


/********************** HEADER ******************************************/ 

header {
    background-color: var(--robovi);
    width: 100%;
    position: relative;
    margin: 0 auto;
}


.zgoraj {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1em 0;
    position: relative;
}

.odjava{
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: var(--SvetloZ);
    color: var(--viharcek);
    padding: .5em 1em;
    border-radius: 5px;
    margin: 1em;
        
}


.header__text {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}


/* Napis PD Viharnik */
header h1 {
    text-align: center;
    font-size: 2.5em;
    font-weight: 900;

}

header h2 {
    text-align: center;
    font-size: 1.8em;
    font-weight: 600;

}



nav {
    top:0;
    transform: unset;
    grid-column: 1 / 3;
    grid-row: 4/5;
    height: 2.5rem;
    background:var(--crna);
    padding: .1em 1em;
}

nav ul {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-content: center;
    height: 100%;
}

nav>ul>li, nav>ul>li.screen {
    width:13ch;
    margin: 0 5px;
    text-align: center;
    height: 100%;
    color: #EEFFEE;
}

nav>ul>li>a:hover::before {
    transform: scale(1,1);
}

.podmenu {
    display: none;
    position: absolute;
    top:38px;
    background:var(--SvetloZ);
    width:13ch;
    text-align: center;
    border-radius: 0 0 5px 5px;
    justify-content: center;
}


.podmenu ul {
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
}

.podmenu a{
    color: var(--rjava);        
}


nav>ul>li:hover .podmenu {
    display: flex;
}


.podmenu:hover .podmenu {
    display: flex;
}


.podmenu li {
    margin: auto 0;
    padding: .5em .3em;
}

nav a {
    color: var(--SvetloZ);
    opacity: 1;
    text-transform: none;
}

nav>ul>li>a::before {
    content: '';
    display: block;
    height: 5px;
    background: var(--bela);
    opacity: .50;
    transform: scale(0,1);
    transition: transform ease-in-out 250ms;
    top: -5px;
}


.podmenu li a::before {
    content: '';
    display: block;
    height: 2px;
    background: var(--rjava);
    opacity: .50;
    transform: scale(0,1);
    transition: transform ease-in-out 250ms;
}

.podmenu li a:hover::before {
    transform: scale(1,1);
}  





/***************** KONEC HEADERJA **************************/







/******************* MAIN ***************************************/

main {
    padding: 10px 5px;
    background: var(--bela);
    color: var(--viharcek);
}


h1 {
    font-size: 2em;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    text-align: center;
    margin-top: 1.5em;
    margin-bottom: .5em;
}

/******* LOGIN FORM *****/

.login__form {
    margin: 3em auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1em;
    max-width: 400px;
}

#geslo2 {
    display: none;
    
}

.login__input__text, .login__button{
    font-family: inherit;
    width: 100%;
    font-weight: 700;
    min-height: 1.5rem;
    letter-spacing: 2px;
    border: 0;
    outline: none;
}

.login__input__text {
    padding: 1em;
    max-height: 400px;
}

.login__input__text::placeholder, .login__button{
    text-transform: uppercase;
    font-size: .80rem;
}

.login__input__text::placeholder {
    opacity: .60;
}

.login__input__text:focus::placeholder {
    color: var(--rjava);
    opacity: .85;
}

.login__input{
    position: relative;
}

.login__input::after{
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 1px;
    background-color: var(--rjava);
    opacity: .25;
}




.login__buttons {
    display: flex;
    gap: 5px;
}

.login__button {
    background: var(--bela);
    color: var(--rdeca);
    padding: .8em;
    cursor: pointer;
}

.login__button:hover {
    background: var(--viharcek);
    color: var(--bela);
}

.pozabljeno__geslo {
    color: var(--viharcek);
    margin: 0 auto;

}

.login__obvestilo {
    color: red;
    width: 100%;
    text-align: center;
    font-size: 1.3em;
    font-weight: 500;
}




/******************* OBIČAJNA TABELA ***************************************/

.tabelca {
    border: 5px solid #ccc;
    margin: auto;
    width: auto;
    margin-top: 2em;
}

.tabelca thead tr th  {
    background-color: var(--robovi);
    color: var(--viharcek);
    padding: 1em 1em;
    font-size: 1.2em;
    font-weight: 500;
    text-align: left;
}

.tabelca tr td {
    color: black;
    padding: 1.2em 1em;
    font-size: 1em;
}

.tabelca tr:nth-child(odd) {
    background-color: var(--SvetloZ); 
}

.tabelca tr:nth-child(even) {
    background-color: var(--bela);
}

.tabelca tr td button {
    background: var(--bela);
    color: var(--rdeca);
    padding: .4em .8em;
    cursor: pointer;
}

.tabelca tr td button:hover {
    background: var(--viharcek);
    color: var(--bela);
}


/******************* OBIČAJEN FORM ***************************************/

.form_table {
    margin: 1em auto;
}

.form_table tr {
    width: auto;
}

.form_table tr:nth-child(odd) {
    background-color: var(--SvetloZ); 
}

.form_table tr:nth-child(even) {
    background-color: var(--SvetloZ1);
}

.form_table td {
    padding: .6em 1em;
    vertical-align: middle;
    text-align: left;
}

.td_gumbi {
    width: 100%;
    text-align: center;
}

.td_gumbi button {
    width: 20%;
    margin: 1em 2em;
}


.normal {
    margin: 3em auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    overflow: hidden;
    margin-bottom: 1em;
    font-size: 1.2em;
    padding: 1em;
    text-align: center;
    width: fit-content;
}


.normal input[type=text], .normal select, .normal input[type=date], .normal label {
    min-height: 1.5rem;
    letter-spacing: 2px;
    padding: .5em .3em;
}

.normal input[type=text],  .normal label {
    width: 100%;
}


.normal input[type=text].stevilka,  .normal label.stevilka {
    width: 5em;
    min-height: 1.5rem;
    letter-spacing: 2px;
    padding: .5em .3em;
}

.normal hr {
    margin: .5em 2em;
}

.normal p.maliText {
    font-size: .8em;
    padding: .3em;
}



.normal p.maliText input[type=text] {

    padding: .3em .1em;
    font-size: .8em;
}

.normal input[type=checkbox] {
    margin: .5em .2em;

}

.normal input[type=date] {
    min-width: 20ch;
}

.normal textarea {
    width: 100%;
    min-height: 1.5rem;
    padding: .5em;
}

.normal button, .normal input[type=submit] {
    background: var(--bela);
    color: var(--rdeca);
    padding: .8em;
    cursor: pointer;
}

.normal button:hover, .normal input[type=submit]:hover {
    background: var(--viharcek);
    color: var(--bela);
}

.normal input[type=checkbox] {
    width: 1em;
    height: 1em;
}

.feedback {
    color: red;
    width: 100%;
    text-align: center;
    font-size: 1.3em;
    font-weight: 500;
}





/******************* vrstica tabele za vnos ***************************************/


.tr_vnos td {
    padding: .2em .8em;
    vertical-align: middle;
}


.tr_vnos td input[type=text] {
    width: 100%;
    min-height: 1.5rem;
    letter-spacing: 2px;
    padding: .5em .3em;
}


.tr_vnos td button, .button_text {
    background: var(--bela);
    color: var(--rdeca);
    padding: .8em;
    cursor: pointer;
}

.tr_vnos td button:hover, .button_text:hover {
    background: var(--viharcek);
    color: var(--bela);
}


/*************** FORM ZA DODAJANJE NOVE OSEBE *******************/
.dodajOsebo {
    display: flex;
    flex-direction: column;
    padding: 1em;
    justify-content: space-around;
    align-items: center;
}

.dodajOsebo input {
    padding: .2em .4em;
}

.dodajOsebo button {
    padding: .5em .8em;
    font-size: 1.3em;
    max-width: 15ch;
    border-radius: 8px;
    margin: 1em 0;
}

.dodajOsebo form {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: .3em 0;
    margin: .5em 0;
    border:  2px solid var(--robovi);
}

.dodajOsebo form button {
    padding: .2em .4em;
    font-size: 1em;
    max-width: 10ch;
    border-radius: 4px;
    margin: 0;
}


/****** GRAF ***********/


.okvirGrafa {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;

}

.legendaGrafa {
    display: flex;
    flex-direction: column;
    gap: 1em;
}


.legendaGrafa div {
    display: flex;
    flex-direction: row;
    gap: .7em;
    align-items: center;
}

.barvniKvadratek {
    width: 1.5em;
    height: 1.5em;
}




/******* Drag drop tabela - premikanje vrsdtic**************/

.dragDropReorderTable tr:hover td {
    background-color: #59a85b;
    color: #691920;
    border-top: 2px solid #333;
}

.dragDropReorderTable tr td {
    cursor: ns-resize;
}

.dragDropReorderTable a {
    cursor:pointer;
}



/**************** HELP DIV **********************/

.help {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .8em;
    margin: 3em;
    width: auto;

    background-color: var(--robovi);
    color: var(--viharcek);

    border-radius: 5px;
}

.help p {
    line-height: 1.8rem;
}