﻿@import url("https://fonts.bunny.net/css?family=lato:300,300i,700,700i|open-sans:300,300i,700,700i|roboto:300,300i,700,700i");

@font-face {
    font-family: "Apercu Arabic Pro";
    src: local("Apercu Arabic Pro"), local("Apercu Arabic Pro Regular"), url("fonts/apercu-arabic-regular-pro.woff2") format('woff2');
}

@font-face {
    font-family: "Apercu Arabic Pro";
    src: local("Apercu Arabic Pro Bold"), url("fonts/apercu-arabic-bold-pro.woff2") format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: "Apercu Arabic Pro";
    src: local("Apercu Arabic Pro Medium"), url("fonts/apercu-arabic-medium-pro.woff2") format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: "Apercu Arabic Pro";
    src: local("Apercu Arabic Pro Light"), url("fonts/apercu-arabic-light-pro.woff2") format('woff2');
    font-weight: 300;
}

@font-face {
    font-family: "Apercu Mono Pro";
    src: local("Apercu Mono Pro Bold"), url("fonts/apercu-mono-bold-pro.ttf") format('ttf');
    font-weight: 700;
}

/*@font-face {
    font-family: "Open Sans";
    src: local("Open Sans"), local("Open Sans Regular"), url("fonts/OpenSans-Regular.woff2") format('woff2');
}*/

@font-face {
    font-family: "Helvetica Neue";
    src: local("Helvetica Neue"), local("Helvetica Neue Regular"), url("fonts/HelveticaNeueCyr-Roman.woff2") format('woff2');
}
@font-face {
    font-family: "Helvetica Neue";
    src: local("Helvetica Neue Bold"), url("fonts/HelveticaNeueCyr-Bold.woff2") format('woff2');
    font-weight: bold;
}
@font-face {
    font-family: "Helvetica Neue";
    src: local("Helvetica Neue Italic"), url("fonts/HelveticaNeueCyr-Italic.woff2") format('woff2');
    font-style: italic;
}
@font-face {
    font-family: "Helvetica Neue";
    src: local("Helvetica Neue Bold Italic"), url("fonts/HelveticaNeueCyr-BoldItalic.woff2") format('woff2');
    font-weight: bold;
    font-style: italic;
}

:root {
    --background: #000e1f;
    --font: #ffffff;
    --font2: 255, 255, 255;
    --heading: #e8e8e8;
    --highlight: #ff3333;
    --container: #445464;
    --container-bg: #44546440;
    --red: #ff3333;
    --yellow: #FFC400;
    --green: #81E37B;
    --black: #000e1f;
    --grey: #bbbbbb;
    --grey-bg: #f7f7f7;
    --text: #888888;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'Apercu Arabic Pro', 'Apercu Pro', 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 24px;
}

h1, h2, h3 {
    margin: 0;
    color: var(--heading);
}

h1 { font-size: 60px; }

.smaller {
    font-size: 80%;
}

input[type=text], select {
    font-family: inherit;
    font-size: inherit;
}

.scanmebox, .appinfobox, .namecontainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    color: var(--font);
    box-sizing: border-box;
}

.heading {
    display: flex;
    flex-direction: row;
    padding: 20px 40px;
    align-items: center;
}

.menuleft {
    height: 80px;
    flex-grow: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    background-image: url('/content/slidecrew-logo.svg');
}

.menuright {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menudate {
    font-weight: bold;
}

    .menudate span {
        background-color: #ffffff;
        color: #000000;
        display: inline-flex;
        font-weight: normal;
    }

    .menudate span, .sessiontimes span {
        padding: 4px 8px 4px 4px;
        border-radius: 20px;
        box-sizing: border-box;
        flex-direction: row;
        gap: 5px;
        justify-content: space-between;
        align-items: center;
    }

.menuroom {
    font-size: 32px;
    font-weight: bold;
    color: var(--highlight);
}

.content {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    background-position: center;
    background-size: cover;
    align-items: center;
}

.appinfobox .content {
    flex-direction: column;
    padding: 40px;
    gap: 20px;
    overflow: hidden;
}

.appinfobox .content > * {
    width: 100%;
}

.leftcol {
    width: 50%;
    height: 100%;
}

    .leftcol.icon {
        background-image: url('/content/scanqr-hand.svg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

.rightcol {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

#qrcode {
    margin: 20px;
    padding: 10px;
    background-color: #ffffff;
}

.devicecode {
    background-color: #ffffff;
    color: var(--black);
    font-size: 150%;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
}

.content h2 {
    font-size: 28px;
}

.settingsoverlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.settingsmenu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    background-color: #000e1f;
    color: #ffffff;
    font-size: 16px;
    padding: 20px;
    overflow: auto;
}

    .settingsmenu input[type=text] {
         width: 100%;
    }

input[type=radio] {
    width: 16px;
    appearance: inherit;
    border-radius: 50%;
    height: 16px; /* margin-right: 6px; */ /* margin-top: 0px; */
    border: 1.5px solid #888888;
    cursor: pointer;
}

    input[type=radio]:checked {
        background-color: #ff3333;
    }

/*-------------------------
	Room info screen
--------------------------*/
.sessionbox {
    background-color: var(--container);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 16px;
    min-height: 130px;
    box-sizing: border-box;
}

.sessiontimes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .sessiontimes span {
        background-color: #333e4b;
        color: #ffffff;
        width: 100%;
        display: flex;
    }

    .sessiontimes div {
        width: 1px;
        flex-grow: 1;
        border-left: 1px dashed white;
    }

.sessionname {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .sessionname h3 {
        font-size: 32px;
    }

/*-------------------------
	The clock
--------------------------*/
#timerwrapper {
    width: 100%;
    height: 100%;
    background-color: #000e1f;
    color: #ffffff;
}

#timertype {
    font-size: 5vw;
    text-align: center;
    padding-top: 20px;
    opacity: 1;
    transition: opacity 0.5s;
}

#timerclock {
    text-align: center;
    font-size: 19vw;
    font-weight: bold;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    transition: top 0.5s, transform 0.5s, font-size 0.5s, color 0.5s;
    font-family: 'Apercu Mono Pro', 'Open Sans', Arial, Helvetica, sans-serif;
}

    #timerclock.red {
        color: var(--red);
    }

    #timerclock span {
        font-size: 12vw;
        vertical-align: middle;
        display: inline-block;
        margin-bottom: 5vw;
        transition: font-size 0.5s, margin-bottom 0.5s;
        font-family: 'Apercu Arabic Pro', 'Apercu Pro', 'Open Sans', Arial, Helvetica, sans-serif;
    }

#timermessage {
    font-size: 6vw;
    font-weight: bold;
    text-align: center;
    color: #fff;
    position: absolute;
    width: 100%;
    top: 55%;
    opacity: 0;
    transition: opacity 0.5s;
}

#timerfooter {
    font-size: 12pt;
    color: #333;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
}

.timerprogress {
    position: absolute;
    top: calc(50% + 150px);
    left: 10%;
    right: 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s;
}

.progresstimebox {
    background-color: var(--grey);
    font-size: 40px;
    line-height: 40px;
    padding: 10px 20px 10px 10px;
    border-radius: 30px;
    flex-shrink: 0;
}

#timerbar {
    width: 100%;
    height: 20px;
    flex-grow: 1;
}

#timerfill {
    height: 100%;
    background-color: #68bc8c;
    transition: width 0.5s;
}

    #timerfill.red {
        background-color: #d6402b;
    }

#timerwrapper.message #timertype {
    opacity: 0;
}

#timerwrapper.message #timerclock {
    transform: translateY(-80%);
}

#timerwrapper.message #timermessage {
    opacity: 1;
}

#timerwrapper.message .timerprogress {
    opacity: 0;
}

@keyframes blink {
    0% {
        visibility: visible;
    }
    49% {
        visibility: visible;
    }
    50% {
        visibility: hidden;
    }
    100% {
        visibility: hidden;
    }
}

.blinking {
    animation: blink 1s infinite;
}

.mutetoggle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: var(--grey);
    width: 30px;
    line-height: 30px;
}

/*--------------------------
	Name screen
--------------------------*/
.namecontainer {
    padding: 40px;
    gap: 20px;
    background-position: center;
    background-size: cover;
}

.logobox {
    min-height: 100px;
    align-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    text-align: right;
    font-weight: bold;
    font-size: 32px;
}

.nameblock {
    flex-grow: 1;
    align-content: center;
    text-align: center;
    position: relative;
}

.namebox {
    border-radius: 10px;
    padding: 16px;
}

.bg .namebox {
    background-color: var(--container);
}

.menutoggle {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
}
.menutoggle:hover {
    background-color: var(--container);
}

/*--------------------------
	Queue screen
--------------------------*/
.queuemain {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
}
.queueleft {
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.queueright {
    width: 35%;
    height: 100%;
    background-color: var(--container);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 10px;
    box-sizing: border-box;
}

.queueitem {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    background-color: var(--container);
    align-items: center;
    overflow: hidden;
}
.queueitem > div {
    padding: 16px;
}
.queueitem > div:first-child {
    background-color: var(--highlight);
}
    .queueitem.waiting > div:first-child {
        background-color: var(--containerdark);
    }
.queueitem > div > i {
    width: 60px;
    line-height: 60px;
    font-size: 45px;
    text-align: center;
}
.queueitem .big {
    font-size: 35px;
    font-weight: bold;
    color: var(--heading);
}
.queuecounter {
    padding: 8px 14px;
    background-color: var(--container);
    border-radius: 30px;
    width: max-content;
}

.queueright .queueitem > div {
    padding: 10px;
}
    .queueright .queueitem > div:nth-child(2) {
        flex-grow: 1;
    }
    .queueright .queueitem > div:last-child {
        font-size: 10px;
    }
.queueright .queueitem .big {
    font-size: 25px;
}
.queueright .queueitem span.clock {
    background-color: #ffffff;
    color: #000000;
    padding: 4px 8px 4px 4px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
}

.scanarea {
    text-align: center;
    background: var(--container);
    border-radius: 10px;
    padding: 20px 10px 10px 10px;
    box-sizing: border-box;
}

    .scanarea input[type=text] {
        background: transparent;
        border: none;
        outline: none;
        font-size: 14px;
    }

.scanmessage {
    font-size: 30px;
}

/*------------------------
    ePosters
------------------------*/
.sidemenu {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80px;
    background-color: #ededed;
    border-right: 1px solid #b2b2b2;
    color: #888888;
}

    .sidemenu .submenu {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .sidemenu .bottommenu {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
    }

.submenu div, .bottommenu div {
    width: 0;
    height: 40px;
    margin: 5px 0;
    background-position: 5px center;
    background-size: 40px 40px;
    background-repeat: no-repeat;
    line-height: 40px;
    padding: 5px 0 5px 55px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
}

    .submenu div:hover, .bottommenu div:hover {
        overflow: visible;
        width: 200px;
        background-color: #ededed;
        border-color: #b2b2b2;
    }

.sidemenu i {
    width: 80px;
    height: 80px;
    text-align: center;
    line-height: 80px;
    font-size: 40px;
    cursor: pointer;
}

    .sidemenu i:hover {
        color: #ff3333;
    }

    .sidemenu .logo {
        width: 50px;
        height: 50px;
        padding: 15px;
        cursor: pointer;
    }

#postercontainer {
    position: absolute;
    left: 85px;
    right: 5px;
    top: 5px;
    bottom: 5px;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    z-index: 1;
}

.poster {
    width: 100%;
    height: 100%;
    position: absolute;
    display: none;
}

    .poster.active {
        display: block;
    }

    .poster img {
    }

.postercontrols {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    left: calc(50% + 40px);
    bottom: 40px;
    transform: translateX(-50%);
    background-color: var(--grey-bg);
    z-index: 2;
    border-radius: 30px;
    padding: 10px 15px;
    gap: 10px;
}

    .postercontrols i {
        width: 40px;
        line-height: 40px;
        border-radius: 5px;
        text-align: center;
        cursor: pointer;
    }

        .postercontrols i:hover {
            background-color: #ffffff;
        }

    .postercontrols i.fa-pipe {
        width: 5px;
        cursor: initial;
    }

        .postercontrols i.fa-pipe:hover {
            background-color: var(--grey-bg);
        }

.eventinfo {
    background-color: #ff3333;
    padding: 20px;
    border-radius: 20px;
    color: #fff;
}

#listview {
    position: absolute;
    width: calc(100% - 101px);
    height: calc(100% - 20px);
    right: 0;
    top: 0px;
    padding: 10px;
    background-color: #fff;
    z-index: 3;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.categories {
    margin: 20px 0;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

    .categories > h2 {
        color: var(--black);
    }
        .categories > h2 > span {
            font-size: 12pt;
            background-color: var(--grey-bg);
            color: var(--text);
            padding: 4px 8px;
            border-radius: 5px;
            cursor: pointer;
        }

    .categories > select {
        background-color: var(--grey-bg);
        color: var(--text);
        line-height: 28px;
        border-radius: 10px;
        padding: 6px 12px;
        border: none;
        box-sizing: border-box;
        font-size: 20px;
    }

.searchbox {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 5;
}

.listbox {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
    gap: 10px;
    padding: 0;
}

.ea-posterbox {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 20px;
    background-color: var(--grey-bg);
    color: var(--text);
    font-size: 18px;
}

    .ea-posterbox:hover {
        border-color: var(--red);
    }

.ea-poster-preview {
    background-color: var(--grey);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 20px 20px 0 0;
    height: 350px;
}

.ea-poster-status {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

    .ea-poster-status div {
        background-color: #fff;
        padding: 6px 10px 6px 6px;
        border-radius: 20px;
        display: flex;
        flex-direction: row;
        gap: 4px;
    }

.ea-poster-infobox {
    background-color: var(--grey-bg);
    padding: 30px 20px 20px 20px;
    position: relative;
    border-radius: 0 0 20px 20px;
}

.ea-poster-category {
    background-color: #fff;
    position: absolute;
    top: 0;
    padding: 8px;
    border-radius: 10px;
    max-width: calc(100% - 32px);
    left: 16px;
    box-sizing: border-box;
    transform: translate(0, -50%);
}

    .ea-poster-category span {
        display: block;
        width: 100%;
        max-height: 2em;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.ea-poster-title {
    color: var(--black);
    margin: 0;
}

.ea-poster-name {
    margin: 0;
}

.modalbg {
    z-index: 5;
    position: absolute;
    left: 81px;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 14, 31, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    padding: 40px;
    gap: 40px;
}

    .modalbg > i.fa-xmark {
        background-color: #ffffff;
        width: 60px;
        line-height: 60px;
        border-radius: 30px;
        font-size: 30px;
        text-align: center;
    }

.modalbox {
    padding: 20px;
    border-radius: 20px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

    #modalsearch .modalbox {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: calc(80% - 100px);
    }

    .modalbox input[type=text] {
        width: 100%;
        background-color: var(--grey-bg);
        line-height: 28px;
        border-radius: 20px;
        padding: 6px 20px;
        border: none;
        box-sizing: border-box;
    }

    #modalsearch hr {
        width: 100%;
    }

.categorieslist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 290px);
    overflow: auto;
}

    .categorieslist > div {
        border-radius: 8px;
        padding: 10px 12px;
    }

    .categorieslist > div:hover {
        background-color: var(--grey-bg);
    }

    .categorieslist > .active {
        font-weight: bold;
        color: var(--red);
        background-color: var(--grey-bg);
    }

.searchresults {
    font-size: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 340px);
    overflow: auto;
}

.searchresult {
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    min-height: 100px;
}

.resultpreview {
    width: 100px;
    background-color: var(--grey);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.resultinfo {
    background-color: var(--grey-bg);
    flex-grow: 1;
    padding: 10px;
}

    .resultinfo > span {
        font-size: 80%;
        color: var(--text);
    }

.result-poster-category {
    background-color: #fff;
    padding: 4px 8px;
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--text);
    font-size: 90%;
    width: fit-content;
}

.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 10px;
    padding: 10px;
    max-height: calc(100vh - 290px);
    overflow: auto;
}

.instructionitem {
    border: 1px solid var(--grey);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .instructionitem img {
        width: 250px;
        height: 250px;
    }

.qrlayout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

    .qrlayout h2 {
        color: var(--black);
    }

        .qrlayout h2 span {
            color: var(--red);
        }

/**************
    Airport
***************/

.airporttop .menuleft { width: 240px; flex-grow: 0; }
.airporttop .menumiddle { flex-grow: 1; flex-shrink: 1; display: flex; flex-direction: row; gap: 10px; align-items: center; }
.connectstatus { width: 14px; height: 14px; border-radius: 10px; background-color: var(--grey); }
.status-red { background-color: var(--red); }
.status-yellow { background-color: var(--yellow); }
.status-green { background-color: var(--green); }
.airporttop .menudate { display: flex; flex-direction: row; align-items: center; gap: 5px; }
.airporttop .menudate span { font-size: 32px; padding: 8px 16px 8px 8px; gap: 10px; margin-left: 5px; border-radius: 24px; }

.twocols .airport-heading { width: calc(50% - 10px); margin-right: auto; }
.airport-heading { display: flex; flex-direction: row; font-weight: bold; }
.airport-list { /*display: flex; flex-direction: column; gap: 8px;*/ overflow: hidden; position: relative; flex-grow: 1; }
.airport-date { display: flex; flex-direction: row; height: 80px; align-items: center; flex-shrink: 0; position: absolute; padding-left: 10px; }
.airport-session { display: flex; flex-direction: row; border: 2px solid var(--container); padding: 8px; gap: 10px; border-radius: 20px; background-color: var(--container-bg); height: 80px; width: 100%; box-sizing: border-box; position: absolute; }
.twocols .airport-session { width: calc(50% - 10px); }
.airport-left, .airport-middle, .airport-right { display: flex; flex-direction: column; height: 100%; justify-content: center; }
.airport-left { padding-right: 10px; border-right: 2px solid var(--container); align-items: center; width: 125px; flex-shrink: 0; }
.airport-left span { margin-top: auto; }
.airport-middle { flex-grow: 1; max-width: calc(100% - 290px); }
.airport-right { padding-left: 10px; border-left: 2px solid var(--container); width: 120px; flex-shrink: 0; align-items: center; }
.airport-session h1, .airport-session h2, .airport-session h3, .airport-session h4 { margin: 0; line-height: 120%; color: var(--font); }
.airport-middle h4 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: normal; }
.airport-middle h4 span { font-size: 80%; font-style: italic; }
.marquee { overflow: hidden; position: relative; height: 35px; flex-shrink: 0; }
.marquee > * { display: block; position: absolute; width: fit-content; height: 100%; margin: 0; transform: translateX(0); animation: scroll-left 10s linear infinite; white-space: nowrap; }
.twocols .marquee > * { animation-name: scroll-left2; }
@keyframes scroll-left {
    30% { transform: translateX(0); }
    80% { transform: translateX(-100%) translateX(100vw) translateX(-350px); }
    100% { transform: translateX(-100%) translateX(100vw) translateX(-350px); }
}
@keyframes scroll-left2 {
    30% { transform: translateX(0); }
    80% { transform: translateX(-100%) translateX(50vw) translateX(-350px); }
    100% { transform: translateX(-100%) translateX(50vw) translateX(-350px); }
}
.airport-right .statusbox { display: flex; flex-direction: row; gap: 5px; background-color: var(--container-bg); padding: 8px; border-radius: 10px; align-items: center; width: fit-content; }
.redtext { color: var(--red); }
.greentext { color: var(--green); font-size: 80%; margin-bottom: auto; }
.airport-heading .airport-left, .airport-heading .airport-right { border: none; margin: 0 10px; align-items: start; }

@media only screen and (max-width: 1080px) {
    .airporttop .menuleft { flex-grow: 1; }
    .airporttop .menumiddle { display: none; }
}
