html,
body {
    overflow-x: hidden !important;
}

body {
    background-image: url(../img/background.webp);
    background-repeat: repeat-y;
    background-size: 50% auto;
    background-position: center;
    background-color: rgb(230, 210, 199) !important;
    font-family: "kari", sans-serif !important;
}

body.landing {
    background-image: url(../img/landing.webp);
    min-height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgb(230, 210, 199);
    animation: heartPound 1.5s infinite;
}

.img-large {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

body:not(.landing) {
    animation: scrollBackground 60s linear infinite;
}

#confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
}

h1 {
    font-family: "primot", sans-serif !important;
}

h1,
p.h4,
p.h1 {
    text-shadow: 0px 0px 5px white;
}

.active {
    color: var(--secondary) !important;
}

.landing .container-fluid {
    height: 100vh !important;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.image-container {
    position: relative;
    display: inline-block;
    max-height: 500px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
}

.video-container iframe,
.video-container img,
.image-container .overlay,
.border-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container img {
    cursor: pointer;
    -webkit-user-drag: none;
    object-fit: cover;
}

.video-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    cursor: pointer;
    text-shadow: 0px 0px 5px grey;
}

.container {
    max-width: 65% !important;
    flex: 1;
}

.container.d-flex {
    max-width: 90% !important;
}

.image-container img {
    max-height: 500px;
}

.image-container .overlay {
    bottom: 0;
    right: 0;
    opacity: 0;
    transition: .5s ease;
}

.overlay .text {
    color: white;
    font-size: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 0px 0px 10px var(--secondary);
}

.text-box,
.border-container {
    border-image-slice: 12.5% 14.5% 13.5% 14%;
    border-image-width: 40px;
    border-image-repeat: stretch;
    border-image-source: url(../img/border.svg);
    border-style: solid;
}

.text-box {
    background-color: rgba(255, 255, 255, 0.7);
    border-image-outset: 25px;
    padding: 25px;
}

.border-container {
    border-image-outset: 25px 2px 21px 0;
    pointer-events: none;
    z-index: 1;
}

.showreel .video-container iframe {
    z-index: 0;
}

.dropdown-menu {
    margin-top: -10px !important;
    min-width: 8rem !important;
}

.hover-img {
    transition: transform 0.5s;
}

.photos-img {
    margin: 10px;
    object-fit: cover;
    background-image: url("https://dummyimage.com/300x300/eee/aaa");
}

footer {
    text-shadow: 0px 0px 4px rgba(255, 255, 255, 0.7);
    bottom: 0;
}

@media (max-width: 990px) {
    body:not(.landing) {
        background-size: 100% auto;
    }

    body.landing {
        background-size: cover;
        animation: none;
    }

    .navbar-brand img {
        height: 75px;
    }

    .navbar-collapse {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100% !important;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 90;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .image-container .hover-img {
        filter: brightness(1.1) saturate(1.2);
    }

    .image-container .overlay {
        opacity: 1;
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        font-size: 2rem;
        color: #fff !important;
        padding: 1rem;
    }

    .navbar-toggler {
        border: none;
        background: transparent !important;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 100;
        position: absolute;
        right: 2.5%;
    }

    .navbar-toggler[aria-expanded="true"] .fa-bars,
    .fa-times {
        display: none !important;
    }

    .navbar-toggler[aria-expanded="true"] .fa-times {
        display: block !important;
    }

    .fa-times {
        color: #fff;
    }

    .fa-bars {
        color: #bc412b !important;
    }

    ul.ml-auto {
        margin-left: auto;
        margin-right: auto;
    }

    .container {
        max-width: 90% !important;
    }
}

@media (max-width: 715px) {
    .photos-img {
        margin: 5px;
        height: 150px !important;
        width: 150px !important;
        background-image: url("https://dummyimage.com/150x150/eee/aaa");
    }
}

@media (min-width: 990px) {
    .navbar {
        margin: 0 5%;
    }

    .navbar-collapse {
        position: absolute;
        right: 0;
    }

    .navbar-brand img {
        margin-top: 15px;
    }

    .image-container:hover .overlay {
        opacity: 1;
    }

    .image-container:hover .hover-img {
        transform: scale(1.1);
        filter: blur(3px) brightness(1.1) saturate(1.2);
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@keyframes scrollBackground {
    0% {
        background-position: center 0;
    }

    100% {
        background-position: center -100vh;
    }
}

@keyframes heartPound {

    0%,
    35%,
    65%,
    100% {
        background-size: auto 100vh;
    }

    20%,
    50% {
        background-size: auto 103vh;
    }
}