body {
    margin: 0;
    padding: 0;
    font-family: 'Geist Mono', monospace;
    background-image: url('../img/lampy.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;

}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;

}

.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}



header {
    background: transparent;
    justify-content: center;
    align-items: center;
    margin-left: -200px;

}

nav {
    margin-left: 17% !important;

    letter-spacing: 0.1em;
}


.dropdown-menu {
    background-color: #222222;

    position: fixed;

    top: 100%;

    left: 0;

    z-index: 1050;

    background-color: #333;

    min-width: 15px;

    padding: 10px 0;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

}

.dropdown-item:hover {
    background-color: #00000007;
}


.dropdown-item {
    color: white;

}


.nav-item.dropdown {
    position: relative;

}

.dropdown-menu.show {
    display: block;

}

.sticky-top {
    height: 51vh;
}


.container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

.row {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1220px;
    margin: 0 auto;

}


.project-cover {
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 11px;
    flex: 1 1 30%;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    outline: 1px solid #ffffff36;
}

.cover-image {
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cover__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: filter 0.5s;
}

.project-cover:hover .cover__img {
    filter: blur(5px);
}

.details-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
    width: 700px;
}

.project-cover:hover .details-wrap {
    opacity: 1;
    transform: translateY(0);
}

.title {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.date {
    font-size: 1.2rem;
}

img.blur {
    filter: blur(5px);
}



@media (max-width: 768px) {
    body {
        background-size: contain;
        background-position: right;
        height: auto;
        background-size: cover;
    }

    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 300%;
        background-color: rgba(0, 0, 0, 0.404);
        z-index: -1;
    }

    .col-md-4 {
        height: auto !important;
        overflow: visible !important;
    }

    .panel {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin: 0 auto;
        width: 100%;
    }

    .project-cover {
        width: 100%;
        margin-right: 110px;
        display: block;
        box-sizing: border-box;
    }

    .cover-image img {
        width: 100%;
        height: 220px;
    }


    .title {
        font-size: 1.2rem;
    }

    .date {
        font-size: 1rem;
    }

    nav {
        margin-left: 0 !important;
    }

    nav.navbar {
        margin: 0px auto 0 auto !important;
        /* center */
        padding: 0;
    }

    .navbar-nav {
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-right: 5%;
        margin-bottom: 0 !important;
    }

    .nav-item {
        font-size: 0.8rem;
        /* smaller text */
        padding: 0 6px;
        margin: 0;
    }

    .sticky-top {
        height: auto !important;
        min-height: unset !important;
    }

    .dropdown-menu {
        position: absolute !important;
        max-height: calc(100vh - 120px);
        /* full usable screen */
        overflow-y: auto;
    }

    .dropleft .dropdown-menu {
        right: auto !important;
        left: auto !important;
    }

    .dropdown-item {
        font-size: 0.75rem;
    }

    .navbar .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 4000;
    }

    .nav-item.dropleft {
        position: relative;
    }

    .rottimg {
        padding-top: 40px;
        padding-left: 65px;
        height: 6rem;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    header {
        margin-left: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

}




@media (max-width: 480px) {
    .project-cover {
        flex: 1 1 100%;
        height: 300px;
    }

    .cover-image {
        height: 50%;
    }

    .title {
        font-size: 1rem;
    }

    .date {
        font-size: 0.8rem;
    }
}



#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 20px;
    font-size: 18px;
}

#backToTopBtn:hover {
    background-color: #000000;
}

.rott {
    font-size: small;
    color: rgba(255, 255, 255, 0.342);
    position: fixed;
    margin-top: 155px;
    margin-left: 145px;
}

.rottimg {
    height: 8rem;
    /* matches h1 visually */
    width: auto;
    display: block;
    margin-left: 130px;

}

.mark {
    height: 5rem;
    /* matches h1 visually */
    width: auto;
    display: block;
    position: fixed;
    margin-left: 1700px;
    margin-top: 50px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    color: rgba(255, 255, 255, 0.13);
    text-align: left;
    padding: 10px;

}


@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 100px;
    }

    .nav-item {
        margin-left: 10px;
        padding-left: 10px;
        width: auto;
        text-align: center;
    }



    .navbar-toggler {
        display: block;
    }

    .rott {
        font-size: small;
        color: rgba(255, 255, 255, 0.068);
        position: fixed;
        margin-top: 70px;
        margin-left: 275px;
    }

    .konec {
        font-size: 0.5rem !important;
        margin: 0 !important;
    }

}

#intro-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* Logo */
.intro-logo {
    width: 180px;
    /* adjust size */
    max-width: 70%;
}

/* Fade-out state */
#intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}