/* General */
body {
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #191919;
}

div.message-container {
    max-width:20em;
    position: fixed;
    left: 50%;
    top: 70px;
    transform: translate(-50%);
    padding:1em;
    z-index:500;
}

#linkexpired {
 display:none;
}

.safetynoticecontainer {
 width:100%;
 height: 100%;
 position: absolute;
 background-color: rgba(128, 128, 128, 0.5);
 z-index: 600;
 color:#000;
}

.safetynoticecontainer .safetynotice {
 width:80%;
 margin:2rem auto;
 background-color:#fff;
 text-align:center;
 padding:2rem;
 border-radius:1rem;
}

.safetynoticecontainer .safetynotice .heading {
 font-size:120%;
 font-weight:bold;
 margin:1rem 0;
}

.safetynoticecontainer .safetynotice button {
 color:#fff;
 background-color:#006ba6;
 width:100%;
 border-radius:1rem;
 padding:.3rem;
 border:none;
 margin: 1rem auto;
}

div.loading {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500;
    background-color: #fff;
}

div.loading.img {
    background-image: url(images/294683.gif);
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 1rem;
}

div.message-container span.message {
 padding:2px 4px;
 font-size:14px;
 border-radius:5px;
 display:none;
 border:1px solid #006ba6;
}

.playcoughsample {
 cursor:pointer;
}

.easydif td {
 width:19%;
}

.text-bg-info {
 padding: 0 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
}

h1 {
	font-size: 1.4rem;
	margin-bottom: 1.15rem;
}

h2 {
	font-size: 1.75rem;
	font-weight: 400;
}

h3 {
	font-size: 1.5em;
	margin-bottom: 1rem;
}

h4 {
	font-size: 1.25em;
}

h5 {
	font-size: 1rem;
	font-weight: 500;
	color: #29abe2;
	text-transform: uppercase;
}

p {
	margin-bottom: 1rem;
}

.small, small {
    font-size: 85%;
}

.large {
    font-size: 150%;
}

.grey {
	color: #6d6e71;
}

.white {
	color: #fff;
}

.blue {
	color: #006ba6;
}

.timer {
	color: #006ba6;
	font-size: 2.5rem;
}

a {
	color: #006ba6;
}

a:hover, a:focus {
	text-decoration: none;
}

ol, ul {
    padding-left: 1rem;
    margin-bottom: 1rem;
    font-size: 90%;
}

li {
	margin-bottom: 0.5rem;
}

.list-group-item {
    padding: 0.75rem 1rem;
}

hr {
	margin-top: 2rem;
	margin-bottom: 2rem;
	background-color: #1f7db1;
}

.red_dot {
	background-color: red;
	height: 20px;
	width: 20px;
	border-radius: 1.5rem;
	margin-right: 0.5rem;
	display: inline-block;
}

/* Buttons */
.btn {
	text-decoration: none;
	border: none;
}

.btn-primary,.btn-primary:focus {
	color: #fff;
    background-color: #006ba6;
	width: 100%;
	border-radius: 5rem;
}

.btn-primary:hover {
    background-color: #006ba6;
	opacity: 0.8;
}

.btn-primary:disabled,
.btn-primary:disabled:hover,
.btn-primary:disabled:active,
.btn-primary:disabled:focus {
	pointer-events: none;
	background-color: #006ba6;
	opacity: 0.65;
	box-shadow: none;
}

.btn-link {
	color: #006ba6;
	padding: 0;
	font-weight: 500;
	text-decoration: none;
}

.btn-link:hover, .btn-link:focus {
	opacity: 0.8;
}

.btn-info {
	background-color: #f6925a;
	color: #fff;
	border-radius: 3rem;
	padding: 0 0.55rem;
}

.btn-info:hover, .btn-info:focus {
	background-color: #f6925a;
	color: #fff;
	opacity: 0.8;
}

/* Logo */
.logo {
	margin-top: 1rem;
	margin-bottom: 2rem;
	max-width: 250px;
	max-height: 50px;
	width: auto;
	height: auto;
}

/* Off Canvas Nav */
.offcanvas {
	width: 90%;
	max-width: 350px;
}

.nav-link {
	color: #191919;
	border-bottom: #bcbcbc 1px solid;
}

.offcanvas .logo {
	margin-top: 0;
	margin-bottom: 0;
	max-width: 250px;
	max-height: 50px;
}

.nav_button {
	position: absolute;
	right: 1rem;
	top: 16px;
	padding: 0;
	background: none;
	border: none;
}

.offcanvas-header {
	align-items: flex-start;
}

.nav_button span {
  display: block;
  margin-bottom: 5px;
  height: 3px;
  width: 30px;
  background-color: #333;
}

.nav_button:hover span {
	opacity: 0.8;
}

/* Forms */
.form-control, .form-select {
	border-radius: 1.5rem;
}

.form-label {
    margin-bottom: 0.25rem;
}

#languagelinks ul {list-style:none;}
#languagelinks li {display:inline;padding-right:1rem;}
#languagelinks span {color:#888;}

.needle-container {
   position: relative;
   margin: 20px auto;
}

.needle {
   position: absolute;
   left: 50%;
   bottom:1.6rem;
   width: 4px;
   height: 120px;
   background-color: #265E94;
   transform-origin: bottom;
   transform: translateX(-50%) rotate(-90deg);
   transition: transform 0.2s ease;
}

img.countryofmanufacture {height:36px; margin-bottom:1rem;}
img.translated {height:36px; margin-bottom:1rem;}

#needmore h1,
#timedout1 h1,
#timedout2 h1 {font-size:1.8rem; font-weight:bold;}

#needmore .headline,
#timedout1 .headline,
#timedout2 .headline,
#duration .headline {font-size:1.4rem; font-weight:bold;}

#success-screen-slide .headline {font-weight:bold; text-align: left; margin: 2rem 0 1rem 1rem;}

/* Override Bootstrap 5 carousel default (0.6s) for faster screen transitions */
.carousel-item {
  transition-duration: 0.3s;
}

#timedout2 h2 {font-size:125%; font-weight:bold;}

.ci-versions {
    margin-top: 0.5rem;
	border-top: 1px solid #ddd;
}

.ci-version-row {
    padding:.5rem 0;
	border-bottom: 1px solid #ddd;
	position: relative;
}

.ci-version-row span {
	position: absolute;
	right: 0;
	color: #000;
}

.btn-copy-manifest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    border: 1px solid #bcbcbc;
    border-radius: 5rem;
    background-color: #fff;
    color: #191919;
    padding: 0.5rem;
    font-weight: 500;
    margin-top: 1rem;
}

.btn-copy-manifest:hover {
    background-color: #f5f5f5;
}

.btn-copy-manifest:disabled {
    opacity: 0.8;
    pointer-events: none;
}

/* ===========================================================================
   AHAI-284 — Language selector (Variant F: landing dropdown, Variant D: menu
   card + sub-screen picker). Colors/spacing per ticket section 5; brand blue
   #116AA6 is a value specific to this component's approved mockup.
   =========================================================================== */

/* --- Variant F: landing-screen dropdown --- */

.lang-f-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lang-f-select {
    position: relative;
}

.lang-f-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 0.75rem;
    border: 1px solid #BFBFBF;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 170ms ease, box-shadow 170ms ease;
}

#lang-f-row.lang-f-open .lang-f-trigger {
    border-color: #116AA6;
    box-shadow: 0 0 0 3px rgba(17, 106, 166, 0.12);
}

.lang-f-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-f-flag {
    font-size: 22px;
    line-height: 1;
}

.lang-f-name {
    font-weight: 500;
    color: #191919;
}

.lang-f-chevron {
    display: flex;
    color: #979797;
    transition: transform 170ms ease;
}

#lang-f-row.lang-f-open .lang-f-chevron {
    transform: rotate(180deg);
}

/* position: fixed (not absolute) — #lang-f-row lives inside .carousel-inner, which clips
   overflow for slide transitions. An absolutely-positioned panel below the trigger falls
   outside that clip box and never paints. top/left/width/max-height are set inline by
   positionFPanel() in app.js, computed from the trigger's viewport position at open-time. */
.lang-f-panel {
    position: fixed;
    z-index: 1050;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #BFBFBF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-height: 60vh;
    overflow-y: auto;
}

/* --- Shared row styling: F's panel options and D's picker rows --- */

.lang-f-option,
.lang-d-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 150ms ease;
}

.lang-f-option:last-child,
.lang-d-option:last-child {
    border-bottom: none;
}

.lang-f-option:hover,
.lang-d-option:hover {
    background-color: #f5f5f5;
}

.lang-f-option.active,
.lang-d-option.active {
    background-color: rgba(17, 106, 166, 0.06);
}

.lang-f-option.active .lang-row-name,
.lang-d-option.active .lang-row-name {
    color: #116AA6;
    font-weight: 700;
}

.lang-row-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-row-name {
    flex: 1;
    color: #191919;
}

.lang-row-check {
    display: none;
    color: #116AA6;
    font-weight: 700;
}

.lang-f-option.active .lang-row-check,
.lang-d-option.active .lang-row-check {
    display: inline;
}

/* --- Variant D: hamburger-menu card + sub-screen picker --- */

.lang-d-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background-color: rgba(17, 106, 166, 0.06);
    border: 1.5px solid #116AA6;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
}

.lang-d-card-icon,
.lang-d-card-chevron {
    display: flex;
    flex: none;
    color: #116AA6;
}

.lang-d-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lang-d-card-label {
    font-size: 12px;
    color: #767676;
}

.lang-d-card-current {
    font-size: 16px;
    font-weight: 700;
    color: #191919;
}

.lang-d-picker-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lang-d-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: #116AA6;
    cursor: pointer;
}

.lang-d-picker-title {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
}

.lang-d-picker-helper {
    color: #767676;
    margin-bottom: 0.5rem;
}

.lang-d-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-d-option {
    padding: 18px 0.25rem;
}