
/******************************************************************************
 * global
 *****************************************************************************/

:root {
  --bg-color: #ffffff;
  --bg-secondary-color: #f3f3f6;
  --color-primary: #14854F;
  --color-lightGrey: #d2d6dd;
  --color-grey: #747681;
  --color-darkGrey: #3f4144;
  --color-error: #d43939;
  --color-success: #28bd14;
  --container-width: 96%;
  --container-maxWidth: 120rem;
  --font-size: 1.6rem;
  --font-color: #333333;
  --font-family-sans: "Cantarell",sans-serif;
  --font-family-mono: monospace;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  line-height: 1.15;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-lightGrey) var(--bg-primary);
}

body {
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: var(--font-size);
  color: var(--font-color);
  font-family: var(--font-family-sans);
  margin: 0;
  padding: 0;
}

/******************************************************************************
 * heading
 *****************************************************************************/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  margin: 0.35em 0 0.7em 0;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 0.85em;
}

/******************************************************************************
 * link
 *****************************************************************************/

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover:not(.button) {
  opacity: 0.75;
}

/******************************************************************************
 * table
 *****************************************************************************/

table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

table.striped tr:nth-of-type(2n) {
  background-color: var(--bg-secondary-color);
}

td,
th {
  vertical-align: middle;
  padding: 1.2rem 0.4rem;
}

thead {
  border-bottom: 2px solid var(--color-lightGrey);
}

tfoot {
  border-top: 2px solid var(--color-lightGrey);
}

/******************************************************************************
 * monospace textarea
 *****************************************************************************/

code,
kbd,
pre,
samp,
tt {
  font-family: var(--font-family-mono);
}

code,
kbd {
  padding: 0 0.4rem;
  font-size: 90%;
  white-space: pre-wrap;
  border-radius: 4px;
  padding: 0.2em 0.4em;
  background-color: var(--bg-secondary-color);
  color: var(--color-error);
}

pre {
  background-color: var(--bg-secondary-color);
  font-size: 1em;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

img {
  max-width: 100%;
}

/******************************************************************************
 * card
 *****************************************************************************/

.card {
  padding: 2rem;
  border-radius: 4px;
  background: var(--bg-color);
  box-shadow: 0 1px 3px var(--color-grey);
}

.card p:last-child {
  margin: 0;
}

.card header > * {
  margin-top: 0;
  margin-bottom: 1rem;
}

/******************************************************************************
 * form elements
 *****************************************************************************/

input,
select,
textarea,
textarea[type="text"] {
  font-family: inherit;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--color-lightGrey);
  font-size: 1em;
  transition: all 0.2s ease;
  display: block;
}

input:hover,
select:hover,
textarea:hover,
textarea[type="text"]:hover {
  border-color: var(--color-grey);
}

input:focus,
select:focus,
textarea:focus,
textarea[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 1px var(--color-primary);
}

input.error,
textarea.error {
  border-color: var(--color-error);
}

input.success,
textarea.success {
  border-color: var(--color-success);
}

select {
  background: #f3f3f6 no-repeat 100%;
  background-size: 1ex;
  background-origin: content-box;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='%23555'><polygon points='0,0 60,0 30,40'/></svg>");
}

[type="checkbox"],
[type="radio"] {
  width: 1.6rem;
  height: 1.6rem;
}

::placeholder {
  color: #bdbfc4;
}

/******************************************************************************
 * button
 *****************************************************************************/

button {
  padding: 1rem 2.5rem;
  color: var(--color-darkGrey);
  background: var(--color-lightGrey);
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: var(--font-size);
  line-height: 1;
  text-align: center;
  transition: opacity 0.2s ease;
  text-decoration: none;
  transform: scale(1);
  display: inline-block;
  cursor: pointer;
}

button {
  font-family: inherit;
}

button:hover {
  opacity: 0.8;
}

button:active {
  transform: scale(0.98);
}

button:disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
}

button.primary,
button.secondary,
button.dark,
button.error,
button.success {
  color: #fff;
  z-index: 1; /* hightlight from other button's border when grouped */
  background-color: #000;
  background-color: var(--color-primary);
}

button.secondary {
  background-color: var(--color-grey);
}

button.dark {
  background-color: var(--color-darkGrey);
}

button.error {
  background-color: var(--color-error);
}

button.success {
  background-color: var(--color-success);
}

button.outline {
  background-color: transparent;
  border-color: var(--color-lightGrey);
}

button.outline.primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

button.outline.secondary {
  border-color: var(--color-grey);
  color: var(--color-grey);
}

button.outline.dark {
  border-color: var(--color-darkGrey);
  color: var(--color-darkGrey);
}

button.clear {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-primary);
}

button.icon {
  display: inline-flex;
  align-items: center;
}

button.icon > img {
  margin-left: 2px;
}

.button.icon-only {
  padding: 1rem;
}

/******************************************************************************
 * other tags
 *****************************************************************************/

 p {
  margin-top: 0;
}

hr {
  border: none;
  background-color: var(--color-lightGrey);
  height: 1px;
  margin: 1rem 0;
}

section {
  margin-top: 5rem;
}

/******************************************************************************
 * util: background
 *****************************************************************************/

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-light {
    background-color: var(--color-lightGrey) !important;
}

.bg-dark {
    background-color: var(--color-darkGrey) !important;
}

.bg-grey {
    background-color: var(--color-grey) !important;
}

.bg-error {
    background-color: var(--color-error) !important;
}

.bg-success {
    background-color: var(--color-success) !important;
}

/******************************************************************************
 * util: border
 *****************************************************************************/

.bd-primary {
    border: 1px solid var(--color-primary) !important;
}

.bd-light {
    border: 1px solid var(--color-lightGrey) !important;
}

.bd-dark {
    border: 1px solid var(--color-darkGrey) !important;
}

.bd-grey {
    border: 1px solid var(--color-grey) !important;
}

.bd-error {
    border: 1px solid var(--color-error) !important;
}

.bd-success {
    border: 1px solid var(--color-success) !important;
}

/******************************************************************************
 * util: text color
 *****************************************************************************/

.text-primary {
    color: var(--color-primary) !important;
}

.text-light {
    color: var(--color-lightGrey) !important;
}

.text-dark {
    color: var(--color-darkGrey) !important;
}

.text-grey {
    color: var(--color-grey) !important;
}

.text-error {
    color: var(--color-error) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-white {
    color: #fff !important;
}

/******************************************************************************
 * util: text modification
 *****************************************************************************/

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

/******************************************************************************
 * util: size
 *****************************************************************************/

.full-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.full-width {
  width: 100% !important;
}

.container {
  max-width: var(--container-maxWidth);
  width: var(--container-width);
  padding: 0 1em;
}

/******************************************************************************
 * util: flex
 *****************************************************************************/

.rows {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  row-gap: 1rem;
}

.cols {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 1rem;
}

.items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  row-gap: 1rem;
  column-gap: 2rem;
}

.growing {
  flex-grow: 1;
}

.start {
  justify-content: flex-start;
}

.center {
  justify-content: center;
}

.end {
  justify-content: flex-end;
}

.space-between {
  justify-content: space-between;
}

.space-around {
  justify-content: space-around;
}

.space-evenly {
  justify-content: space-evenly;
}

/******************************************************************************
 * util: other
 *****************************************************************************/

.fixed {
  position: fixed;
  width: 100%;
}

.no-padding {
  padding: 0 !important;
}

.no-margin {
  margin: 0 !important;
}

.pointer {
  cursor: pointer !important;
}

.round {
  border-radius: 100%;
}

/******************************************************************************
 * util: hide
 *****************************************************************************/

.hide {
  display: none !important;
}

@media screen and (max-width: 599px) {
  .hide-xs {
      display: none !important;
  }
}

@media screen and (min-width: 600px) and (max-width: 899px) {
  .hide-sm {
      display: none !important;
  }
}

@media screen and (min-width: 900px) and (max-width: 1199px) {
  .hide-md {
      display: none !important;
  }
}

@media screen and (min-width: 1200px) {
  .hide-lg {
      display: none !important;
  }
}

@media print {
  .hide-pr {
      display: none !important;
  }
}