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;

    overflow-x: hidden;

}

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

}

header {
    background: transparent;
    justify-content: center;
    align-items: center;
    margin-right: 190px;
}

.rottimg {
    height: 8rem;
    width: auto;
    margin-left: 130px;
    margin-top: 105px;
}


.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: #555;
}


.dropdown-item {
    color: white;
}

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

.dropdown-menu.show {
    display: block;
}

.sticky-top {
    height: 50vh;
}

.container {
    max-width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
}

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

.row {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1120px;
}

.konec {
    font-size: medium;
    color: #505050;
}

h2 {
    color: #505050;
    font-size: large;
}

.contact {
    background-color: #000000e5;
    padding: 10px;
}

.about {
    background-color: #000000e5;
    padding: 10px;
}

p {
    font-style: italic;
    font-size: x-large;
    font-weight: lighter;
    color: #ffffff;

}

.image {
    max-width: 200px;
    height: auto;
    position: fixed;
    /* or absolute, depending on effect */
    top: 45%;
    /* center vertically */
    right: 40%;
    /* stick to right edge */
    transform: translateY(-50%);
    /* vertical centering */
    z-index: 10;
    /* make sure it’s above other content */
}

.profil {
    max-width: 20%;
    height: auto;
    position: fixed;
    /* or absolute, depending on effect */
    top: 50%;
    /* center vertically */
    right: 19%;
    /* stick to right edge */
    transform: translateY(-50%);
    /* vertical centering */
    z-index: 10;
    /* make sure it’s above other content */
    padding: 5px;
    width: 100%;
}


footer {
    color: #505050;
}

@media (max-width: 768px) {
    body {
        display: block !important;
    }

    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;
    }


    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;
        margin: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

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

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

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

    .dropleft .dropdown-menu {

        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;
    }

    .col-1 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .col-1,
    .col-md-7 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }


    nav.navbar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .rottimg {
        display: block;
        width: 60%;
        max-width: 360px;
        height: auto;
        margin: 50px auto 0px auto;
    }

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


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


    .navbar-toggler {
        display: block;
    }

    .contact {
        margin-top: 60px;
        padding: 15px;
    }

    .contact p {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }

    .profil {
        position: static !important;
        max-width: 320px;
        width: 40%;
        height: auto;
        margin: 0 auto;
        display: block;

        margin: 0 auto 20px auto;
        /* space BELOW image */
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: auto !important;
    }

    .about {
        padding: 15px;
    }

    .about p {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }

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