@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/poppins-v20-latin-700.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  color: #131313;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  max-width: 100%;
  margin: 20px 20px 15px 20px;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

body.dashboard nav {
  margin: 20px 10px 15px 10px;
}

nav .branding .logo {
  font-weight: bold;
  text-decoration: none;
  font-size: 1.4em;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  line-height: 1;
}

nav .branding .logo img {
  vertical-align: -5px;
  height: 27px;
  width: 27px;
  margin: 0 3px 0 0;
}

nav .branding .logo:hover span,
nav .branding .logo:active span {
  text-decoration: underline;
  opacity: 0.9;
}

nav .actions {
  flex: 1;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
}

nav a:not(.btn) {
  font-size: 1.08em;
}

section {
  max-width: 100%;
  margin: 15px 20px 20px 20px;
  padding: 20px;
}

section.hero {
  text-align: center;
  border-radius: 20px;
  padding: 160px 20px 50px 20px;
}

section.hero h1 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  font-size: 3.6em;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 700;
  line-height: 150%;
}

section.hero h2 {
  font-weight: 500;
}

section.hero .owl {
  display: block;
  width: 140px;
  height: 180px;
  margin: 15px auto 20px auto;
}

section.hero button,
section.hero .btn {
  font-size: 1.35em;
  padding: 10px 15px;
  margin: 10px 0;
}
section.hero .fire {
  height: 1.2em;
  vertical-align: -10px;
  margin-left: -5px;
}
section.hero .text-bubble {
  position: relative;
  z-index: 2;
  margin: 20px;
  font-size: 0.85em;
}
section.hero .text-bubble::before {
  content: "";
  position: absolute;
  top: -65%;
  left: -65%;
  right: -65%;
  bottom: -65%;
  background-image: url('/text.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

button,
.btn {
  display: inline-block;
  color: #EBEBEB;
  background: #131313;
  border: none;
  padding: 8px 12px;
  margin: 5px 8px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

section.hero button,
section.hero .btn {
  color: white;
}

.settings button[type="submit"] {
  margin-left: 0;
}

a {
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

a:not(.logo):hover,
a:not(.logo):active,
button:hover,
button:active {
  filter: brightness(2);
  text-decoration: none;
  opacity: 0.9;
}

nav a:not(.logo),
footer a {
  margin: 5px 8px;
}

ul {
  padding-left: 18px;
}

.icon {
  vertical-align: -2.5px;
  width: 0.9em;
  height: 0.9em;
}

footer {
  text-align: right;
  font-size: 0.9em;
  margin: 20px 15px 25px 15px;
}

section.monitors {
  margin: 0 auto;
}

section .heading {
  display: flex;
  align-items: center;
}

section .heading h2 {
  flex: 1;
}

.monitor,
.big-status {
  background: #EBEBEB;
  border-radius: 20px;
  padding: 12px 15px;
  margin: 10px 0 20px 0;
}

.big-status {
  margin-top: 25px;
  padding: 25px 22px;
}
.big-status h1 {
  margin: 0;
}
.big-status .status-icon {
  height: 1.5em;
  vertical-align: -8px;
}

.monitor-status {
  display: none;
}

.monitor[data-status="up"] .monitor-up-status {
  display: inline-block;
  position: relative;
}

.monitor[data-status="down"] .monitor-down-status {
  display: inline-block;
}

.monitor[data-status="sync"] .monitor-sync-status {
  display: inline-block;
  animation: linear 8s infinite spin;
}

.monitor-up-status::after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  border-radius: 99px;
  display: inline-block;
  top: 0;
  left: 0;
  background: #059669;
  animation: 3s linear 1s infinite backwards status-pulse;
}

@keyframes status-pulse {
  0% {
    opacity: 0;
    scale: 1;
  }
  50% {
    opacity: 0.7;
    scale: 1.1;
  }
  100% {
    opacity: 0;
    scale: 1.9;
  }
}

.monitor-sync-status {
  width: 1.4em;
  height: 1.4em;
}

@keyframes spin {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: -360deg;
  }
}

.monitor form {
  margin: 0;
}

.monitor.collapsed .settings {
  display: none !important;
}

.monitor .preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.monitor .actions a {
  margin: 5px 8px;
}

.monitor .settings {
  margin-top: 12px;
  border-top: 1px solid #d1d1d1;
  padding: 12px 15px 5px 15px;
}

.monitor .settings.no-border {
  margin-top: 0;
  border-top: none;
}

.monitor .settings .settings-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.monitor .settings h2 {
  margin: 5px 0 17px 0;
}

.monitor .settings h3 {
  margin: 5px 0;
}

.monitor .settings .bottom-actions {
  display: flex;
  justify-content: flex-end;
}

.monitor .details {
  flex: 1;
}

.monitor .details h3,
.monitor .details p {
  margin: 4px;
}

.monitor .status {
  min-width: 30px;
  text-align: center;
}

.monitor .status .dot {
  border-radius: 99px;
  width: 15px;
  height: 15px;
  margin: 0 8px 0 10px;
}

.pill {
  border-radius: 99px;
  font-size: 0.8em;
  padding: 6px 8px 2px 8px;
  color: white;
  font-weight: bold;
  margin: 0 5px;
  vertical-align: 2px;
  display: inline-block;
}

.bg-success {
  background: #059669;
}

.bg-error {
  background: #ef4444;
}

.alert {
  border-radius: 8px;
  padding: 6px 8px;
  margin: 5px 0 8px 0;
  color: white;
}

.alert h4,
.alert p {
  display: inline-block;
  margin: 4px;
}

input,
select {
  display: inline-block;
  border: 1px solid #131313;
  padding: 8px 12px;
  margin: 5px 8px;
  border-radius: 8px;
  background-color: #fefefe;
}

.form-group {
  display: flex;
  flex-direction: row;
  margin: 10px 0 0 0;
}

section.auth {
  border-radius: 20px;
  border: 1px solid #131313;
  width: 350px;
  max-width: 100%;
  padding-top: 10px;
  margin: 75px auto 55px auto;
}

section.auth h1 {
  margin: 8px 8px 10px 8px;
  font-size: 1.3em;
}

section.auth button {
  margin-top: 12px;
}

.form-group.auth {
  flex-direction: column;
  margin-top: 0;
}

.form-group.auth .input-group .label {
  width: 67px;
  max-width: 100%;
  margin: 5px 8px;
}

.form-group.auth .input-group .input {
  margin-right: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.input-group .label {
  margin: 0 8px 0 0;
}

.input-group .input {
  margin: 0 20px 0 0;
}

.input-group input[type="checkbox"] {
  margin-left: 0;
}

.mb {
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

@media(max-width: 30em) {

  /* MOBILE */
  section.hero {
    padding-top: 40px;
  }

  section.hero h1 {
    font-size: 2.2em;
  }

  section.hero h2 {
    font-size: 1.14em;
  }

  section.hero .owl {
    width: 120px;
    height: 160px;
  }

  .form-group {
    flex-direction: column;
  }

  .input-group .label {
    width: 67px;
    max-width: 100%;
  }

  .input-group .input {
    margin-right: 0;
    flex: 1;
  }

  .input-group input:not([type="checkbox"]),
  .input-group select {
    width: 100%;
  }
}
