@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: #f58800cc;
    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 5rem;
}

.titleProjekti {
    position: relative;
    color: #1a4645;
    background-color: #f58800cc;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    font-size: 2rem;
}

.opisProjekti {
    position: relative;
    color: #1a4645;
    padding: 1rem;
    font-size: 1.5rem;
    line-height: 2.5rem;
    text-align: center;
}

.opisProjekti a {
    color: #f58800;
    position: relative;
    font-size: 1.5rem;
    transition: font-size 0.2s ease;
}

.slikeProjekti {
    position: relative;
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: auto;
}

.slikeProjekti img {
    position: relative;
    max-width: 22%;
    max-height: 30vh;
    padding: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease-in;
    content-visibility: auto;
}

.slikeProjekti img:hover {
    background-color: #f58800cc;
}

.overlay {
    position: relative;
    max-width: 22%;
    max-height: 30vh;
    padding: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease-in;
    content-visibility: auto;
}

.overlay:hover {
    background-color: #f58800;
}

.overlayTxt {
    position: absolute;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffffbf;
}

.overlayTxtContent {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a4645;
    font-size: 4rem;
    font-weight: 900;
}

.overlay img {
    position: relative;
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    padding: 0;
    margin-bottom: 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in;
    content-visibility: visible;
}

.two {
    right: -65%;
}

.three {
    right: -75%;
}

.four {
    right: 105%;
}

.five {
    right: 95%;
}

.okno {
    position: absolute;
    height: 80%;
    width: 70%;
    border-style: ridge;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.okno p {
    font-size: 2rem;
    padding: 1rem 2rem;
    margin: 0;
}

#left {
    left: 8%;
    position: absolute;
    font-size: 4rem;
    cursor: pointer;
    z-index: 10;
    transition: font-size 0.2s ease-out;
}

#right {
    right: 8%;
    position: absolute;
    font-size: 4rem;
    cursor: pointer;
    z-index: 10;
    transition: font-size 0.2s ease-out;
}

#left:hover,
#right:hover {
    font-size: 4.5rem;
}

@keyframes currToNext {

    0% {
        right: 15%
    }

    100% {
        z-index: 1;
        right: -65%;
    }
}

@keyframes prevToCurr {

    0% {
        z-index: 1;
        right: 95%
    }

    100% {
        right: 15%;
    }
}

@keyframes prevToOther {

    0% {
        right: 95%
    }

    100% {
        right: 105%;
    }
}

@keyframes nextToOther {

    0% {
        right: -65%;

    }

    100% {
        right: -75%;
    }
}

@keyframes otherRight {

    0% {
        right: -75%;
        opacity: 0
    }

    100% {
        opacity: 0;
        right: 105%;
    }
}

button {
    color: black;
    z-index: 1;
}

/* Define the animation class */
.currToNextClass {
    animation: currToNext 0.3s linear forwards;
}

.nextToCurrClass {
    animation: currToNext 0.3s linear reverse forwards;
}



.prevToCurrClass {
    animation: prevToCurr 0.3s linear forwards;
}

.currToPrevClass {
    animation: prevToCurr 0.3s linear reverse forwards;
}

.prevToOther {
    animation: prevToOther 0.3s linear forwards;
}

.nextToOther {
    animation: nextToOther 0.3s linear forwards;
}

.otherToPrev {
    animation: prevToOther 0.3s linear reverse forwards;
}

.otherToNext {
    animation: nextToOther 0.3s linear reverse forwards;
}

.otherRight {
    animation: otherRight 0.3s linear forwards;
}

.otherLeft {
    animation: otherRight 0.3s linear reverse forwards;
}

/* Add some styling for the modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.modal button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: font-size 0.2s ease-out;
}

.modal button:hover {
    font-size: 4rem;
}


.modal button.left {
    left: 1vw;
}

.modal button.right {
    right: 1vw;
}

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;
    }

    .opisProjekti {
        font-size: 1.75rem;
        line-height: 2.75rem;
    }

    .opisProjekti a {
        font-size: 2rem;
    }
}

@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;
    }

    .slikeProjekti img {
        max-width: 44%;
    }

    .overlay {
        max-width: 44%;
    }

    .overlay img {
        max-width: 100%;
    }

    .okno {
        height: 90%;
    }
}

@media (max-width: 576px) {

    .slikeProjekti img {
        max-width: 88%;
    }

    .overlay {
        max-width: 88%;
    }

    .overlay img {
        max-width: 100%;
    }

    .content {
        width: 90%;
    }

    .modal img {
        max-width: 80%;
        max-height: 80%;
    }
}