body {
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
}

.navbar-margin {
    padding-top: 100px;
}

@media print {
    body .no-print {
        display: none;
    }
    .navbar-margin {
        padding-top: 0;
    }
}

/* navbar */

nav {
    opacity: 30%;
    transition-duration: 800ms;
}

div:has(nav) {
    width: 100%;
/ / on small screen navbar has to be 100 %
}

@media screen and (min-width: 770px) {
    div:has(nav) {
        width: auto;
    }

    nav {
        border-radius: .25rem !important;
    }
}

.navbar.nav-hover {
    opacity: 100%;
}

nav .nav-button {
    border-radius: 5px;
    border: 1px solid black;
}

nav .nav-button:focus {
    box-shadow: 0 0 0 0.15rem rgb(49, 49, 49);
}

.nav-icon {
    width: 40px;
    height: 35px;
    position: relative;
}

.nav-icon span {
    border-top: 1px solid white;
    position: absolute;
    left: 0;
    width: 100%;
    transition-duration: 1s;
    transform-origin: 50% 50%;
}

.nav-icon span:first-child {
    top: 25%;
}

.nav-icon span:nth-child(2) {
    top: 50%;
}

.nav-icon span:last-child {
    top: 75%;
}

nav svg g {
    fill: white;
}

.nav-link {
    white-space: nowrap;
}

/* carousel */

#carouselExampleRide .carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.carousel-item .description {
    z-index: 100;
    background-color: rgb(0, 0, 0, 0.6);
    padding: 10px;
    color: white;
    border-radius: 5px;
    position: absolute;
    bottom: 10%;
    left: -1000px;
    max-width: 70vw;
}

.carousel-item.active .description {
    transform: translateX(1010px);
    transition-timing-function: ease-out;
    transition-duration: 1s;
}

html[dir='rtl'] .carousel-item .description {
    right: -1000px;
    left: auto;
}

html[dir='rtl'] .carousel-item.active .description {
    transform: translateX(-1010px);
}

/*Gallery*/
.gallery-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px;
    transition-duration: 200ms;
}

.wrapper {
    position: relative;
    border-radius: 5px;
    border: 1px solid black;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.gallery .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: black;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    z-index: 1;
}

.gallery-cards .wrapper * {
    transition-duration: 500ms;
}

.gallery .img-overlay:hover {
    opacity: 70%;
}

.gallery .img-overlay:hover + img {
    scale: 1.1;
}

/* footer */
footer a {
    margin: 10px;
}

footer svg {
    fill: white;
    height: 20px;
    width: 20px
}

.socialMediaImage {
    height: 25px;
    fill: white;
}


/*language selector*/
.lang-selector {
    width: 80px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 120;
    position: fixed;
    bottom: 5%;
    right: 5%;
    color: white;
    background-color: rgba(0, 0, 0, 30%);
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
}

html[dir='rtl'] .lang-selector {
    left: 5%;
    right: auto;
}

.lang-selector .menu {
    display: none;
}

.lang-selector:hover .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lang-selector:hover {
    background-color: rgba(0, 0, 0, 100%);
}

.lang-selector:hover .menu-label {
    display: none;
}

.lang-selector a {
    padding: 5px 10px;
}

.lang-selector .menu-label {
    font-family: Serif;
    font-size: 25px;
    font-weight: 550;
}

/* project detail */
.project-detail {
    padding: 100px 0;
}

.project-detail .pictures img {
    cursor: pointer;
}

.project-detail .detail-carousel {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 110;
}

.project-detail .detail-carousel img {
    object-fit: contain;
    max-height: 80vh;
    width: 100%;
}

.tags a {
    color: red;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color: black;
    border-radius: 5px;
}


@media screen and (min-width: 450px) {
    .introduction {
        padding: 0 0;
        height: 70vh;
    }

    .carousel-item.active .description {
        transform: translateX(1100px);
    }

    html[dir='rtl'] .carousel-item.active .description {
        transform: translateX(-1100px);
    }

    .project-detail #carouselExampleFade {
        width: 100%;
    }
}