*{
    margin: 0px;
    font-family: sans-serif;
    box-sizing: border-box;
}
body{
    background-color: #fffec7;
}
.velike_crke span{
    color: black;
    font-size: large;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
}
.slika{
    background-image: url(slike/ozadje_slika.png);
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
    background-position: center 30%;
    background-size: cover;
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    padding: 100px;
}
.debelo{
    font-weight: bold;
    color: black;
    font-size: 50px;
}
.gumbi button{
    margin: 50px;
    padding: 20px;
    background-color: red;
    border-radius: 20px;
    border: solid black 3px;
    color: white;
}
/*dropdown meni*/
.meni{
display:flex;
list-style:none;
}

.dropdown{
position:relative;
}

.dropdown_meni{
display:none;
position:absolute;
top:100%;
left:0;
background:#9c9595;
list-style:none;
padding:0;
min-width:150px;
}
.dropdown_meni a{
color:white;
text-decoration:none;
padding:15px;
}

.dropdown:hover .dropdown_meni{
display:block;
}
.container { max-width: 900px;
margin: auto; 
background-color: #fffec7;
padding: 20px; 
border-radius: 10px; 
box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
h2{ 
color: #d32f2f; 
border-bottom: 2px solid #d32f2f; 
}

/* Tabela z stolpci */
table{ 
width: 100%; 
border-collapse: 
collapse; margin-top: 20px;
}
th, td{ 
border: 1px solid #ddd; 
padding: 12px; text-align: left; 
}
th{ 
background-color: #d32f2f; 
color: white; 
}
tr:nth-child(even){ 
background-color: #f9f9f9;
}

/* Gumbi */
.vnos-box{ 
background: #eee; 
padding: 15px; 
border-radius: 5px; 
margin-bottom: 20px; 
}
.btn-dodaj{ 
background: #d32f2f; 
color: white; 
border: none; 
padding: 10px 20px; 
cursor: pointer; 
border-radius: 4px;
}
.btn-izbrisi{
background: #ff4444;
color: white; 
text-decoration: none; 
padding: 5px 10px; 
border-radius: 4px; 
font-size: 12px; 
float: right;
}
.btn-izbrisi:hover{ 
background: #cc0000;
}
.strani-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.strani-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
/*za tiste kjer ni zraven classa aktivna*/
.strani-link:hover:not(.aktivna) {
    background-color: #f1f1f1;
}
@media (max-width: 768px) {
    header {
        flex-direction: column !important;
        height: auto !important;
        padding: 20px 10px;
    }
    .head-l {
        justify-content: center;
        margin-bottom: 20px;
    }
    .meni {
        flex-direction: column !important;
        gap: 0;
        width: 100%;
        align-items: center;
    }
    header ul li {
        width: 100%;
        text-align: center;
    }
    header ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown_meni {
        position: static;
        width: 100%;
        background-color: rgb(130, 125, 125);
        display: none;
    }
    .dropdown:hover .dropdown_meni {
        display: block;
    }
    .slika {
        padding: 40px 20px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .slika .debelo {
        font-size: 35px;
        display: block;
        width: 100%;
    }
    .slika .velike_crke span {
        font-size: 20px;
        display: block;
        width: 100%;
    }
    .gumbi {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    .gumbi button {
        margin: 20px 0 0 0;
    }
    .container {
        padding: 10px;
    }
    .vnos-box form {
        flex-direction: column;
    }
    .vnos-box form input, .vnos-box form button {
        width: 100% !important;
    }
    .iskanje-box form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .iskanje-box form input, .iskanje-box form button {
        width: 100% !important;
        margin: 0 !important;
    }
    .iskanje-box form a {
        display: block;
        text-align: center;
        margin: 5px 0 0 0 !important;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        background-color: #fff !important;
        border-radius: 5px;
        padding: 5px;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: right !important;
    }
    td:before {
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #d32f2f;
    }
    td:nth-of-type(1):before { content: "Nahajališče"; }
    td:nth-of-type(2):before { content: "Opis"; }
    td:nth-of-type(3):before { content: "Količina"; }
    td:nth-of-type(4):before { content: "Možnosti"; }
    
    table thead th:last-child {
        width: auto !important;
    }
    td:last-child {
        border-bottom: none;
        text-align: right !important;
        padding-left: 50% !important;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .btn-izbrisi {
        float: none !important;
        display: inline-block !important;
        margin: 0 !important;
    }
    footer {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 20px;
        gap: 40px;
    }
    footer div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    footer div br {
        display: inline;
    }
    .socialna_omrezja {
        border-top: 1px solid #555;
        padding-top: 30px;
    }
}