html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    background: #000;
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none;
}

#background {
    position: fixed;
    inset: 0;

    background-size: cover;
    background-position: center;

    filter: blur(25px);
    opacity: .25;
    transform: scale(1.1);
}

#overlay {
    position: relative;
    z-index: 10;

    width: min(100vw, 177.7778vh);
    height: 100%;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 2vh 2vw;

    background: rgba(0, 0, 0, .55);
}

.branding {
    font-size: clamp(24px, 3vh, 58px);
    font-weight: bold;
}

#clock {
    font-size: clamp(24px, 3vh, 58px);
}

main {
    width: min(100vw, 150vh);
    min-height: calc(100vh - 8vh);
    max-height: calc(100vh - 8vh);
    height: calc(100% - 8vh);

    margin: 0 auto;

    display: flex;

    padding: 2.5vh 2vw;
    gap: 2vw;
}

.image-panel {
    width: 43%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#event-image {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
}

#event-qr-container {
    margin-top: auto;
    margin-bottom: 1.5vh;
    padding-top: 1.5vh;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#event-status {
    margin-bottom: 1.2vh;

    font-size: clamp(18px, 2.2vh, 42px);
    font-weight: bold;

    text-transform: uppercase;
    letter-spacing: .05em;
}

#event-qr {
    padding: clamp(5px, .5vh, 10px);

    background: #fff;
    border-radius: clamp(4px, .4vw, 8px);
}

#event-qr-label {
    margin-top: .6vh;

    font-size: clamp(14px, 1.5vh, 28px);
    font-weight: bold;

    text-align: center;
}

.content-panel {
    width: 57%;
    min-width: 0;
}

.group {
    font-size: clamp(18px, 2vh, 38px);
    color: #d4d4d4;
}

#event-title {
    font-size: clamp(30px, 4.5vh, 72px);
    line-height: 1.1;

    margin: 1vh 0 2vh;
}

.details {
    font-size: clamp(18px, 2.1vh, 40px);

    margin-bottom: 2vh;
}

.details div {
    margin-bottom: .8vh;
}

#event-description {
    font-size: clamp(18px, 2.4vh, 46px);
    line-height: 1.4;

    max-height: 38vh;
    overflow: hidden;
}

/*
 * Hidden from the display because the QR code provides
 * the user-facing way to access the event page.
 * Kept in the HTML for debugging.
 */
#event-link {
    display: none;
}

#loading {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    font-size: clamp(24px, 2.5vh, 48px);
}
#event-date {
    font-size: clamp(24px, 2.8vh, 54px);
    line-height: 1.1;
    font-weight: bold;

    margin-bottom: 1.2vh;

    background: white;
    color: black;

    padding: .6vh 1rem;
}
#slide-progress {
    position: fixed;
    left: 0;
    bottom: 0;

    width: 100%;
    height: .5vh;

    background: rgba(255, 255, 255, .2);

    z-index: 20;
}

#slide-progress-bar {
    width: 0;
    height: 100%;

    background: #fff;
}
