@font-face {
    font-family: Techfont;
    src: url('https://andrazjese.si/font/Techfont.ttf');
}

html {
    font-size: 18px;
}

body {
    font-family: 'Techfont';
    margin: 0px;
    padding: 0px;
    background-color: #ffffff;
}

::selection {
    color: #fff;
    background: #1a4645;
}

.header {
    height: 5rem;
    background-color: #1a4645;
}

.nav {
    position: relative;
    display: flex;
    height: inherit;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.title {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    color: #ffffff;
    font-size: 1rem;
    margin-right: 1rem;
    height: 100%;
}

.title img {
    height: 90%;
}

.btns {
    display: flex;
    height: 100%;
}

.btns a {
    transition: background-color 0.5s linear, color 0.5s linear;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.5rem;
    padding: 0 1rem;
    font-family: Techfont;
    color: #ffffff;
    background-color: #1a4645;
}

.btns a:hover,
.burger-items a:hover {
    background-color: #ffffff;
    color: #1a4645;
}

.burger-menu {
    display: none;
    position: relative;
    height: 100%;
}

.burger-icon {
    transition: background-color 0.5s linear, color 0.5s linear;
    position: relative;
    padding: 0 1rem;
    font-family: Techfont;
    background: #1a4645;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    height: 100%;
}

.burger-icon:hover {
    background-color: #ffffff;
    color: #1a4645;
}

.burger-items {
    position: absolute;
    height: 100%;
    right: -2rem;
    z-index: 1;
}

.burger-items a {
    transition: background-color 0.5s linear, color 0.5s linear;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    font-size: 1.5rem;
    padding: 0 2rem;
    font-family: Techfont;
    color: #ffffff;
    background-color: #1a4645;
}

.bg {
    position: relative;
    height: calc(100vh - 5rem - 4rem);
}

.banner {
    display: flex;
    overflow: hidden;
}

.banner img {
    opacity: 0.25;
    height: calc(50vh - 2.5rem - 2rem);
}

.coding {
    position: absolute;
    bottom: 6rem;
    height: 8rem;
    width: 100%;
    background-color: #266867;
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1vw;
    opacity: 0.5;
}

.cdTekst {
    margin-left: 2vw;
}

.coding img {
    height: 225%;
    margin-right: 1vw;
    margin-bottom: 1rem;
}

.content {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    width: 80%;
    height: 90%;
    border: #1a4645 1px solid;
}

.content .glava {
    position: relative;
    height: 8rem;
    color: #1a4645;
    background-color: #266867cc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
}

.content .tekst {
    position: relative;
    color: #1a4645;
    height: 100%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 3rem;
}

.tekst .slika {
    position: relative;
    width: 40%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}


.tekst .slika img {
    width: 85%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 0.8rem #ffffff solid;
    outline: 0.35rem #1a4645 solid;
}

.tekst-container {
    width: 60%;
    font-size: 3rem;
}

.icons {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    font-size: 2rem;
}

.icons i {
    font-size: 5rem;
}

.icons>div {
    width: calc((95% - 1rem) /8);
    /* Calculate the width with a minimum gap of 2rem between items */
    margin: 0.5rem;
    /* Create a gap of 1rem on all sides of each item */
}

footer {
    background-color: #1a4645;
    height: 4rem;
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 4rem;
}

@media (max-width: 1920px) {

    html {
        font-size: 14px;
    }
}

@media (max-width: 1600px) {

    html {
        font-size: 10px;
    }
}

@media (max-width: 768px) {

    html {
        font-size: 8px;
    }

    .coding {
        font-size: 1.75rem;
        letter-spacing: 0.5vw;
    }

    .coding img {
        height: 200%;
    }

    .icons>div {
        width: calc((100% - 1rem) /5);
        /* Calculate the width with a minimum gap of 2rem between items */
        margin: 0.5rem;
        /* Create a gap of 1rem on all sides of each item */
    }

    footer {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .tekst-container {
        font-size: 2.5rem;
    }
}

@media (max-width: 300px) {

    html {
        font-size: 6px;
    }
}

@media (orientation: landscape) {


    @media (max-width: 1024px) {

        html {
            font-size: 8px;
        }
    }

    @media (max-height: 512px) {

        html {
            font-size: 6px;
        }
    }

    @media (max-height: 380px) {

        html {
            font-size: 5px;
        }
    }

    @media (max-height: 300px) {

        html {
            font-size: 4px;
        }
    }
}

@media (orientation: portrait) {

    .btns {
        display: none;
        /* Hide regular buttons */
    }

    .burger-menu {
        display: block;
        /* Show burger menu items */
    }

    .burger-items {
        display: none;
    }

    .content .tekst {
        flex-direction: column;
        justify-content: start;
    }

    .tekst .slika {
        width: auto;
        max-width: 90%;
        max-height: 50%;
        margin-bottom: 4rem;
    }

    .tekst .slika img {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .tekst-container {
        width: 95%;
        text-align: center;
    }
}

@media (max-width: 576px) {

    .content {
        width: 90%;
    }
}