html {
  height: 100%;
  padding: 0;
  margin: 0;
}

:root {
  --admin: #ff5d38;
  --admin-fade: #ff5d389d;
  --accent: #6485ff;
  --accent-light: #839dff;
  --accent-dark: #2d3f8e;
  --accent-fade: #6485ff6c;
}

:root {
  --admin: #ff5d38;
  --admin-fade: #ff5d389d;
  --accent: #2ecc70;
  --accent-fade: #2ecc706c;
  --accent-light: #2ecc70;
  --accent-dark: #2ecc70;
}

:root {
  --admin: #ff5d38;
  --admin-fade: #ff5d389d;
  --accent: #1ea860;
  --accent-fade: #2ecc7088;
  --accent-light: #20ab62;
  --accent-dark: #0c8a48;
  --accent-gradient: linear-gradient(135deg,rgba(32, 171, 98, 1) 0%, rgba(9, 133, 68, 1) 50%);
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  padding: 0;
  margin: 0;
}

html,
body {
  min-height: 100%;
}

main {
    flex: 1; /* takes remaining space */
    width: 100%;
  }

  footer {
    background: #222;
    color: white;
    padding: 1rem;
    text-align: center;
  }

.no-border {
  border: none !important;
}

.flex {
  display: flex;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.space-around {
  justify-content: space-around;
}
.space-between {
  justify-content: space-between;
}
.space-evenly {
  justify-content: space-evenly;
}
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.align-end {
  align-items: flex-end;
}
.wrap {
  flex-wrap: wrap;
}
.justify-center {
  justify-content: center;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-space-between {
  justify-content: space-between;
}
.justify-space-around {
  justify-content: space-around;
}
.align-items-center {
  align-items: center;
}
.align-items-start {
  align-items: flex-start;
}
.align-items-end {
  align-items: flex-end;
}


.dialog-page main {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 60px 40px;
  margin-top: 80px;
}

.control-page main {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 40px 60px 40px;
}

.docs-page main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 40px 60px 40px;
  margin-top: 20px;
}

.admin-page main {
  margin: 0 auto;
  padding: 110px 40px 60px 40px;
  margin-top: 40px;
}

.top-nav-primary {
  min-height:60px;
  position:relative;
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:center;
  border-top:1px solid #d9d9d9;
  background-color: #fff;
}

.top-nav-secondary {
  min-height:50px;
  position:relative;
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:center;
  border-top:1px solid #d9d9d9;
  background-color: #f1f1f1;
}

label {
  display: block;
  margin-bottom: 5px;
}

input, textarea {
  padding: 6px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* dropdown */
select {
  padding: 6px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* make dropdown items larger */
select option {
  font-size: 16px;
}

/* .bg-gradient {
  background: #2A7B9B;
  background: linear-gradient(130deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 75%, rgba(169, 222, 113, 1) 100%) fixed;
} */

.bg-gradient {
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, repeat;
  background-size: cover, auto;
  background-position: 0 0;
  background-image:
    url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='none' viewBox='0 0 1 1' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'%3E%3C/stop%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='1'%3E%3C/stop%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='1' height='1' fill='url(%23g)'%3E%3C/rect%3E%3C/mask%3E%3ClinearGradient id='a' gradientTransform='rotate(90)'%3E%3Cstop offset='0' stop-color='%23e4ae98'%3E%3C/stop%3E%3Cstop offset='1' stop-color='%239ea3af'%3E%3C/stop%3E%3C/linearGradient%3E%3ClinearGradient id='b' gradientTransform='rotate(90)'%3E%3Cstop offset='0' stop-color='%2398b9c3'%3E%3C/stop%3E%3Cstop offset='1' stop-color='%23aedcdc'%3E%3C/stop%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='0' width='1' height='1' fill='url(%23a)' mask='url(%23m)'%3E%3C/rect%3E%3Crect x='0' y='0' width='1' height='1' fill='url(%23b)' mask='url(%23m)' transform='translate(1,1) rotate(180)'%3E%3C/rect%3E%3C/svg%3E "),
    url('/img/noise.png');
}

.gradient-strong {
  background-image:
    url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='none' viewBox='0 0 1 1' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'%3E%3C/stop%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='1'%3E%3C/stop%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='1' height='1' fill='url(%23g)'%3E%3C/rect%3E%3C/mask%3E%3ClinearGradient id='a' gradientTransform='rotate(90)'%3E%3Cstop offset='0' stop-color='%23e4ae98'%3E%3C/stop%3E%3Cstop offset='1' stop-color='%239ea3af'%3E%3C/stop%3E%3C/linearGradient%3E%3ClinearGradient id='b' gradientTransform='rotate(90)'%3E%3Cstop offset='0' stop-color='%2398b9c3'%3E%3C/stop%3E%3Cstop offset='1' stop-color='%23aedcdc'%3E%3C/stop%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='0' width='1' height='1' fill='url(%23a)' mask='url(%23m)'%3E%3C/rect%3E%3Crect x='0' y='0' width='1' height='1' fill='url(%23b)' mask='url(%23m)' transform='translate(1,1) rotate(180)'%3E%3C/rect%3E%3C/svg%3E "),
    url('/img/noise.png');
}

.bg-tiles {
  background: #2A7B9B;
  background:
    url('/img/bg-tile.png') repeat,
    linear-gradient(130deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 75%, rgba(169, 222, 113, 1) 100%) fixed;
}

.admin-page {
  background: #ff5d38;
  background:
    url('/img/bg-tile.png') repeat,
    linear-gradient(90deg, rgba(255, 93, 56, 1) 50%, rgba(252, 151, 69, 1) 100%) fixed;
}

.center {
  text-align: center !important
}

.panel {
  background-color: #fff;
  padding: 35px 50px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.inset {
box-shadow: inset 0 2px 5px 0 rgba(0, 0, 0, 0.16),
            inset 0 2px 10px 0 rgba(0, 0, 0, 0.12);

}

.glass {
  background-color: #ffffff88;
}

a {
  color: #2c9658!important;
}

nav a:after {
  content: '';
  display: block;
  margin: auto;
  height: 2px;
  width: 0;
  background: #2c9658;
  transition: width 0.25s ease, gray 0.25s ease;
}
nav a:hover:after,
nav a.underline:after
{
  width:100%;
}

.side-nav a {
  position: relative;
  display: inline-block; /* Ensures the <a> only takes up the text width */
  text-decoration: none;
}

.side-nav a:after, .accordion label span:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #2c9658;
  transition: width 0.25s ease;
}

.side-nav a:hover:after,
.side-nav a.underline:after,
.accordion label span:hover:after
{
  width:100%;
}

.side-nav ul {
  padding-left: 1.5em;
}
.side-nav  > ul {
  padding-left: 0px;
}
.side-nav ul {
  list-style-type: square; /* First level: black squares */
}
.side-nav ul ul {
  list-style-type: disc; /* Second level: black circles */
}

.admin-page a {
  color: #ff5d38!important;
}

.admin-page nav a:after {
  background: #ff5d38;
}

ul {
  line-height: 1.5;
}

section h1 {
  font-size: 34px;
}

section h2 {
  font-size: 24px;
}

h1,
h2,
h3 {
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: 8px;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

pre {
  background-color: #f4f4f4;
  padding: 10px;
  border: 1px solid #ccc;
  overflow-x: auto;
  line-height: 1.5;
}

code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
}

.example-response {
  background-color: #f9f9f9;
  padding: 10px;
  border-left: 5px solid #ccc;
}

.accent {
  color: #fff;
  /* ancient */
  background: #ee5a15;
  /* legacy  */
  background: -webkit-linear-gradient(to left, #ec4e1e, #ff6a13);
  /* modern  */
  background: linear-gradient(130deg, #ec361e, #ff6a13);
}

.btn {
  border: 1px solid;
  overflow: hidden;
  position: relative;
  font-family: 'open sans', sans-serif;
  font-weight: bolder;
  color: white;
  padding: 6px 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn:after {
  background: white;
  content: "";
  height: 155px;
  left: -75px;
  opacity: 0.2;
  position: absolute;
  top: -50px;
  transform: rotate(35deg);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  width: 50px;
  z-index: 10;
}

.btn:hover:after {
  left: 120%;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.btn span {
  z-index: 20;
}

.round-small {
  border-radius: 2px
}

.round,
.round-medium {
  border-radius: 4px
}

.round-large {
  border-radius: 8px
}

.round-xlarge {
  border-radius: 16px
}

.round-xxlarge {
  border-radius: 32px
}

progress {
  width: 100%;
  height: 10px;
  border-radius: 6px;
  appearance: none;
  border: none;
  background-color: transparent; /* Prevent fallback background */
}

progress::-webkit-progress-bar {
  background-color: #f1f1f1;
  border-radius: 6px;
  overflow: hidden;
}

progress::-webkit-progress-value {
  background-color: #4CAF50;
  border-radius: 6px 0 0 6px;
}


/* fit to width */
.markdown img {
	box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
	border-radius:8px;
  border: 1px solid #ccc;
  padding: 1px;
  max-width: 100%;
  height: auto;
}

.pulse {
  animation:
    pulsing 2s cubic-bezier(0.4, 0, 0, 1) 1,
    blink-bg 0.5s ease-in-out 2;
}

@keyframes pulsing {
  0%   { box-shadow: 0 0 0 0 #0db95d; }
  100% { box-shadow: 0 0 0 12px #0a874500; }
}

@keyframes blink-bg {
  0%, 100% { background-color: transparent; }
  50%      {
    background-color: var(--accent);
    border: 1px solid var(--accent-dark);
    color: #fff;
  }
}
