/* chat */
#chat {
    position: relative;
    width: 400px;
    height: 600px;
    margin: 8px;
    border: 1px solid #000;
}

.storytile-sites-public-chat-messages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 575px;
    overflow-x: hidden;
    overflow-y: auto;
}

.storytile-sites-public-chat-message {
    position: relative;
    padding: 0.5em;
}

.storytile-sites-public-chat-message-user {
    position: relative;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.storytile-sites-public-chat-message-text {
    position: relative;
}

.storytile-sites-public-chat-message-time {
    position: absolute;
    right: 0.5em;
    top: 0.5em;
    opacity: 0.5;
}

.storytile-sites-public-chat-inputs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
}

.storytile-sites-public-chat-input-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 275px;
    height: 25px;
    box-sizing: border-box;
}

.storytile-sites-public-chat-input-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 25px;
}

.storytile-sites-emoji-menu {
    position: absolute;
    top: 0;
    left: 275px;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    overflow: hidden;
    background: transparent;
}

.storytile-sites-emoji-menu[data-open] {
    overflow: visible;
}

.storytile-sites-emoji-menu-list {
    position: absolute;
    bottom: 25px;
    right: 0;
    background: #fff;
    width: 200px;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
}

.storytile-sites-emoji-menu-list>span {
    position: relative;
    padding: 0.25em;
    background: transparent;
}

.storytile-sites-emoji-proposal {
    position: absolute;
    bottom: 25px;
    left: 0;
    box-sizing: border-box;
    background-color: #e0e0e0;
    border: 1px solid #ddd;
    padding: 0.5em;
}

.storytile-sites-emoji-proposal>span {
    position: relative;
    padding: 0.25em;
    background: transparent;
}

.storytile-sites-emoji-proposal>span.storytile-sites-emoji-proposal-selected {
    background: #0F9FDF;
}

.storytile-sites-public-chat-login-required {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    text-align: center;
    background-color: #ffe18e;
}

.storytile-sites-public-chat-login-required-text {
    position: relative;
    display: inline-block;
    line-height: 25px;
}


/* q&a */


/* agenda */
.storytile-sites-agenda-pixel-per-minute {
    /*
        The width of this element determines the number of pixels used for each minute
        in the agenda's timeline. Default is 6px per minute
    */
    width: 2px;
}

.storytile-sites-agenda-small {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
}

.storytile-sites-agenda-small * {
    box-sizing: border-box;
    user-select: none;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day {
    position: relative;
    display: inline-flex;
    flex-flow: column nowrap;
    color: var(--main-color-dark);
    width: 100%;
    text-align: left;
    --storytile-sites-agenda-time-progress: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day:not([data-visible]) {
    display: none;
}

.storytile-sites-agenda-small .storytile-sites-agenda-stage,
.storytile-sites-agenda-small .storytile-sites-agenda-day-select {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 12rem 1fr 2rem;
    grid-template-rows: minmax(2rem, auto);
    grid-template-areas: "stage slots arrow";
    column-gap: 1rem;
    align-items: center;
    justify-items: stretch;
    --storytile-sites-agenda-stage-height: 3rem;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector-box {
    position: relative;
    display: flex;
    grid-area: slots;
    flex-flow: row wrap;
    margin-bottom: 0.5rem;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    line-height: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--shadow-color-1);
    margin-right: 1rem;
    cursor: pointer;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector:hover {
    background-color: var(--main-color-light);
    color: var(--bg-color);
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector:first-child {
    border-bottom-left-radius: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector:last-child {
    border-top-right-radius: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector-selected {
    background-color: var(--main-color-dark);
    color: var(--bg-color);
}

.storytile-sites-agenda-small .storytile-sites-agenda-stagename {
    position: relative;
    grid-area: stage;
    overflow: hidden;
    min-height: 3rem;
    min-height: var(--storytile-sites-agenda-stage-height);
    line-height: 3rem;
    line-height: var(--storytile-sites-agenda-stage-height);
    align-self: end;
    text-align: right;

    color: var(--main-color-dark);
    font-family: var(--notification-box-text-font-family);
    font-size: 14px;
}

.storytile-sites-agenda-small .storytile-sites-agenda-timezone-info {
    position: relative;
    grid-area: stage;
    overflow: hidden;
    min-height: 3rem;
    min-height: var(--storytile-sites-agenda-stage-height);
    line-height: 3rem;
    line-height: var(--storytile-sites-agenda-stage-height);
    align-self: end;
    text-align: right;

    opacity: 0.7;
    color: var(--welcome-text-color);
    font-family: var(--notification-box-text-font-family);
    font-size: 11px;
}

.storytile-sites-agenda-small .storytile-sites-agenda-slotbox {
    /* Don't use "border" here! That causes a display issue of the live time visualisation */
    position: relative;
    grid-area: slots;
    overflow: hidden;
    height: 3rem;
    height: var(--storytile-sites-agenda-stage-height);
}

.storytile-sites-agenda-small .storytile-sites-agenda-slotbox-with-hr .storytile-sites-agenda-slots::before {
    position: absolute;
    display: block;
    content: "";
    top: calc(50% - 1px);
    left: 0;
    right: 0;
    height: 2px;
    background-color: currentColor;
    opacity: 0.1;
}

.storytile-sites-agenda-small .storytile-sites-agenda-slots::after {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    border-right: 1px solid #f00;
    width: var(--storytile-sites-agenda-time-progress);
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.storytile-sites-agenda-small .storytile-sites-agenda-slots {
    position: absolute;
    height: 100%;
    min-width: 100%;
    width: auto;
    top: 0;
    left: 0;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-stage:first-child,
.storytile-sites-agenda-small .storytile-sites-agenda-stage:first-child .storytile-sites-agenda-slots {
    --storytile-sites-agenda-stage-height: 2rem;
    padding: 0;
    overflow: hidden;
}

.storytile-sites-agenda-small .storytile-sites-agenda-timeslot {
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
    text-align: left;
    line-height: 2rem;
    color: var(--welcome-text-color);
    font-weight: 400;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot {
    position: absolute;
    display: block;
    padding: 0 1.25rem;
    text-align: left;
    line-height: 2rem;
    color: var(--bg-color);
    background-color: var(--main-color-dark);
    font-weight: 400;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 1rem;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot.storytile-sites-agenda-favorite-slot::before {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: #f80;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot[onclick] {
    cursor: pointer;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot:nth-child(even) {
    border-top-left-radius: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot:nth-child(odd) {
    border-bottom-right-radius: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-arrow {
    position: relative;
    justify-self: center;
    align-self: center;
    line-height: 0;
    color: var(--main-color-dark);
}

.storytile-sites-agenda-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 1rem;
    background-color: var(--main-color-light);
    color: var(--bg-color);
    display: none;
    /*
        use the transform to change position of the
        tooltip relative to the mouse pointer
    */
    transform: translateX(calc(-25% - 0.5rem)) translateY(1.5rem);
}

.storytile-sites-agenda-tooltip::before {
    position: absolute;
    display: block;
    content: "";
    background-color: inherit;
    width: 1.4rem;
    height: 1.4rem;
    transform: rotate(45deg);
    left: 25%;
    top: -0.7rem;
}

.storytile-sites-agenda-tooltip-title {
    position: relative;
    font-weight: bold;
}

.storytile-sites-agenda-tooltip-time {
    position: relative;
    font-weight: lighter;
    font-style: italic;
    margin: 0.5rem 0;
}

.storytile-sites-agenda-tooltip-body {
    position: relative;
}
