:root {
    --bs-body-bg: #000;
    --bs-body-color: #fff;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji";
    --bs-light-rgb: 24, 24, 24;
    --bs-secondary-color: #7a7a7a;
}

/* CONTAINER SIZING */
@media (min-width: 1600px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1520px;
    }
}
@media (min-width: 1800px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1720px;
    }
}
@media (min-width: 2000px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1920px;
    }
}
@media (min-width: 2200px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 2120px;
    }
}
@media (min-width: 2400px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 2320px;
    }
}
@media (min-width: 2600px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 2520px;
    }
}
@media (min-width: 2800px) {
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 2720px;
    }
}

/* BACKGROUND IMAGES */
body {
    position: relative;
    min-height: 100vh;
    padding: 2.5rem 0;
}

body:before,
body:after {
    content: "";
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    z-index: -1;
}

body:before {
    background-image: url("data:image/svg+xml,%3Csvg width='1920' height='384' viewBox='0 0 1920 384' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1920 0H0V384H0.666667L16 16L1920 0.133333V0Z' fill='%2300AA5A'/%3E%3C/svg%3E%0A");
    background-position: top;
    top: 0;
}

body:after {
    background-image: url("data:image/svg+xml,%3Csvg width='1920' height='384' viewBox='0 0 1920 384' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 384H1920V0H1919.33L1904 368L0 383.867V384Z' fill='%23E00700'/%3E%3C/svg%3E%0A");
    background-position: bottom;
    bottom: 0;
    position: fixed;
}

main {
    height: calc(100vh - 5rem - 84px);
}

/* NAVBAR */
nav .logo {
    display: flex;
    align-items: center;
}

nav .time {
    font-size: 3.5rem;
    font-weight: bold;
}

/* LAYOUT */
.block {
    background-color: rgb(var(--bs-light-rgb));
    padding: 1rem;
    border-radius: 1rem;
}

img.large-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* LISTS */
ul {
    font-weight: bold;
}

ul li {
    border-bottom: 1px solid #232323;
    padding: 0.5rem 0 0.5rem 0.2rem;
}

ul li:last-child {
    border-bottom: none;
}

/* CALENDAR */
.calendar-item {
    border: 1px solid #232323;
    border-radius: 0.5rem;
    padding: 0.5rem;
    height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-item .top {
    display: flex;
    justify-content: space-between;
}

.calendar-item ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

/* CUSTOM UL WITH LOGOS */
ul.logo-list li.konkreto-groep {
    list-style-image: url(../img/narrowcasting/icons/konkreto-groep.svg);
}

ul.logo-list li.konkreto-dak-wand {
    list-style-image: url(../img/narrowcasting/icons/konkreto-dak-en-wand.svg);
}

ul.logo-list li.konkreto-montage {
    list-style-image: url(../img/narrowcasting/icons/konkreto-montage.svg);
}

ul.logo-list li.brikko {
    list-style-image: url(../img/narrowcasting/icons/brikko.svg);
}

/* YOUTUBE VIDEO */
iframe {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block; /* Ensure it behaves like a block element */
}

/* INSTAGRAM PHOTO'S */
.instagram-img {
    width: 100%;
    height: 300px;
    border-radius: 0.25rem;
}

/* LOADING INDICATOR */
.block:has(.loading-indicator) {
    position: relative;
}

.loading-indicator {
    position: relative;
}

.loading-indicator {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(var(--bs-light-rgb));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

svg .loading-indicator-svg-1 {
    stroke-dashoffset: 147.26181030273438px;
    stroke-dasharray: 147.26181030273438px;
    -webkit-transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715)
        0s;
    transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0s;
}

svg.active .loading-indicator-svg-1 {
    stroke-dashoffset: 0;
}

svg .loading-indicator-svg-2 {
    stroke-dashoffset: 147.32269287109375px;
    stroke-dasharray: 147.32269287109375px;
    -webkit-transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715)
        0.25s;
    transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.25s;
}

svg.active .loading-indicator-svg-2 {
    stroke-dashoffset: 0;
}

/* NEWS AND ANP BLOCK STYLING */
.block-anp {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    max-height: 100%;
}

.block-anp ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    overflow: hidden;
}

.block-anp ul li {
    margin: 0.2rem 0;
    padding: 0.5rem;
}

.block-news ul li {
    line-height: 1.5;
    padding: 0.5rem;
}

/* VIDEO PLAYER AND VISIBILITY */
.display-none {
    display: none !important;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: 0;
}

/* GPS WIDGET */
#mapFrame {
    height: 100%;
    width: 100%;
    border-radius: inherit;
}

/* MEDIA QUERIES */
@media only screen and (max-height: 1115px) {
    .block-news,
    .block-small-photo {
        height: 330px !important;
    }

    .block-weather,
    .block-traffic {
        height: 330px !important;
    }

    .block-anp,
    .block-big-photo {
        height: 330px !important;
    }

    .block-anp ul li {
        margin: 0.1rem 0;
    }

    .block-map {
        height: 510px !important;
    }
}

.block-news {
    overflow: hidden;
}

@media only screen and (min-height: 1116px) and (max-height: 1150px) {
    .block-news,
    .block-small-photo {
        height: 330px !important;
    }

    .block-weather,
    .block-traffic {
        height: 310px !important;
    }

    .block-anp,
    .block-big-photo {
        height: 400px !important;
    }

    .block-anp ul li {
        margin: 0.1rem 0;
    }

    .block-map {
        height: 600px !important;
    }
}

@media only screen and (min-height: 1151px) and (max-height: 1220px) {
    .block-news,
    .block-small-photo {
        height: 330px !important;
    }

    .block-weather,
    .block-traffic {
        height: 350px !important;
    }

    .block-anp,
    .block-big-photo {
        height: 440px !important;
    }

    .block-anp ul li {
        margin: 0.1rem 0;
    }

    .block-map {
        height: 600px !important;
    }
}

@media only screen and (min-height: 1221px) {
    .block-news,
    .block-small-photo {
        height: 330px !important;
    }

    .block-weather,
    .block-traffic {
        height: 350px !important;
    }

    .block-anp,
    .block-big-photo {
        height: 500px !important;
    }

    .block-map {
        height: 660px !important;
    }
}

body {
    position: relative;
}

body.statement-card-invisible .statement-card-overlay,
body.statement-card-visible .statement-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
}

body.statement-card-invisible .statement-card-overlay {
    opacity: 0;
}

body.statement-card-visible .statement-card-overlay {
    opacity: 1;
}

.statement-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2.5deg);
    background-color: #fffeff;
    color: #000;
    padding: 0.75rem 3rem;
    font-size: 3.5rem;
    text-wrap: nowrap;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0;
    animation: slamOnTable 0.6s cubic-bezier(0.3, 1.4, 0.4, 1) forwards;
    z-index: 1000;
}

.statement-card.statement-card-fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes slamOnTable {
    0% {
        transform: translate(-50%, -50%) rotate(-20deg) scale(2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) rotate(-2.5deg) scale(1);
        opacity: 1;
    }
}
