@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: 6rem;
    color: #ffffff;
    background-color: #1a4645;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    font-size: 3rem;
}

.content .tekst {
    position: relative;
    color: #1a4645;
    height: 100%;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 4rem;
}

.content .tekst p {
    font-size: 1.25rem;
}
.content .tekst h5 {
    font-size: 1.5rem;
    margin: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    color: #ffffff;
    background-color: #266867;
    word-break: normal;
}

td {
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    word-break: normal;
}

tr:nth-child(2n + 1) td {
    background: #f1f5fa;
}

th, td {
    border: 1px solid #d5d8df;
}

.cky-banner-element {
    margin: 0.5rem 0;
    padding: 1rem;
    background-color: #266867;
    border-radius: 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s linear;
}

.cky-banner-element:hover {
    background-color: #1a4645;
}

a {
    color: #858585;
}

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%;
    }

    footer {
        font-size: 1rem;
    }
}

@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;
    }
}

@media (max-width: 576px) {

    .content {
        width: 90%;
    }
}