@font-face {
    font-family: "Century Schoolbook", "Century Schoolbook L", "serif";
    src: url('font/centuryschoolbookfont/CENSCBK.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

p {
    font-family: "Century Schoolbook";
}

h3 {
    font-family: "Century Schoolbook";
    font-weight: 400;
}

* {
    margin: 0 auto;
    color: #2e3192;
}

html {
    overflow: hidden;
}

body {
    background-color: #ccffff;
}


li {
    display: flex;
    list-style-type: none;
    text-decoration: none;
    font-size: 50px;
    align-items: center;
    text-align: center;
}

.logothriveveliki {
    width: 650px;
}

nav {
    width: 1100px;
    margin-left: 620px;
    margin-top: -175px;
    width: 65%;
}

ul {
    display: flex;
    flex-direction: row;
}

hr {
    border-color: #2e3192;
}

h1 {
    font-family: "Century Schoolbook";
}

h2 {
    font-family: "Century Schoolbook";
    font-size: 60px;
    margin-top: 100px;
    margin-left: 50px;
}

.ha3 {
    font-size: 33px;
    text-align: center;
}

.div1 {
    display: flex;
    margin-top: -20px;
}

.divmini1 {
    margin-left: 100px;
    margin-top: 210px;
    margin-right: -40px;
}

.divmini2 {
    margin-top: 50px;
    margin-right: -40px;
}

.divmini3 {
    margin-top: -80px;
}

a {
    text-decoration: none;
}

a:hover {
    font-size:105%;
    color:#339999
}


.a4:hover {
    color:#31b0cd;
}

.a3:hover {
    color:#045465;
}

.a2:hover {
    color:#23798c;
}


.logomini {
    margin-left: 99%;
    margin-top: 179px;
}


.o {
    float: left;
    margin-top: -40px;
    font-size: 390px;
    height: fit-content;
}

.nama {
    font-size: 200px;
}

.tekst2 {
    font-size: 35px;
}

.logomini3 {
    margin-left: 58.99%;
    margin-top: 112.5px;
}

.prioritetzdravlja {
    font-family: "Century Schoolbook";
    margin-top: -30px;
    margin-left: -50px;

}

.box {
    position: absolute;
    left: -140px;
    transform: rotate(150deg);
    z-index: -10;
    margin-bottom: 40px;
}


.box1thrive,
.box4thrive {
    transform: rotate(153deg);
    width: 140vw;
    height: 400px;
    bottom: 260px;
    background-color: #339999;
}

.box2thrive,
.box3thrive {
    z-index: -11;
    left: -220px;
    top: 270px;
    width: 120vw;
    height: 250px;
    bottom: 560px;
    background-color: #045465;
}

.box3thrive {
    transform: rotate(339deg);
    background-color: #339999;
    height: 360px;
    top: 300px;
}

.box4thrive {
    transform: rotate(336deg);
    background-color: #045465;
    height: 200px;
    z-index: -12;
    bottom: 290px;
}


/*@media */



@media only screen and (max-width: 768px) {

    html {
        overflow: visible;
    }

    main {
        margin: 0 auto;
    }


    .box1thrive {
        z-index: -11;
        left: -100px;
        top: 1px;
        width: 100vw;
        height: 50px;
        transform: rotate(339deg);
        background-color: #339999;

    }

    .box2thrive {
        z-index: -10;
        left: -100px;
        top: 0;
        width: 100vw;
        height: 30px;
        transform: rotate(339deg);
        background-color: #045465;

    }


    .box3thrive {
        z-index: -11;
        left: -100px;
        top: 1px;
        width: 100vw;
        height: 50px;
        transform: rotate(339deg);
        background-color: #045465;


    }

    .box4thrive {
        z-index: -10;
        left: -100px;
        top: 0;
        width: 100vw;
        height: 30px;
        transform: rotate(339deg);
        background-color: #339999;

    }


    body {
        overflow: visible;
    }

    nav {
        width: 100%;
        margin: 0;
        margin-bottom: 60px;
    }

    ul {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    li {
        font-size: 30px;
        padding: 10px;
        margin-bottom: 10px;
    }

    hr {
        margin: 10px auto;
        width: 80%;
    }

    .logothriveveliki {
        width: 400px;
        margin: auto;
        display: block;
        margin-bottom: 50px;
    }

    .div1 {
        margin: 0 auto;
        display: flex;
        flex-direction: column;

    }

    .divmini1 {
        margin: auto;
    }

    .divmini2 {
        margin: auto;
    }

    .divmini3 {
        margin: auto;
    }

    .prehrana1,
    .prehrana2,
    .prehrana3 {
        width: 300px;
        height: auto;
        margin: 40px 38.2969px 0px 40px;
    }

    .ha3 {
        font-size: 24px;
        margin-top: 20px;
        margin-bottom: 40px;
    }


    .o {
        font-size: 80px;
        margin-top: 40px;
    }

    .nama {
        float: none;
        font-size: 80px;
        height: fit-content;
        margin-top: 20px;
    }

    .tekst2 {
        font-size: 30px;
        text-align: justify;
        margin: 20px;
        margin-bottom:20px;
        width:fit-content;
    }

    

    .logomini3,
    .logomini {
        display: block;
        margin: 0 auto;

    }

    h2 {
        width: fit-content;
        font-size: 40px;
        margin: 0 auto;
    }

    h3 {
        font-size: 28px;
    }
}


