/* ----------------Reset---------------- */
html,
body,
menu,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
p,
pre,
a,
em,
img,
strong,
sub,
sup,
center,
ol,
ul,
li,
form,
label,
table,
caption,
footer {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
footer,
nav {
  display: block;
}
:root {
  --colour1: #2a97c6;
  --colour1light: #c5e0f4;
  --colour1dark: #103d75;
  --colour2: #6bb725;
  --colour2light: #e6fad3;
  --colour2dark:#436d1b;
  --colour3: goldenrod;
  --colour3half: rgba(218, 165, 32, 0.5);
  --colour4: #f26430;
  --colour5: rgb(195, 66, 63);
  --colour6: #a848a8;
  --black: #1e1f26;
  --halfblack: rgba(0, 0, 0, 0.5);
  --white: #fff;
  --lightwhite: rgba(255, 255, 255, 0.1);
  --dullwhite: rgba(255, 255, 255, 0.8);
  --grey: #c4c3c3;
  --lightgrey: #f7f2f1;
}
body {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  font-family: "Comfortaa", sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  align-content: start;
  background-color: var(--colour1);
  background: url("https://storage.googleapis.com/medbugs/questback.jpg");
  background-size: cover;
  background-attachment: fixed;
}
.light {
  background: var(--white);
  color: var(--black);
}
.dark {
  background: var(--black);
  color: var(--dullwhite);
}
.l1 {
  fill: var(--white);
  stroke-width: 1.6;
}
.l2 {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3.1;
  stroke: var(--white);
}
.l3 {
  stroke-width: 1.6;
}
sub {
  vertical-align: sub;
  font-size: smaller;
}
sup {
  vertical-align: super;
  font-size: smaller;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: button;
  -webkit-appearance: button;
  transition: all 1s ease;
  min-height: 40px;
  height: auto;
  min-width: 80px;
  max-width: 300px;
  font-weight: 700;
  font-size: 1.2em;
  padding: 12px 20px;
  margin: 6px 3px;
  background: var(--colour1);
  color: var(--white);
  border: 2px solid;
  cursor: pointer;
  border-radius: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}
button:hover {
  background: var(--colour2);
  color: var(--white);
  border: 2px dashed;
}
input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  display: inline-block;
  width: 100%;
  height: 50px;
  padding: 0.75rem 1rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  background-clip: padding-box;
  border: 2px dashed var(--colour1);
  box-sizing: border-box;
  border-radius: 60px;
}
input[type="range"] {
  box-shadow: none;
  border: none;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
select {
  font-size: 1.2em;
  padding: 6px;
  margin: 6px;
  width: 100%;
  border-radius: 60px;
}
textarea {
  overflow: auto;
  resize: vertical;
  width: 90%;
}
img,
svg,
video {
  vertical-align: middle;
}
img {
  max-width: 100%;
}
svg {
  width: 100%;
  height: auto;
}
:focus,
input[type="text"]:focus,
button:focus,
a:focus {
  outline: 0;
}
/* ----------------Typography---------------- */
h1,
h2,
h3,
h4,
h5 {
  width: 100%;
  break-inside: avoid;
}
h1,
h2 {
  font-size: 2.3em;
  padding: 40px 50px 6px 70px;
  border-bottom: 1px solid var(--grey)
}

h2 {
  font-size: 2em;
}
#tag-info h2 {
  padding: 6px 30px;

}
h3 {
  font-size: 1.7em;
  font-weight: 800;
  margin-bottom: 1em;
}
p {
  margin-bottom: 0.5rem;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: var(--colour1);
  font-weight: 400;
  letter-spacing: 1px;
}
header a {
  color: var(--dullwhite);
  font-weight:bold;
}
b,
strong {
  font-weight: 800;
}
ul,
ol {
  margin: 0 0 20px 20px;
}
/* ----------------Containers---------------- */
main {
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  max-height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.flex,
.flex600, .flex-responsive {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
}
.flex-center {
  display: flex;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  justify-content: space-around;
}
.container {
  width: 100%;
  max-width:1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.container-small {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 20px;
  border: 2px solid var(--grey);
}
.bordered-box {
  border-radius: 20px;
  border: 2px solid var(--grey);
  background: var(--white);
  color: var(--black);
  padding: 40px;
}
.half {
  width: 50%;
}
.quarter {
  width: 25%;
  min-width: 300px;
  flex-grow: 1;
}
.fill {
  min-height: 100vh;
  width: 100%;
}
.pad {
  padding: 20px;
}
.pad-xl {
  padding: 40px;
}
.pad-xxl {
  padding: 3em 5em;
}
.spoilertitle {
  padding: 20px 20px 6px 40px;
  cursor: pointer;
  border-top: 1px dashed var(--grey);
  width: 100%;
}
.spoilertitle::before {
  content: "\2B24";
  padding: 0 16px 0 0;
  float: left;
  margin-left: 3px;
  font-size: 0.7em;
}
.spoileropen::before {
  content: "\2B58";
  margin-left: 3px;
}
.spoiler {
  max-width: 100%;
  overflow: hidden;
}
.pill-container {
  border: 2px solid var(--colour1light);
  border-radius: 400px;
  overflow: hidden;
  background: var(--white);
  padding: 0;
}
.tag {
  background: var(--colour2);
  border: 1.6px solid var(--grey);
  color: var(--dullwhite);
  padding: 6px 20px;
  border-radius: 60px;
  display: inline-block;
  margin: 3px;
  font-weight: 400;
}
.tag-imp-5 {
    background: var(--colour3);
}
.tag-qual-1, .tag-qual-2 {
  text-decoration: line-through;
}
#secondary {
  color: var(--dullwhite);
  background: var(--black);
  max-height: 100vh;
  overflow-y: auto;
  width: 400px;
  z-index: 99;
  position: relative;
  padding-right: 12px;  
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: space-between;
}
header {
  display: flex;
  width:100%;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 0;
  border-radius: 0 0 20px 0;
  border-right: 2px dashed var(--colour1light);
  border-bottom: 2px dashed var(--colour1light);
  background: var(--colour1);
  color: var(--dullwhite);
}
#logo {
  width: 30px;
  position: absolute;
  left: 12px;
}
#breadcrumbs {
  padding-left: 46px;
}
#main-toggle {
  font-size: 1.4em;
  padding-right: 30px;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 0;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}
#logo:hover {
  animation: pulse 500ms infinite;
  transition-timing-function: ease;
  animation-direction: alternate;
}
#breadcrumbs .menu-item {
  display: inline-block;
  border: none;
  padding: 0;
  color: var(--white);
}
menu {
  width: 100%;
  overflow: hidden;
  margin: 12px 0;
  overflow: hidden;
  font-family: "Comfortaa";
  font-size: 0.8em;
  padding: 18px 0;
  position: relative;
}
/* ----------------Footer ------------------- */
footer {
  width:100%;
  justify-content: center;
  background: var(--colour2);
  border-radius: 0 20px 0 0;
  margin-top: 12px;
  border: 2px dashed var(--grey);
  border-width: 2px 2px 0 0;
  opacity: 0.8;
  color: var(--white);
  position: relative;
    display: flex; 
    align-items: stretch;
    justify-content: space-between;
}
footer form {
  display:flex;
}
footer a {
  padding: 12px;
  font-size: 0.8em;
  color: var(--white);
}
#avatar {
  width: 50px;
  border-right: 1px solid var(--grey);
  overflow: hidden;
  display: inline-block;
  padding:6px;
}
#avatar img {
  width: 100%;
}
#logout,
#profile {
  background: none;
  padding: 0;
  margin: 0;
  border: none;
  font-size: 1em;
}
#licence svg {
  fill-rule: evenodd;
  clip-rule: evenodd;
  width: 30px;
}
#licence .l1 {
  stroke: var(--grey);
  transition: 1s all ease;
  stroke-width: 0.5px;
  opacity: 0.5;
}
#licence:hover .l1 {
  opacity: 1;
}

/* ----------------Stars------------------- */
.stars {
  display: flex;
}
.star {
  font-size: 2.5em;
  color: var(--black);
  cursor: pointer;
  opacity: 0.4;
  display: block;
  padding: 6px;
  text-align: center;
  transition: all 1s ease;
  max-width: 50px;
}
.star-active,
.star:hover {
  opacity: 1;
}
/*-----------------Search ---------------------*/
.search-icon {
  position: absolute;
  left: 10px;
  fill: var(--colour1);
  width: 26px;
}
.autocomplete .flex {
  align-items: center;
}
.autocomplete .search {
  padding-left: 40px;
}
/* ---------------Tiles------------------- */
.tiles {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.tile {
  border-radius: 20px;
  color: var(--dullwhite);
  overflow: hidden;
  position: relative;
  flex-grow: 1;
  transition: 1s all ease;
  border: 2px solid var(--grey);
  background: var(--black);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: 6px;
}
.tile:hover {
  border: 2px dashed var(--colour2light);
}
.tile-image {
  position: relative;
  min-height: 150px;
  width: 100%;
}
.tile-image svg {
  position: absolute;
  bottom: -30px;
  right: 10px;
  width: 50px;
}
.tile-title {
  padding: 12px 60px 12px 20px;
  margin: 0 !important;
  font-size: 1em;
  min-height: 80px;
  text-align: left;
  width: 100%;
  position: relative;
  font-family: monospace;
}
.tile a {
  color: var(--dullwhite);
  width: 100%;
}
.draft {
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
/*-----------------Helpers---------------*/
.hidden {
  display: none !important;
}
.visible {
  display: block !important;
}
.clearfix:after {
  clear: both;
}
.mobile-show {
  display: none;
}
/*-----------------Scrollbar------------------*/
/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: var(--colour) var(--white);
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 12px;
}
*::-webkit-scrollbar-track {
  margin-top: 66px;
}
*::-webkit-scrollbar-thumb {
  background-color: var(--lightwhite);
  border-radius: 20px;
  border: 2px solid var(--lightwhite);
}
/* ----------------Media---------------- */
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (max-width: 1200px) {
  body,
  main,
  #secondary,
  .flex-responsive,
  .quarter,
  .container {
    min-height: 0;
    height: auto;
    max-height: none;
    position: relative;
    overflow: visible;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  #secondary {
    border: 0;
  }
  .half {
    width: 100%;
    max-width: 100%;
  }
  .fill {
    min-height: 80vh;
  }
  .quarter {
    width: 50%;
  }
  .pad-xl {
    padding: 20px;
  }
  .pad-xxl {
    padding: 2em;
  }
  .mobile-hide {
    display: none;
  }
  .mobile-show,
  .mobile-menu {
    display: inline-block;
  }
  header, menu, footer {
    flex-wrap: wrap;
    padding-right: 0;
    border-radius: 0;
    border: none;
    margin:0;
  }
  .pill-container {
    border-radius: 20px;
    overflow: hidden;
  }
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
  .tile a,
  .tiles {
    display: flex;
    flex-wrap: wrap;
  }
  .tile-image {
    min-width: 75px;
    min-height: 80px;
  }
  .tile-title {
    min-height: 40px;
    font-size: 0.8em;
  }
  .tile-image svg {
    display: none;
  }
  .flex600 {
    min-height: 0;
    height: auto;
    max-height: none;
    position: relative;
    overflow: visible;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    overflow: visible;
    max-height: auto;
    height: auto;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href^="#"]:after {
    content: "";
  }
  main {
    display: block !important;
    width: 100%;
    min-height: 0 !important;
    max-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  #secondary,
  .no-print {
    display: none !important;
  }
  h1 {
    padding-bottom: 6px !important;
    margin-bottom: 0 !important;
  }
  .pad-xl {
    padding: 6px !important;
  }
  .l1 {
    fill: black !important;
  }
  .l2 {
    stroke: black !important;
  }
}
