* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Hitachi Sans', sans-serif;
    color: #ffffff;
    overflow: hidden;
    background-color: #320607;
}

.container {
    --container-side-padding: 3.5vh;
    --bg-tile-width: calc(100vh * 16 / 9);
    --bg-tile-overlap-scale: 1.0006;
    --bg-tile-overlap-scale-flip: -1.0006;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    background-color: #320607;
    padding: 3.375vh var(--container-side-padding) 2.625vh;
}

@supports (height: 100dvh) {
    .container {
        width: 100vw;
        height: 100dvh;
        --bg-tile-width: calc(100dvh * 16 / 9);
    }
}

.container > :not(.background-viewport) {
    position: relative;
    z-index: 1;
}

.background-viewport {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.background-track {
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
    will-change: transform;
}

.background-tile {
    flex: 0 0 var(--bg-tile-width);
    width: var(--bg-tile-width);
    height: 100%;
    background-image: url('/agenda/styling-bg-tile.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: scaleX(var(--bg-tile-overlap-scale));
    transform-origin: center;
}

.background-tile.is-flipped {
    transform: scaleX(var(--bg-tile-overlap-scale-flip));
}

.header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25vh;
}

.header-title {
    line-height: 1.04;
}

.header-title p {
    font-size: 2.4vh;
}

.header-title strong {
    font-family: 'Hitachi Sans', sans-serif;
    font-weight: 700;
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.header-logo img {
    display: block;
    height: 2.4vh;
    width: auto;
    max-width: 18vh;
}

.page-viewport {
    flex: 1;
    --edge-mask-size: var(--container-side-padding);
    width: calc(100% + (2 * var(--edge-mask-size)));
    margin-left: calc(-1 * var(--edge-mask-size));
    overflow: hidden;
    position: relative;
    margin-top: 8vh;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--edge-mask-size),
        #000 calc(100% - var(--edge-mask-size)),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--edge-mask-size),
        #000 calc(100% - var(--edge-mask-size)),
        transparent 100%
    );
}

.page-track {
    height: 100%;
    width: 100%;
    display: flex;
    padding: 0 var(--edge-mask-size);
    gap: 5.4vh;
    transition: transform 1s ease-in-out;
    will-change: transform;
}

.page {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.page h1 {
    font-size: 4vh;
    line-height: 1;
    font-family: 'Hitachi Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 3.375vh;
}

.agenda-list {
    width: 100%;
}

.agenda-item {
    border-bottom: 0.1875vh solid rgba(255, 255, 255, 0.78);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.65vh;
    padding: 1.85vh 0 1.95vh;
    align-items: start;
}

.agenda-copy {
    min-width: 0;
}

.agenda-time {
    margin-bottom: 0.35vh;
    font-size: 1.05vh;
    line-height: 1.1;
    font-family: 'Hitachi Sans', sans-serif;
    font-weight: 300;
    letter-spacing: 0.03em;
    opacity: 0.88;
}

.agenda-title {
    font-size: 1.92vh;
    line-height: 1.05;
    font-family: 'Hitachi Sans', sans-serif;
    font-weight: 700;
}

.agenda-time + .agenda-title {
    margin-top: 0.5vh;
}

.agenda-subtitle {
    margin-top: 0.42vh;
    font-size: 1.58vh;
    line-height: 1.06;
    font-family: 'Hitachi Sans', sans-serif;
    opacity: 0.96;
}

.agenda-location {
    margin-top: 0.22vh;
    font-size: 1.68vh;
    line-height: 1.05;
    white-space: nowrap;
    font-family: 'Hitachi Sans', sans-serif;
    font-weight: 700;
}

.agenda-item:has(.agenda-time) .agenda-location {
    margin-top: 2.1vh;
}

.wifi-page {
    width: 100%;
}

.announcement-page {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.announcement-wrap {
    margin-top: 1.8vh;
    width: 100%;
    padding: 0;
    min-height: 30vh;
    display: flex;
    align-items: flex-start;
}

.announcement-text {
    font-family: 'Hitachi Sans', sans-serif;
    font-size: 3.1vh;
    font-weight: 700;
    line-height: 1.18;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.wifi-label {
    margin-top: 1.75vh;
    font-size: 2.5vh;
    line-height: 1.14;
    font-family: 'Hitachi Sans', sans-serif;
    font-weight: 700;
}

.wifi-value {
    margin-top: 0.625vh;
    font-size: 3.3vh;
    line-height: 1.1;
    font-family: 'Hitachi Sans', sans-serif;
    overflow-wrap: anywhere;
}

.floorplan-page {
    display: flex;
    flex-direction: column;
}

.floorplan-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding-top: 0;
}

#floorplanImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 20%;
    display: block;
}

.container > .demo-badge {
    position: absolute;
    left: auto;
    right: var(--container-side-padding);
    bottom: 2.2vh;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    max-width: max-content;
    padding: 0.62vh 1.25vh 0.7vh;
    border: none;
    border-radius: 0;
    background: #ffffff;
    color: #cc0000;
    font-family: 'Hitachi Sans', sans-serif;
    font-size: clamp(12px, 1.45vh, 16px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 0.4vh 1.5vh rgba(0, 0, 0, 0.3);
}
