/***********************************
            OSNOVNI CSS
***********************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}


/***********************************
    DESNI SIDEBAR (NAVIGACIJA)
***********************************/

.sidebar {
    width: 250px;
    background-color: #0051ff;
    color: #ecf0f1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: 0;
    height: 100vh;
}

nav ul {
    list-style: none;
    width: 100%;
}

nav ul li {
    margin: 10px 0;
}

nav ul a {
    text-decoration: none;
    color: #ecf0f1;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul a:hover {
    background-color: #0051ff;
    color: #fff;
}


/***********************************
            CONTENT
***********************************/

.content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    overflow-y: auto;
}

.content h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    color: #0051ff;
}

.content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #0051ff;
}

.content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

#opis {
    text-align: center;
}

main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

form {
    background-color: #f6f6f6;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 20px;
    min-width: 100%;
    margin: auto;
    margin-top: 50px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="number"]:focus {
    border-color: #0051ff;
    outline: none;
}

button {
    background-color: #0051ff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

button:hover {
    background-color: #001aff;
}

main img {
    padding-top: 50px;
    margin: auto;
    height: 300px;
}

.opisLika {
    background-color: #f6f6f6;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 20px;
    width: 100%;
    margin: auto;
}

.popisLikova {
    background-color: #f6f6f6;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 20px;
    width: 100%;
    margin: auto;
}


/***********************************
            FOOTER
***********************************/

footer {
    text-align: center;
}

.mainFooter {
    position: absolute;
    text-align: center;
    bottom: 0;
    width: 70%;
    height: 50px;
}


/***********************************
            RESPONZIVNOST
***********************************/

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .content {
        width: 100%;
    }
}