
#color-selection, #text-selection {
    height: 100%;
    width: 100%;
    display: flex;
}

#color-selection>div {
    width: 100%;
    height: 100%;
}

#text-selection {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

#text-selection>div {
    display: flex;
    flex-direction: column;
    font-family: var(--font-secondary);
    gap: 8px;
    align-items: center;
    border: solid 1px var(--color-text-primary);
    background-color: var(--color-background);
    padding: 8px;
    border-radius: 8px;
}

#image-selection {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

#image-selection>div {
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    background-size: cover;
    background-position: center;
}

/* Live overlay */


#overlay {
    position: fixed;
    top: 0;
    left: 0;

    display: none;
    width: 100%;
    height: 100%;

    font-family: var(--font-big);
    font-size: 3em;
    text-align: center;

    z-index: 10;
}

#overlay img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    background-color: var(--color-background);
}

#overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-primary);
}

#video-overlay {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: var(--color-background);
    
    z-index: 10;
}

.video-title {
    position: fixed;
    top: 24px;
    font-size: 30px;
}

#video-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

#video-overlay video {
    width: 100%;
    height: 100%;
}

@keyframes flashing {
    0%, 25% {
        background-color: auto;
    }
    25%, 75% {
        background-color: var(--color-background);
    }
    100% {
        background-color: auto;
    }
}

#overlay.flashing {
    animation: flashing 300ms step-end infinite;
}

#live-info-message {
    padding: 8px;
    border-radius: 8px;
    background-color: var(--color-background);
    border: solid 2px var(--color-text-primary);
    color: var(--color-text-primary);
}

.txt.secondary {
    color: var(--color-text-secondary);
}

#live-upload-button {
    --btn-color: var(--color-secondary-4);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    color: var(--btn-color);
    background-color: var(--color-background);
    border: solid 2px var(--btn-color);
    border-radius: 8px;

    margin-top: 16px;
}

#live-upload-button>svg {
    stroke: var(--btn-color) !important;
}

#live-questions-input {
    width: 100%;
}

#live-questions-send {
    margin-top: 16px;
}

.btn-live-close {
    position: fixed;
    z-index: 10;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 4px 8px;
    font-size: var(--fontSize-small);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    border: solid 2px var(--color-text-primary);
    gap: 4px;
}

.btn-live-close.hidden {
    display: none;
}