:root {
    --primary-color: #004C8C;
    --secondary-color: #2DBFC0;
    --section-background-color: #005F99;
    --background-color: #F5F7FA;
    --text-primary-color: #1C1C1C;
    --text-secondary-color: #4F4F4F;
    --btn-hover: #005F99;
}

@font-face {
    font-family: "Lato-regular";
    src: url("fonts/Lato/Lato-Regular.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Merriweather";
    src: url("fonts/Merriweather/Merriweather_48pt-Regular.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Open_Sans";
    src: url("fonts/Open_Sans/OpenSans-Regular.ttf") format("truetype");
    font-weight: normal;
}

html, body {
    width: 100vw;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    overflow-x: hidden;
}

.main {
    display: block;
    background-color: #FBFFFF;
    font-family: 'Times New Roman', Times, serif;
    width: 100vw;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary-color);
    font-family: Lato-regular;
}

.header {
    display: flex;
    justify-content: center;
    width: 100%;
    /* background-color: var(--primary-color); */
    background-color: rgb(0, 74, 173);
}

.header img {
    width: fit-content;
    max-width: 100%;
}

.lang-switch div {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 20px;
    right: 20px;
    border: 1px solid white;
    border-radius: 16px;
}

.lang-switch a {
    text-decoration: none;
    font-size: 16px;
    color: white;
    padding: 10px 15px;
    border-radius: 13px;
    font-weight: bold;
}

.lang-switch a {
    -webkit-tap-highlight-color: transparent;
}

.active {
    -webkit-tap-highlight-color: transparent;
    background-color: white;
    color: var(--primary-color) !important;
}

.container {
    display: block;
    margin: 10px;
    padding: 10px;
}

.home-text h3 {
    font-size: x-large;
    margin-bottom: 0px;
    color: var(--text-primary-color);
}

.home-text p {
    display: block;
    position: relative;
    font-size: 22px;
    align-items: center;
    margin-top: 2px;
    color: var(--text-primary-color);
}

.center-text {
    text-align: center;
}

.home-text .contact div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: left;
}

.home-text .contact p:first-of-type {
    margin: 10px;
}

.home-text .contact img:first-of-type {
    margin: 10px;
}

.home-text ul {
    padding-inline-start: 0px;
    margin-top: 0px;
}

.home-text li {
    font-size: 22px;
    list-style-type: none;
    margin-bottom: 16px;
    color: var(--text-primary-color);
}

.home-text a {
    color: black;
    font-size: 22px;
    list-style-type: none;
    text-decoration: none;
    color: var(--text-primary-color);
}

.home-text .blueText {
    color: var(--primary-color);
}


.home-text span {
    font-family: "Open_Sans";
}

.home-text img {
    padding-right: 10px;
    width: 25px;
    height: 25px;
}

.home-text h1 {
    text-align: center;
}

.bold-text {
    font-weight: bold;
    font-size: 22px;
    text-align: left;
}

.home-icons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.home-icons-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    flex: 1 1 calc(25% - 60px);
    max-width: calc(25% - 60px);
    min-width: 320px;
    max-height: 600px;
    min-height: 500px;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.home-icons-content img {
    width: 100px;
    height: 100px;
}

.home-icons-text .blueText {
    text-align: center;
}

.home-icons-text {
    display: block;
    width: 100%;
}

.home-icons-text button {
    display: flex;
    align-self: center;
    padding: 10px 20px;
    border-radius: 10px;
}

.home-icons-text-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    color: white;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
}

.home-icons-text-button button {
    cursor: pointer;
    background-color: var(--secondary-color);
    color: white;
}

.home-icons-text button:hover {
    background-color: var(--btn-hover);
}

.home-icons-content .home-icons-text-button-sr button::after {
    content: "SAZNAJ VIŠE";
}

.home-icons-content.active .home-icons-text-button-sr button::after {
    content: "ZATVORI";
}

.home-icons-content .home-icons-text-button-en button::after {
    content: "LEARN MORE";
}

.home-icons-content.active .home-icons-text-button-en button::after {
    content: "CLOSE";
}

.home-icons-text-content p {
    text-align: left;
    color: var(--section-background-color);
    font-family: Open_Sans;
}

.home-icons-text-content h3 {
    color: var(--section-background-color);
    font-family: Merriweather;
}

.home-icons-text-content li {
    color: var(--section-background-color);
    font-family: Open_Sans;
}

.home-icons-text-content a {
    color: var(--section-background-color);
    font-family: Open_Sans;
}

.home-icons-text-content {
    display: none;
    overflow-x: auto;
    height: 390px;
    text-align: left;

}

.home-icons-content-img img {
    width: 220px;
    height: 220px;
}

.home-icons-text-content img {
    width: 34px;
    height: 34px;
}

.home-icons-text-content-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    text-wrap: wrap;
    width: 100%;
    overflow: hidden;
}

.home-icons-text-content-contact {
    font-size: 22px;
}


.home-icons-content.active .home-icons-text-content {
    display: block;
}

.home-icons-content.active .blueText {
    display: none;
}

.home-icons-content.active .home-icons-content-img img {
    display: none;
}

.footer p {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    font-size: 22px;
    color: white;
    color: var(--text-primary-color);
}

.home-text form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    color: var(--text-primary-color);
}

.home-text form input {
    text-align: center;
    max-width: 300px;
    min-width: 300px;
    height: 30px !important;
    max-height: 34px !important;
    align-items: center;
    font-size: 1em;
    padding: 1px 2px;
    color: var(--text-primary-color);
    border-radius: 10px;
}

.home-text form option, select {
    text-align: center;
    max-width: 300px;
    min-width: 300px;
    height: 34px !important;
    max-height: 34px !important;
    align-items: center;
    font-size: 1em;
    padding: 1px 2px;
}

.home-text form button {
    padding: 10px 30px;
    border-radius: 10px;
    height: auto;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
}

@media only screen and (max-width: 1600px) {
    .home-icons-content {
        flex: 1 1 calc(50% - 60px);
        max-width: calc(50% - 60px);

    }
}


@media only screen and (max-width: 1000px) {
    .container {
        display: flex;
        justify-content: center;
        width: 90%;
        margin: auto;
    }

    .home-icons-content {
        flex: 1 1 calc(50% - 60px);
        max-width: calc(50% - 60px);

    }

    .home-text p {
        text-align: left;
    }
}

@media only screen and (max-width: 800px) {
    .header img {
        min-width: 300px;
        height: auto;
    }

    .home-icons-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


@media only screen and (max-width: 600px) {
    .container {
        display: block;
        margin: 10px;
        padding: 10px;
    }

    .home-text p {
        font-size: 22px;
        text-align: left;
        text-wrap-style: balance;
    }

    .home-text h3 {
        font-size: 22px;
        text-align: center;
    }

    .home-text a {
        font-size: 22px;
    }

    .home-text .contact div {
        display: flex;
        align-items: flex-start;
        margin-top: 12px;
    }

    .home-text div:first-of-type {
        margin-top: 0px;
    }

    .home-text img {
        display: block;
    }

    span {
        font-size: 22px;
        text-align: left;
    }

    .footer p {
        font-size: 12px;
    }

    .home-icons-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
}