/*
Theme name: IZM
Author: Igor Kizem
Date: 13.06.2024.
Description: tema kreirana za potrebe tečaja WP u IZM-u
Version: 1.0.0. WP 6.5.4, PHP 7.5
*/
body {
    font-family: 'PT Sans Narrow', sans-serif;
    margin: 0;
}

h1 {
    padding: 8px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0;
    font-size: 64px;
    font-family: "Roboto Slab", serif;
}

p {
    line-height: 1.5;
}

main {
    margin: 0 auto;
    width: 100%;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    text-decoration: underline;
}

input, textarea {
    height: 32px;
    padding: 0 16px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 20px;
    border: none;
    box-shadow: inset 8px 3px 18px -4px rgba(0, 0, 0, 0.4);
}

#banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('http://5a.internetskimarketing.eu.villasquero.com/wp-content/themes/IZM/IMG/zalazak.jpg');
    height: 50vh;
    background-color: #f5f5f5;
    padding: 20px;
}

#banner h1, #banner h3, #banner h4 {
    margin: 10px 0;
    color: white;
}

#searchbox {
    position: fixed;
    right: 0;
    top: 24px;
    width: 500px;
    pointer-events: none;
    z-index: 50;
    transition: 0.4s;
}

#searchbox input {
    height: 40px;
    width: 100%;
}

nav {
    height: 45px;
    background: #202125;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    padding: 5px 10px 0 0;
    box-sizing: border-box;
    z-index: 100;
}

nav a {
    padding: 0 10px;
    color: #eee;
    transition: 0.4s;
}

nav a:hover {
    text-decoration: none;
    color: lightblue;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    margin: 0;
}

.active {
    color: #f783ae;
}

#logo-img {
    display: flex;
    height: 100%;
    background: #202125;
    padding: 10px 5px 13px 10px;
    align-items: center;
    color: white;
    transition: 0.4s;
}

#logo-img img {
    height: 45px;
}

#menu-icon {
    height: 100%;
    font-size: 28px;
    padding: 0 4px;
    color: #eee;
    display: flex;
    align-items: center;
}

#search-icon {
    color: white;
    padding: 0 32px;
    cursor: pointer;
    transition: 0.4s;
}

#search-icon:hover {
    color: lightblue;
}

#slideout-menu {
    display: flex;
    background: #2d3436;
    z-index: 100;
    position: fixed;
    transition: 0.4s;
    margin-top: 72px;
    width: 100%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

#slideout-menu ul {
    list-style: none;
    padding: 0 32px;
}

#slideout-menu ul li {
    padding: 8px;
}

#slideout-menu a {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 20px;
    color: white;
}

#slideout-menu input {
    width: 85%;
    padding: 8px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 20px;
    text-align: center;
}

section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.section-heading {
    font-size: 32px;
    font-family: "Roboto Condensed", sans-serif;
    border-left: 3px solid black;
    border-right: 3px solid black;
    transition: all 0.4s;
    display: inline-block;
    padding: 4px 32px;
}

.section-heading:hover {
    padding: 4px 48px;
    background: red;
}

#section-source p {
    padding: 8px;
    text-align: center;
}

#section-source a {
    margin: 8px;
    text-align: center;
}

.card-image {
    transition: 0.4s;
}

.card-image:hover {
    box-shadow: 0 10px 6px -6px #777;
}

.card .card-description {
    padding: 0 8px;
}

.btn-readmore {
    padding: 8px 24px;
    border: 3px solid black;
    transition: 0.4s;
    display: inline-block;
    margin-bottom: 24px;
    margin-left: 24px;
    font-weight: bold;
    cursor: pointer;
    background: white;
}

.btn-readmore:hover {
    background: red;
    text-decoration: none;
    padding: 8px 64px;
    color: white;
}

@media(min-width: 720px) {
    main {
        width: 95%;
    }
    .card {
        width: 45%;
    }
    .card .card-image img {
        width: 100%;
    }
}

@media(min-width: 1200px) {
    main {
        width: 85%;
    }
}

@media only screen and (min-width: 1201px) {
    main {
        font-size: 18px;
    }
    header, nav, main, footer {
        width: 80%;
    }
    nav ul {
        display: flex;
        justify-content: space-around;
    }
}

@media only screen and (max-width: 1200px) {
    main {
        font-size: 16px;
    }
    header, nav, main, footer {
        width: 90%;
    }
    nav ul {
        display: flex;
        justify-content: space-between;
    }
}

@media only screen and (max-width: 992px) {
    main {
        font-size: 14px;
    }
    header, nav, main, footer {
        width: 95%;
    }
    nav ul {
        display: block;
        text-align: center;
    }
    nav li {
        margin: 10px 0;
    }
}

@media only screen and (max-width: 768px) {
    main {
        font-size: 12px;
    }
    header, nav, main, footer {
        width: 100%;
        padding: 10px;
    }
    nav ul {
        padding: 0;
    }
    nav li {
        margin: 5px 0;
    }
}

@media only screen and (max-width: 576px) {
    main {
        font-size: 10px;
    }
    header, nav, main, footer {
        padding: 5px;
    }
    nav ul {
        padding: 0;
    }
    nav li {
        margin: 2px 0;
    }
}

footer {
    background: black;
    padding: 8px;
    color: #eee;
    display: flex;
}

footer a {
    color: white;
}

footer #left-footer {
    flex: 1;
    border-right: 1px solid red;
    padding-left: 32px;
    text-align: center;
}

footer #left-footer ul {
    padding: 0;
    list-style: none;
    line-height: 1.5;
}

footer #footer-mreze {
    flex: 2;
    padding: 8px;
    text-align: center;
}

footer #footer-mreze a .fa-facebook,
footer #footer-mreze a .fa-instagram,
footer #footer-mreze a .fa-youtube {
    color: white;
    transition: 0.4s;
}

footer #footer-mreze ul {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0;
}

footer #footer-mreze ul li {
    font-size: 48px;
    padding: 16px;
    transition: 0.4s;
}

footer #footer-mreze ul li:hover a .fa-facebook {
    color: #3b5998;
}

footer #footer-mreze ul li:hover a .fa-instagram {
    color: orange;
}

footer #footer-mreze ul li:hover a .fa-youtube {
    color: red;
}
