:root {
    --bg-color: rgb(246, 246, 246);
    --main: #D94131;
    --svetloCrvena: #F4B3B3;
    --bela: #FFFFFF;
    --bg: #F7F7F7;
    --bg1: rgb(246, 246, 246);
    --bg2: rgb(240, 240, 242);
}

@font-face {
    font-family: poppins;
    src: url(/poppins/Poppins-Medium.ttf);
}

html, body {
    margin: 0;
    padding: 0;
}

.main {
    background-color: var(--bg2);
    font-family: poppins;
}

.header {
    display: flex;
    position: relative;
    justify-content: center;
    flex-direction: row;
    margin: auto;
    background-color: var(--bg1);
    padding: 16px;
}

.onama-wrapper {
    position: relative;
    height: auto;
}

.onama {
    display: block;
    position: relative;
    z-index: 1;
    height: 165px;
    padding: 16px;
}

.onama p {
    display: block;
    position: absolute;
    z-index: 1;
}

.img-bg {
    display: block;
    position: absolute;
    top: 50px;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 0;
    opacity: 0.4;
}

.title {
    color: var(--main);
    font-size: 24px;
}

.btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}

.btn:hover {
    cursor: pointer;
}

.btn_red {
    background-color: var(--main);
    color: white;
}

.red {
    color: var(--main);
}

.usluge {
    display: flex;
    padding: 16px;
}

.usluge h3 {
    color: var(--main);
    margin-bottom: 2px;
}

.card-wrapper {
    display: flex;
    position: relative;
    margin: auto;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: left;
    flex: 1 1 0px;
    min-width: 220px;
    box-sizing: border-box;
    width: 100%;
    gap: 8px;
    align-items: stretch;
}

.card {
    display: flex;
    background-color: white;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    gap: 8px;
    width: 100px;
    font-size: 8px;
}

.footer {
    padding: 8px 16px 16px;
    background-color: var(--main);
    color: white;
}

.footer {
    display: block;
    position: relative;
}

.footer h3 {
    color: white;
}

.footer a {
    color: white;
    text-decoration: none;
}

.trademark {
    text-align: center;
}

.home-icons-content {
    display: flex;
    background-color: white;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    gap: 16px;
    font-size: 8px;
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 16px;
    min-width: 350px;
    max-width: 400px;
    text-align: left;
    flex: 1 1 0px;
}

.home-icons-content button::after {
    content: "SAZNAJ VIŠE";
}

.home-icons-content.active button::after {
    content: "ZATVORI";
}

.home-icons-text-content {
    display: flex;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 18vh;
    left: 50%;
    overflow-x: auto;
    width: calc(100vw - 60px);
    text-align: left;
    transition: 1s ease-in-out;
    max-height: 0;
    padding: 20px;
    z-index: 10;
    background-color: white;
    overflow: auto;
}

.home-icons-content.active .home-icons-text-content {
    display: block;
    max-height: 500px;
    border: 1px solid black;
    border-radius: 8px;
}

.home-icons-content .home-icons-text-content {
    max-height: 0;
    display: none;
}

.btn-x {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.blankcard {
    background-color: transparent;

}

* {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

@media only screen and (min-width: 800px) {

    .home-icons-text-content {
        width: 94%;
        font-size: 16px;
        top: 18vh;
        min-height: 200px;
        max-height: 600px;
        flex: 1 1 calc(25% - 16px);
    }

    .home-icons-text-content img {
        width: 100px;
        height: 100px;
    }

    .home-icons-content {
        min-width: 400px;
        max-width: 600px;
        height: 100px;
        font-size: 21px;
        box-sizing: border-box;
        flex: 1 1 calc(25% - 16px);
    }

    .img-bg {
        top: 50px;
        right: 50px;
        width: 200px;
        height: 200px;
    }

    h1 {
        font-size: 24px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 18px;
    }
}

@media only screen and (min-width: 2400px) {
    .home-icons-content {
        min-width: 550px;
        max-width: 850px;
        flex: 1 1 calc(25% - 16px);
    }
}

/* mobile */
@media only screen and (max-width: 801px) {
    .home-icons-content {
        gap: 8px;
        padding: 2px 4px;
        min-width: auto;
    }

    .home-icons-text-content {
        height: 200px;
    }

    .btn {
        font-size: 10px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 10px;
    }
}