body {
  background: #141829;
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
html {
height: 100%;
}

/* =================== */
/* Content Page Layout */
/* =================== */
.main-container {
font-family: Global User Interface,sans-serif; 
color: #ffffff;
font-size: 1em;
/* padding: 5vh; */
display: flex;
flex-direction: column;
justify-content: space-between;
flex: 1 1 auto;
}

.content-container.patient-consent {
font-size: 0.75em;
}

.content-container {
margin-top: 30px;
}

.bordered-main-container {
font-family: Global User Interface,sans-serif; 
color: #ffffff;
font-size: 1em;
padding: 5vh;
display: flex;
flex-direction: column;
justify-content: space-between;
flex: 1 1 auto;
}

.footer {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  background:  #0b0e19; 
  font-family: Global User Interface,sans-serif; 
  color: #ffffff; 
  font-size: 0.8em; 
  padding: 1em;
  margin-top: auto;
}

@media (max-width: 1499px) {
.footer {
  grid-template-columns: 1fr 1fr;
}
}

@media (max-width: 711px) {
.footer {
  grid-template-columns: 1fr;
}
}

.footer-item {
  display: flex; 
  flex-direction: column; 
  align-items: center;
  min-width: 256px;
}

.footer-logo-wrapper {
justify-content: center;
}

.footer-logo {
width: 256px;
}

th, td { 
font-family: Global User Interface,sans-serif; 
color: #ffffff;
font-size: 1em;
text-align: left;
}

table {
border-collapse: separate; 
border: 1px solid #fff;
margin: 1em;
}

label {
/*max-width: fit-content;*/
display: block;
padding-left: 15px;
text-indent: -15px;
max-height: 50%
}

/* ======= */
/* Buttons */
/* ======= */

.button {
background-color: #163a66;
border: none;
width: 15em;
height: 2.5em;
color: white;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 1em;
cursor: pointer;
align-self: flex-end;
flex: 0 0 auto;
}

.button:hover {
border: 2px solid #fff;
}

@media (max-width: 420px) {
  .button {
      width: 100%;
      padding-bottom: env(safe-area-inset-bottom);
  }
  .main-container#main-container{
    min-height: 100vh;
  }
  .content-container {
    margin-top: 10px;
}
}

/* ===== */
/* Links */
/* ===== */

a {
color: white;
}
a:visited {
color: white;
}
a:hover, a:active, a:focus {
color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}


/* ========================== */
/* Other Design Checkboxes */
/* ========================== */
input.apple-switch {
vertical-align: bottom;
position: relative;
-webkit-appearance: none;
top: -1px;
outline: none;
width: 50px;
height: 30px;
background-color: #fff;
border: 1px solid #D9DADC;
border-radius: 50px;
box-shadow: inset -20px 0 0 0 #fff;
transition-duration: 200ms;
*overflow: hidden;
}

input.apple-switch:after {
content: "";
position: absolute;
top: 1px;
left: 1px;
background: transparent;
width: 26px;
height: 26px;
border-radius: 50%;
box-shadow: 2px 4px 6px rgba(0,0,0,0.2);
}

input.apple-switch:checked {
box-shadow: inset 20px 0 0 0 #4ed164;
border-color: #4ed164;
}

input.apple-switch:checked:after {
left: 20px;
box-shadow: -2px 4px 3px rgba(0,0,0,0.05);
}

/* ================= */
/* WebRTCTest Styles */
/* ================= */
.test-container{
display:flex;
flex-direction: row;
flex-wrap: wrap;
flex: 1 1 auto;
}

.test-panel{
width: 700px;
margin-left: auto;
margin-right: auto;
display:flex;
flex-direction: column;
justify-content: center;
}

.test-video{
width:100%;
-o-object-fit: contain;
object-fit: contain;
background-color: black;
margin-bottom: 1%;
}

.test-results{
border-style: solid;
border-radius: 10px;
border-color: lightslategray;
}

.test-results ul{
list-style-type: none;

display: flex;
flex-direction: column;
justify-content: space-between;
}

.test-results li{
margin: 10px;
}

/* Let icons flow right*/
.test-results span{
float:right;
}

.test-button{
margin-top: 5px;
margin-bottom: 50px;
align-self: flex-start;
}

.video-test-error{
color: var(--failure)
}

.loader {
display: none; /* initially dont show loaders */
border: 0.3em solid #f3f3f3; /* Light grey */
border-top: 0.3em solid #3498db; /* Blue */
border-radius: 50%;
height: 1em;
width: 1em;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.allow-camera-arrow {
width: 140px;
}

.allow-camera-text{
position: absolute;
bottom: 5px;
left: 150px;
}

.allow-camera-notice{
position: relative;
margin-left: 15%;
display:none;
}

.support-form {
display: none;
width: 100%;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}

.data-protection-officer-container {
  display: flex; 
  flex-direction: column;
}

.data-protection-officer-contact {
  margin-top: 1em;
}

/* Media Query for screens wider than 711px */
@media (min-width: 712px) {
  .data-protection-officer-container {
    flex-direction: row;
  }
  .data-protection-officer-contact {
    margin-left: 10em;
    margin-top: 0;
  }
}


/* Styles for the language dropdown */
.language-select {
  background-color: #141829;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 7px 35px 7px 10px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  width: auto;
  box-sizing: border-box;
}

.language-select:hover {
  filter: brightness(85%);
}

.language-select:focus {
  border-color: #141829;
}

/* Style for custom dropdown arrow */
.language-select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 18px top 50%;
  background-size: 15px;
}

/* Style for the language dropdown container */
.language-dropdown-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#udp-result, #tcp-result, #ipv6-result, #direct-result, #reflexive-result, #relay-result, #bandwidth-result{
  display: flex;
  align-items: center;
  justify-content: space-between;
 }

:root{
--failure: red;
--success: green;
--warning: yellow;
}
