/*
Theme Name: Cloudraw
Author: Cloudraw
Tested up to: 5.4
Requires PHP: 5.6
Text Domain: cloudraw
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: calc(2rem + var(--header-height));
  accent-color: var(--neutral-800);
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: var(--neutral-800);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  margin: 0;
  text-wrap: balance;
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
}

/* h1,
h2,
h3,
h4,
h5,
h6 {
  text-box: trim-both cap alphabetic;
} */

h3 {
  font-weight: 500;
}

p {
  margin-bottom: 1.5em;
  margin: 0;
  text-wrap: pretty;
  word-break: break-word;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

/* ul,
ol {
  margin: 0 0 1.5em 3em;
} */

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  width: 100%;
  display: block;
}

/* figure {
  margin: 1em 0;
} */

table {
  /* margin: 0 0 1.5em; */
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Links
--------------------------------------------- */
a {
  color: var(--neutral-800);
}

a,
button,
input[type="submit"] {
  transition: all 0.3s ease-in-out;
}

/* a:not(p a, .keys-list a) {
  text-decoration: none;
} */

ul li a {
  text-decoration: none;
}

/* a:hover,
a:focus,
a:active {
  color: inherit;
} */

a:hover,
a:active {
  outline: 0;
}

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.container {
  width: min(var(--container-width), 100% - (var(--site-padding) * 2));
  margin-inline: auto;
  container-type: inline-size;
}

textarea {
  resize: none;
  display: block;
  padding-block: 14px;
}

select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  /* background: url("data: image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZXZyb24tZG93bi1pY29uIGx1Y2lkZS1jaGV2cm9uLWRvd24iPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==") no-repeat; */
  background: url("data: image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM4OTg5ODkiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLWRvd24taWNvbiBsdWNpZGUtY2hldnJvbi1kb3duIj48cGF0aCBkPSJtNiA5IDYgNiA2LTYiLz48L3N2Zz4=");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  background-color: var(--background-color);
  cursor: pointer;
}

.loader {
  display: none;
}

:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-404-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  max-width: 400px;
  margin-inline: auto;

  .subtitle {
    font-size: 20px;
    font-weight: 600;
  }

  .btn {
    align-self: center;
  }
}

.page-content {
  > p {
    margin-bottom: 24px;
  }

  h2,
  h3,
  h4,
  h5 {
    font-weight: 500;
  }

  h2 {
    font-size: clamp(2rem, 3vw, 2.875rem);
  }

  > h2 {
    margin-top: 108px;
    margin-bottom: 16px;
  }
  .wp-block-group {
    margin-bottom: 16px;
  }
  .wp-block-group:not(:first-child):has(> h2) {
    margin-top: 108px;
  }

  > h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  > h4 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  > h5 {
    margin-bottom: 16px;
  }
}

ul.wp-block-list {
  margin: 0 0 2rem 2rem;
  padding: 0;
}

.breadcrumbs {
  margin-bottom: var(--block-space-sm);
  display: flex;
  align-items: center;
  gap: 2px;

  svg {
    width: 16px;
  }
}

@supports (animation-timeline: view()) {
  @keyframes slide-up {
    from {
      margin-top: -24px;
    }
    to {
      margin-top: -70px;
    }
  }
}
