/* ==VARIABLES== */
:root {
    --loading-time: 10s;
    --quarter-loading-time: calc(var(--loading-time) / 4);
    --loading-icon-size: 20px;
}

body {
    background-color: rgb(188, 151, 161);
}

/* ==STYLE== */
html, body, .center-hv {
    height: 100%;
}

.center-hv {
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#welcome-ui {
    text-align: center;
    display: flex;
    align-items: center;

    color: white;
    font-size: 24px;
}


/* --load icon-- */
.loading-icon-square {
    width: var(--loading-icon-size);
    height: var(--loading-icon-size);
    margin-right: 0.5rem;
    align-self: end;

    background: #ffffff80;

    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.loading-icon-square > div {
   width: calc(var(--loading-icon-size) / 2);
   height: calc(var(--loading-icon-size) / 2);

   animation: loadIcon var(--quarter-loading-time) linear 1 forwards;
}

.loading-icon-square > div:nth-child(1) {
    animation-delay: calc(3 * var(--quarter-loading-time));
}

.loading-icon-square > div:nth-child(2) {
    animation-delay: 0s;
}

.loading-icon-square > div:nth-child(3) {
    animation-delay: calc(2 * var(--quarter-loading-time));
}

.loading-icon-square > div:nth-child(4) {
    animation-delay: var(--quarter-loading-time);
}

@keyframes loadIcon {
    0% { background: transparent; }
    100% { background: white; }
}

/* --scrolling text-- */
.text-container {
    overflow: hidden;
    white-space: nowrap;

    border-bottom: solid white 0.05rem;
}

#scrolling-text {
    display: inline-block;
    animation: scrollText var(--loading-time) linear 1; /* horizontaal scrollende text animatie */
}

@keyframes scrollText {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

#welcome-ui a {
    color: white;

    margin-right: 5ch;
    word-spacing: normal;
    text-decoration: none;
}

/* --audio controls-- */
.audio-controls {
    position: absolute;
    top: 30px;
    left: 30px;

    display: flex;
    align-items: center;
    gap: 10px;

    /* background-color: rgb(117, 115, 122); */
    /* background-color: black; */
    /* background-color: rgb(195, 154, 167); */
    background-color: #a4a5a4;
    padding: 5px;

    svg {
        width: 20px;
        height: 20px;
    }

    .volume-up {
        display: none;
    }

    .volume-mute {
        display: block;
    }
}

.audio-controls.playing .volume-up{
    display: block;
}

.audio-controls.playing .volume-mute{
    display: none;
}
