/* Presentation */

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5 {
    text-transform: none;
}

.reveal .slide-menu-button {
    bottom: 1.1em !important;
}

section {
    height: 100%;
}

.snooot-note {
    font-size: medium;
    z-index: 100;
}

.snooot-note-muted {
    color: var(--snooot-muted-color);
}

.snooot-note-warning {
    color: var(--snooot-warning-color);
}

.bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
}

.bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
}

.answer-bottom-center {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    max-height: 3rem;
    left: 0;
    right: 0;
    bottom: 1rem;
    text-align: center;
}

.top-left {
    position: absolute;
    top: 0;
    left: 0;
    margin: 1em;
}

.top-right {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1em;
}

.top-center {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    text-align: center;
    margin: 1em;
}

.client-box {
    max-width: 530px;
}

.login-box {
    max-width: 530px;
    min-width: 200px;
}

.snooot-headline {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 2vw;
    color: var(--snooot-headline-color);
}

.snooot-body-text {
    font-size: 0.6em;
    color: var(--snooot-muted-color);
}

.snooot-highlight {
    margin-top: 1vw;
    font-size: 1.1em;
    margin-bottom: 1vw;
    font-weight: bold;
    color: var(--snooot-highlight-color);
}

.snooot-join-grid {
    margin-top: 3vh;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    flex-direction: row; 
    font-size: 3vw;
}

.snooot-join-col {
    margin: 1vw;
}

.snooot-spacer {
    min-width: 5vw;
    max-width: 5vw;
}

.snooot-qr {
    border-style: solid;
    border-width: 1vw;
    border-color: #ffffff;
    border-radius: 1vw;
    width: 20vw;
    height: 20vw;
}

.snooot-small {
    font-size: small;
}

.snooot-slide-content {
    position: absolute;
    width: 100vw;
    top: 1.5em;
    height: calc(100vh - 3.5em);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.snooot-visualization-container {
    position: relative; 
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1600px;
    height: 80%;
    max-height: 80%;
    overflow-y: hidden;
}

.snooot-question {
    font-size: max(0.8em, 5vh) !important;
    margin-bottom: 0.1em !important;
}

.snooot-question-subheading {
    font-size: max(0.3em, 3vh) !important;
}

.snooot-question-spacer {
    margin-left: 0.5em !important;
    margin-right: 0.5em !important;
    margin-bottom: 1em !important;
}

.snooot-scrollable {
    overflow-y: scroll !important;
    max-height: 100%;
    padding-left: 0.3em;
    padding-right: 0.3em;
}

.snooot-answer-textbox {
    border-style: solid; 
    border-width: var(--snooot-free-text-border-width);
    border-radius: 10px;
    border-color: var(--r-main-color); /* will be overwritten by question color */
    margin: 1rem;
    padding: 1rem;
    font-size: 0.55em;
    background-color: var(--snooot-box-background-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.snooot-answer-checked {
    color: var(--snooot-box-muted-color) !important;
}

.snooot-answer-checked .snooot-text-interaction:hover {
    color: var(--r-main-color) !important;
}

.snooot-answer-textbox-export {
    font-size: 0.4em;
    padding: 0.75em;
    margin: 0.75em;
}

.snooot-answer-text {
    overflow-wrap: anywhere;
    flex: 1000; 
}

.snooot-client-answer-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.snooot-text-interaction {
    flex: 1;
    cursor: pointer; 
    color: var(--snooot-muted-color);
    margin-left: 1em;
}

.snooot-text-interaction:hover {
    color: var(--r-main-color);
}

.snooot-upvote {
    flex: 1;
    display: flex;
    flex-direction: row;
    color: var(--snooot-muted-color);
    margin-right: 1em;
    font-size: medium;
    align-items: baseline;
}

[popover] {
    position: fixed;
    left: auto;
    right: 0;
    top: auto;
    bottom: 0;
    width: fit-content;
    height: fit-content;
    background-color: var(--snooot-box-background-color);
    color: var(--r-main-color);
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 1em;
    padding-right: 1em;
    margin: 0.4em;

    border-radius: 1vw;
    border-style: solid;
    border-color: var(--r-main-color);
    border-width: 2px;
}

.snooot-timer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Client */

[data-bs-theme=dark] body {
    background-color: #2b3035;
}

[data-bs-theme=light] body {
    background-color: #ffffff;
}

[data-bs-theme=dark] .snooot-client-answer-text-clicked {
    color: #75b798;
    background-color: #051b11;
}

[data-bs-theme=light] .snooot-client-answer-text-clicked {
    color: #051b11;
    background-color: #198754;
}

[data-bs-theme=dark] .snooot-btn-outline-dark-light { /* btn-outline-light rules */
	--bs-btn-color: #f8f9fa;
	--bs-btn-border-color: #f8f9fa;
	--bs-btn-hover-color: #000;
	--bs-btn-hover-bg: #f8f9fa;
	--bs-btn-hover-border-color: #f8f9fa;
	--bs-btn-focus-shadow-rgb: 248,249,250;
	--bs-btn-active-color: #000;
	--bs-btn-active-bg: #f8f9fa;
	--bs-btn-active-border-color: #f8f9fa;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #f8f9fa;
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: #f8f9fa;
	--bs-gradient: none;
}

[data-bs-theme=light] .snooot-btn-outline-dark-light { /* btn-outline-dark rules */
	--bs-btn-color: #212529;
	--bs-btn-border-color: #212529;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #212529;
	--bs-btn-hover-border-color: #212529;
	--bs-btn-focus-shadow-rgb: 33,37,41;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #212529;
	--bs-btn-active-border-color: #212529;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #212529;
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: #212529;
	--bs-gradient: none;
}

.sortable-chosen {
    background-color: #ff9055;
    color: black;
    z-index: 100 !important;
}

.sortable-drag {
    opacity: 1 !important;
}

.sortable-fallback {
    opacity: 1 !important;
    display: none !important;
}

.sortable-ghost {
    opacity: 1 !important;
}