body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}


/* Glavna slika */

.main-img {
    position: relative;
    display: block;
    background-color: #567B8E;
    background-image: url("img/libertas3.jpg");
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
    width: 100%;
    height: 363px;
}

.card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    width: 80%;
    height: 90%;
}


/* Navigacioni meni */

.navbar-nav {
    display: none;
}

.navbar {
    background-color: white;
    overflow: hidden;
    height: 100px;
    color: #036FA8;
    align-items: center;
    justify-content: center;
}

.navbar a {
    float: left;
    display: block;
    color: #036FA8;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 24px;
}

.navbar a:hover {
    background-color: #dcf0f1;
}

.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: white;
    opacity: 0.9;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
}

.side-nav a {
    padding: 10px 10px 10px 5px;
    text-decoration: none;
    font-size: 22px;
    display: block;
    transition: 0.3s;
    color: #567B8E;
}

.side-nav a:hover {
    color: #036FA8;
}

.side-nav .btn-close {
    position: absolute;
    top: 0;
    right: 22px;
    font-size: 36px;
}


/* Section A */

#section-a {
    background: #fff;
    color: rgb(6, 83, 124);
    padding: 1em;
    font-size: 120%;
}


/* Section B */

#section-b-heading {
    background: #567B8E;
    padding: 1em;
    color: #fff;
}

#section-b {
    background: #567B8E;
    padding: 2em 1em 1em;
}

#section-b ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#section-b li {
    margin-bottom: 1em;
    background: #fff;
    color: rgb(6, 83, 124);
}
#section-b li.zerocard {
    margin-bottom: 1em;
    background: transparent;
    color: rgb(6, 83, 124);
}

.card-content {
    padding: 1.5em;
}


/* Button */

.button {
    background-color: white;
    color: #036FA8;
    border: 2px solid #036FA8;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 10px;
}

.button:hover {
    background-color: #036FA8;
    color: white;
}


/* project.html */

#project-section section {
    padding: 20px 10px;
    margin: 10px 10px;
    background-color: #567B8E;
    color: #fff;
    text-align: center;
}


/* onama.html */

#o-nama-section section {
    padding: 20px 10px;
    margin: 10px 10px;
    background-color: #567B8E;
    color: #fff;
    text-align: center;
}


/* kontakt.html */

#kontakt-section section {
    padding: 20px 10px;
    margin: 10px 10px;
    background-color: #567B8E;
    color: #fff;
    text-align: left;
}

#kontakt-section section a {
    text-decoration: none;
    color: #fff;
}

.fimek {
    text-decoration: none;
    color: #26263b;
}

.grid-container {
    display: grid-inline;
    grid-template-columns: auto auto auto;
    background-color: #fff;
    padding: 10px;
}

.grid-item {
    padding: 20px;
}

/* index.html */
#section-c .grid-container { background: #d4e0e6; padding-left: 15%; padding-right: 15%; }

@media (min-width: 700px) {
    .background {
        background-color: #26263b;
    }
    /* Navigacioni meni */
    .navbar {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .navbar ul {
        margin-top: 15px;
        margin-right: 3%;
        list-style: none;
        display: flex;
        justify-content: center;
    }
    .navbar-nav {
        display: block;
    }
    .main-img {
        position: relative;
        margin-top: 20px;
    }
    .open-slide {
        display: none;
    }
    /*Sections grids and flex */
    #section-a {
        padding: 1em 8em 2em 8em;
    }
    .grid {
        display: grid;
        grid-template-columns: 1fr 8fr 8fr 1fr;
    }
    .content-wrap,
    #section-b ul {
        grid-column: 2/4;
    }
    #section-b ul {
        display: flex;
        justify-content: space-around;
    }
    #section-b li {
        width: 19%;
    }
    /* projekti.html */
    #project-section {
        margin: 50px;
    }
    #project-section section {
        padding: 20px 60px 40px;
        margin: 40px 160px;
        text-align: left;
    }
    /* onama.html */
    #o-nama-section {
        margin: 50px;
    }
    #o-nama-section section {
        padding: 20px 60px;
        margin: 40px 160px;
        text-align: left;
    }
    /* kontakt.html */
    #kontakt-section {
        margin: 50px;
    }
    #kontakt-section section {
        padding: 20px 60px;
        margin: 40px 160px;
    }
    .grid-container {
        display: grid;
        padding-left: 15%;
        padding-right: 10%;
    }
    .footer-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    /* index.html */
    #section-c .content-text { text-align: left; }
}