* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.0rem;
  background-color: #ededed;
  margin: 0;
  padding: 0;
  width: 100%;
  line-height: 1.4;
  color: #505050;
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto auto auto 1fr auto;
}


h1 {
  font-size: 1rem;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h1, h2, h3, h4 {
  color: #000;
  margin: 1em 0;
  line-height: 1.25;
}

a, summary {
  color: #216aed;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

pre, code {
  font-size: inherit;
  white-space: pre-wrap;
}

button, summary {
  cursor: pointer;
}

header.page {
  text-align: end;
  padding: 0 0 4em 0;
  background-color: #343a40;
  background-image: url("../img/eduVPN/logo-vpnrsub-2023.png");
  background-size: 300px 50px;
  background-repeat: no-repeat;
  background-position: 1em 1.5em;
  font-size: 90%;
}

header.page ul.languageSwitcher {
  font-size: 85%;
  margin: 0 0.5em;
  display: inline-block;
}

header.page ul.languageSwitcher li {
  display: inline-block;
}

header.page ul.languageSwitcher button, header.page form.logout button {
  border: 0;
  color: #fff;
  background-color: #343a40;
  padding: 0 0.5em;
}

header.page ul.languageSwitcher button:hover {
  background-color: #ed8b00;
  border-radius: 0.2em;
}

header.page form.logout button:hover {
  background-color: #dc3545;
  border-radius: 0.2em;
  text-decoration: underline;
}

header.page form.logout {
  font-size: 85%;
  display: inline-block;
  margin: 0 0em;
}

header.page form.logout button {
  margin: 0.25em;
  font-weight: bold;
}

nav {
  background-color: #fff;
  text-align: center;
}

nav ul {
  margin: 0em auto;
  display: block;
  padding: 0;
}

nav ul li {
  display: inline-block;
  padding: 0;
  margin: 0.5em 0;
}

nav ul li a {
  padding: 0.5em 1.5em;
  color: #ffffff;
  font-weight: bold;
}

nav ul li.active a {
  color: #ffffff;
  font-weight: bold;
  border-bottom: 2px solid #ed8b00;
}

nav ul li a:hover {
  background-color: #ed8b00;
  border-radius: 0.3em;
}

nav ul li.active a:hover {
  border-radius: 0;
  background-color: #ed8b00;
}

footer {
  font-size: 85%;
  background-color: #295c82;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer p {
  margin: 0;
  padding: 1em;
  text-align: center;
  color: #fff;
}

form.frm label {
  font-weight: bold;
  display: block;
  margin: 0.5em 0 0.3em 0;
}

input[type=checkbox] {
  margin-top: 1em;
}

input[type=checkbox] + label {
  display: inline;
  font-weight: normal;
}

form.frm {
  width: 100%;
}

form.frm button {
  border: 0;
  border-radius: 0.7em;
  color: #fff;
  background-color: #216aed;
  padding: 0.2em 0.5em;
  font-weight: bold;
  font-size: inherit;
}

form.frm button.warning {
  background-color: #ff9900;
}

form.frm button.success {
  background-color: #16a566;
}

form.frm button.error {
  background-color: #ed3415;
}

form.frm select, form.frm input[type=text], form.frm input[type=password], form.frm textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 0.5em;
  padding: 0.5em;
  display: block;
}

form.frm select {
  -webkit-appearance: none;
}

fieldset {
  border: 0;
  margin: 1em 0;
  padding: 0;
}

table.tbl {
  width: 100%;
  border: 1px solid #ededed;
  border-radius: 0.5em;
  margin: 1em 0;
  padding: 0.5em;
  font-size: 0.8rem;
}

ul li, ol li {
  margin: 0.25em;
}

table.tbl th {
  text-align: start;
  vertical-align: top;
}

table.tbl th.wireguard {
  color: #88171a;
  text-align: center;
  border-bottom: 1px solid #88171a;
}

table.tbl th.openvpn {
  color: #ed7f22;
  text-align: center;
  border-bottom: 1px solid #ed7f22;
}

table.tbl th.issues {
  color: #ff9900;
  text-align: center;
  border-bottom: 1px solid #ff9900;
}

table.tbl td.text-right {
  text-align: end;
}

table.tbl td, table.tbl th {
  padding: 0.2em;
}

table.tbl ul {
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
}

table.tbl li {
  padding: 0;
  margin-left: 0;
}

table.tbl li:first-child {
  margin-top: 0;
}

table.tbl dl, table.tbl dt {
  margin: 0;
  padding: 0;
}

table.tbl dd {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

table.tbl form.frm {
  margin: 0;
}

table.tbl form.frm button {
  margin: 0;
}

main {
  width: 100%;
  max-width: 60rem;
  background-color: #fff;
  padding: 0.5em 1em;
}

header.main h1 {
  background-color: #888;
  color: #fff;
  text-align: center;
  padding: 0.75em;
  margin: 0;
}

p.filter {
  text-align: end;
  font-size: small;
  font-weight: bold;
}

p.warning, p.error, p.plain {
  padding: 1em 1.5em;
  border-radius: 0.5em;
}

p.plain {
  color: #505050;
  background-color: #ededed;
}

span.plain, span.success, span.error, span.warning {
  padding: 0.5em;
  margin: 0.25em;
  border-radius: 0.5em;
  font-weight: bold;
  font-size: 90%;
  display: inline-block;
}

span.plain {
  color: #505050;
  background-color: #ededed;
}

span.success {
  color: #fff;
  background-color: #16a566;
}

span.error {
  color: #fff;
  background-color: #ed3415;
}

span.warning {
  color: #fff;
  background-color: #ff9900;
}

span.openvpn {
  background-color: #ed7f22;
  color: #fff;
}

span.wireguard {
  background-color: #88171a;
  color: white;
}

p.warning {
  border: 1px solid #ff9900;
  color: #ff9900;
}

p.error {
  border: 1px solid #ed3415;
  color: #ed3415;
}

main div.auth {
  margin: 0 auto;
  max-width: 20em;
}

main div.appAuth {
  margin: 0 auto;
  max-width: 30em;
}

dl dt {
  margin: 0.5em 0;
  display: block;
  font-weight: bold;
}

figcaption {
  font-size: 85%;
  text-align: center;
  font-style: italic;
  padding: 1em;
}

svg.appUsage {
  display: block;
  margin: 0 auto;
  max-width: 40%;
}

ul.toc {
  padding: 0 1em;
  list-style: none;
}

ul.appUsage {
  list-style: none;
  padding: 0;
}

ul.appUsage li {
  display: inline-block;
  margin: 0;
}

.pieLegend {
  color: #fff;
  font-weight: bold;
  padding: 0.5em;
  margin: 0.5em;
  display: inline-block;
  border-radius: 1em;
}

/* @see https://learnui.design/tools/data-color-picker.html#palette */
.pieColor1 {
  fill: #003f5c;
  background-color: #003f5c;
}

.pieColor2 {
  fill: #2f4b7c;
  background-color: #2f4b7c;
}

.pieColor3 {
  fill: #665191;
  background-color: #665191;
}

.pieColor4 {
  fill: #a05195;
  background-color: #a05195;
}

.pieColor5 {
  fill: #d45087;
  background-color: #d45087;
}

.pieColor6 {
  fill: #f95d6a;
  background-color: #f95d6a;
}

.pieColor7 {
  fill: #ff7c43;
  background-color: #ff7c43;
}

.pieColor8 {
  fill: #ffa600;
  background-color: #ffa600;
}

blockquote {
  margin: 0;
  padding: 1em;
  background-color: #ededed;
  border-left: 0.2em solid #888;
  border-radius: 0 0.5em 0.5em 0;
}

blockquote:lang(ar-MA) {
  margin-right: 0;
  border-left: 0;
  border-right: 0.2em solid #888;
  border-radius: 0.5em 0 0 0.5em;
}

div.appApproval {
  background-color: #ededed;
  display: flex;
  align-items: center;
  padding: 1em 0;
  justify-content: space-evenly;
  border-radius: 0.5em;
  flex-wrap: wrap;
  margin: 1em 0;
}

div.appApproval span {
  font-size: 1.25rem;
  color: #000;
  display: inline-block;
  background-image: url("../img/icon-Unknown.png");
  background-repeat: no-repeat;
  background-size: 64px 64px;
  background-position: 50% 1em;
  min-height: 64px;
  text-align: center;
  padding: calc(64px + 1.5em) 0.5em 1em 0.5em;
  font-weight: bold;
}

div.appApproval span[class^="org.letsconnect-vpn.app"] {
  background-image: url("../img/icon-LC.png");
}

div.appApproval span[class^="org.eduvpn.app"] {
  background-image: url("../img/icon-eduVPN.png");
}

div.appApproval form.frm {
  display: inline-block;
  width: initial;
  padding: 0.5em;
}

p.lead {
  text-align: center;
  padding: 0em;
  font-size: 1.75rem;
  color: #888;
  font-style: italic;
}

table.stats {
  border-collapse: separate;
  border-spacing: 3px 0;
  width: 85%;
}

table.stats td, table.stats th {
  width: 1em;
  text-align: center;
  line-height: 0.5;
}

table.stats tbody th span, table.stats tfoot th span {
  writing-mode: vertical-rl;
  font-weight: normal;
  white-space: nowrap;
  line-height: 1em;
  padding-top: 0.5em;
  font-size: 85%;
}

table.stats tbody th span {
  writing-mode: vertical-rl;
}

table.stats tbody td:not(:empty) {
  background-color: #9a2e00;
  color: transparent;
}

table.stats th.index {
  box-sizing: content-box;
  vertical-align: top;
  padding: 0 0.5em;
  border-top: 1px solid #888;
}

table.stats th.index span {
  font-weight: bold;
}

@media screen and (min-width: 800px) {
  main {
    margin: -3em auto 0 auto;
    padding: 1em 2em;
    border-radius: 1em 1em 0 0;
  }
  header.main h1 {
    padding: 0.75em 0 2em 0;
  }
}
