* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
    outline: none;
}

:root {

    /* 73Health colors */
    --main-color: rgb(244, 100, 33);
    --main-button-color: rgb(244, 100, 33);
    --main-button-color-hover: rgb(206,74,11);
    --main-button-text-color: white;
    --sub-color: rgb(206,74,11);
    --main-bg: #222;
    --main-font: white;
    --sub-font: white;
    --main-logo: url(../img/73logo.svg);
    --main-logo-width: 150px;
    --main-logo-height: 150px;
    --toggle-bg: rgb(244, 100, 33);

    /* Used to change the svg icon colors to specific color.
        Use this link to generate "filter" value for hex value: https://codepen.io/sosuke/pen/Pjoqqp
    */
    --icon-filter: invert(53%) sepia(72%) saturate(2776%) hue-rotate(349deg) brightness(100%) contrast(92%);
    


    /* Omply colors */
    /*
    --main-color: #0155FC;
    --main-button-color: #0155FC;
    --main-button-color-hover: #3478ff;
    --main-button-text-color: white;
    --sub-color: rgb(206,74,11);
    --main-bg: #dbeaf3;
    --main-font: #0155FC;
    --sub-font: white;
    --main-logo: url(../img/omply_logo.png);
    --main-logo-width: 300px;
    --main-logo-height: 150px;
    --toggle-bg: #0155FC;
    --icon-filter: invert(21%) sepia(98%) saturate(5702%) hue-rotate(222deg) brightness(104%) contrast(99%);
    */
}

/* For Omply logo a quick fix */
/*
.logo > div {
    left: -40px !important;
}
*/


body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
    font-size:12px;
    background-color: var(--main-bg);
    /* Padding to avoid the "unsafe" areas behind notches in the screen 
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-right, 0px);
    */
}

.load-mask {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
}

.load-message {
    color: var(--main-font);
    font-size: 32px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-weight: bold;
}

.loader {
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
  }

  .loader,
  .loader:before,
  .loader:after {
      width: 30px; /* update this to control the size */
      aspect-ratio: .5;
      display: grid;
      background: radial-gradient(var(--main-color) 68%,#0000 72%) center/100% 50% no-repeat;
      animation: load 1.2s infinite linear calc(var(--_s,0)*.4s);
      transform: translate(calc(var(--_s,0)*150%));
  }
  .loader:before,
  .loader:after {
      content: "";
      grid-area: 1/1;
  }
  .loader:before {--_s: -1}
  .loader:after  {--_s:  1}

  @keyframes load {
      20% {background-position: top   }
      40% {background-position: bottom}
      60% {background-position: center}
  }

.gradient {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(255,255,255,0.15),rgba(0,0,0,0.15));
}

.poweredby {
    position: absolute;
    right: 10px;
    bottom: 10px;
    opacity: 0.7;
    z-index: 1;
}

.poweredby-text {
    font-family: Roboto, sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 18pt;
    color: white;
}

.poweredby-logo {
    background: url(../img/73logo.svg) no-repeat;
    height: 150px;
    width: 150px;
    background-size: 150px;
}

.poweredby-black {
    position: absolute;
    right: 10px;
    bottom: 10px;
    opacity: 0.7;
    z-index: 1;
}

.poweredby-text-black {
    font-family: Roboto, sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 18pt;
    color: black;
}

.poweredby-logo-black {
    background: url(../img/73logo_black.svg) no-repeat;
    height: 150px;
    width: 150px;
    background-size: 150px;
}

.logo > div {
    background: var(--main-logo) no-repeat;
    height: var(--main-logo-height);
    width: var(--main-logo-width);
    background-size: var(--main-logo-width);
    position: absolute; 
    left: 10px; 
    top: calc(100vh - var(--main-logo-height) - 10px);
    opacity: 0.7; 
    z-index: 1;
}

.icp-footer {
    width: 100%;
    color: #4b5563;
    text-align: center;
    font-size: 0.875rem;
    padding: 1rem 0;
    margin-top: 2rem;
    position: absolute;
    bottom: 0px;
    z-index: 1;
}

.icp-footer a {
    color: #4b5563;
    text-decoration: none;
    margin-left: 0.5rem;
}

.icp-footer a:hover {
    text-decoration: underline;
}

body, html {
    margin: 0;
    width:100vw;
    height: 100vh;
    overflow:hidden;
}

/* Used to blur all elements EXCEPT the one with "active-modal" ID */
body[blur=true] > *:not(.unblur) {
    filter: blur(3px);
    pointer-events: none;
}


/* Portrait layout (default) */
.app {
}

/*
.status-bar {
    position: absolute;
    left: 0vw;
    width: 400px;
    left: 50%;
    margin-left: -200px;
    text-align: center;
    bottom: 10%;
    min-height: 23px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13pt;
    z-index: 30;
    padding: 10px;
    color: rgba(255,255,255,0.7);
    background-color: rgba(0,0,0,0.3);
    border-radius: 10px;
}
*/

#jitsi {
    position: absolute;
    top: 0;
    left: 0;
    width:100vw;
    height: 100vh;    
}

.local-track-container {
    bottom: 10px;
    right: 10px;
    position: absolute;
    z-index: 40;
}

.local-track-container[muted="true"]:before {
    content: '';
    position: absolute;
    background: black;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    border: 3px solid rgba(255,255,255,0.8);
}

video.local-track {
    /*display: none;*/
    border-radius: 10px;
    border: 3px solid rgba(255,255,255,0.8);
    width: 300px;
    max-height: 170px;
    transition: all 0.3s ease;
    cursor: pointer;
}

video.local-track-large {
    width: 400px;
    max-height: 230px;
}

video[muted="true"] {
    display: none;
}

.remote-track.external-camera-enabled {
    /*
    max-width: 800px;
    height: 600px; 
    */
    height: auto;
    width: 50vw !important;
    border-radius: 8px;
    margin-left: 20px;
    border: 3px solid rgba(255,255,255,0.6);
}

.remote-track-container {
    /*
    width: 100vw;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.remote-track.landscape {
    width: 100%;
    height: auto;
}

.remote-track.landscape-force {    
    width: 100%;
    height: auto;    

    /*
    height: auto;
    width: 65vw;
    */
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.remote-track.portrait {
    /*width: auto;*/
    width: 100%;
    /*height: 100%;*/
}

.remote-track {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.remote-track-container.muted:before {
    content: '';
    position: absolute;
    background: black;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {

}


@media screen and (prefers-color-scheme: dark) {
    body {
        background-image:linear-gradient(to bottom, #585858 0%, #1B1B1B 51%);
    }
}


.success-message, .error-message {
    display: none;
    position: absolute; 
    top: 100vh; 
    width: 92vw; 
    align-items: center;
    justify-content: center;    
    padding-left: 4vw;
    padding-right: 4vW;
    left: 0vw; 
    text-align: center; 
    font-weight: bold; 
    z-index: 51; 
    color: rgba(255,255,255,0.8); 
}

.logo-bar {
    background: rgb(76,76,76); /* Old browsers */
    background: -webkit-linear-gradient(top, rgba(76,76,76,1) 0%,rgba(89,89,89,1) 12%,rgba(102,102,102,1) 25%,rgba(71,71,71,1) 39%,rgba(44,44,44,1) 50%,rgba(0,0,0,1) 51%,rgba(17,17,17,1) 60%,rgba(43,43,43,1) 76%,rgba(28,28,28,1) 91%,rgba(19,19,19,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(76,76,76,1) 0%,rgba(89,89,89,1) 12%,rgba(102,102,102,1) 25%,rgba(71,71,71,1) 39%,rgba(44,44,44,1) 50%,rgba(0,0,0,1) 51%,rgba(17,17,17,1) 60%,rgba(43,43,43,1) 76%,rgba(28,28,28,1) 91%,rgba(19,19,19,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */        
    position: absolute; 
    top: 0px; 
    left: 0px; 
    width: 100vw; 
    height: 130px;
    text-align: center;
    z-index: 60;
    box-shadow: 0px 2px rgba(255,255,2550.3);

}

.forms-menu {
    position: absolute;
    right: 10px;
    top: 25px;
    display: flex;
    flex-direction: column;
    width: 100px;
}

.forms-menu select {
    flex: 1;
    display: block;
}

.forms-menu button {
    margin-top: 10px;
    display: block;
    flex: 1;
}

.data-panel {
    background: rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 

    border-radius: 20px;
    margin: 0px;
    transform: translate3d(0,0,0); 
    position: absolute;
    bottom: -30px;
    margin-left: 5vw;
    z-index: 50;
    overflow: hidden;
    box-shadow: rgb(149 157 165 / 60%) 0px 8px 24px;
  }

.notransition {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;

    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
    transform: none !important;

    opacity: none !important;
}

.collapsed {
    top: calc(100vh - 65px);

    /*
    animation: collapse-animation 0.5s ease-out forwards;
    -moz-animation: collapse-animation 0.5s ease-out forwards;
    -webkit-animation: collapse-animation 0.5s ease-out forwards;    
    */
}

.expanded {
    /*
    animation: expand-animation 0.3s ease-in forwards;
    -moz-animation: expand-animation 0.3s ease-in forwards;
    -webkit-animation: expand-animation 0.3s ease-in forwards;
    */
}


@keyframes collapse-animation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, calc(100% - 100px), 0); }
}

@keyframes expand-animation {
    0% { transform: translate3d(0, calc(100% - 100px), 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@-webkit-keyframes collapse-animation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, calc(100% - 100px), 0); }
}

@-webkit-keyframes expand-animation {
    0% { transform: translate3d(0, calc(100% - 100px), 0); }
    100% { transform: translate3d(0, 0, 0); }
}

#menu__toggle {
    opacity: 0;
}
#menu__toggle:checked + .menu__btn > span {
    transform: rotate(45deg);
}
#menu__toggle:checked + .menu__btn > span::before {
    top: 0;
    transform: rotate(0deg);
}
#menu__toggle:checked + .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
    right: 0 !important;
}
.menu__btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 10001;
}
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: darkgray;
    transition-duration: .25s;
}
.menu__btn > span::before {
    content: '';
    top: 8px;
}
.menu__btn > span::after {
    content: '';
    top: 16px;
}
.menu__box {
    z-index: 10000;
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    margin: 0;
    padding: 0px;
    background-color: #ECEFF1;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
    transition-duration: .25s;
}
.menu__item {
    display: block;
    padding: 12px 24px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition-duration: .25s;
    cursor: pointer;
}
.menu__item:hover {
    background-color: #CFD8DC;
}
.menu__items-container {
    list-style: none;
    padding: 0px;
    margin: 0px;
}
.menu__header h1 {
    padding: 12px 24px;
}