/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */
/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/* Big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* CSS Reset */

*, *::before, *::after {
  box-sizing: border-box;
  border-color: #2138;
  border-width: 1px;
  color: var(--color-secondary);
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

*::placeholder {
  color: #2138;
}

/* Base Styles */

:root {
  --color-primary: #a7c;
  --color-secondary: #213;
  --color-contrast: #ffeeff;
  --color-accent: #b0b9c3;
}

html {
  background-color: var(--color-contrast);
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  height: 100%;
  line-height: 1;
  width: 100%;
}

body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

div {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

span {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
}

a, a:visited {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: none;
}

input {
  border-top-right-radius: 0.5rem;
}

input:invalid {
  border-color: red;
}

textarea {
  border-bottom-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  height: 3rem;
  min-height: 1rem;
  resize: vertical;
}

button {
  background-color: var(--color-primary);
  border-radius: 0.5rem;
  border-style: solid;
  color: var(--color-contrast);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: var(--color-accent);
  text-shadow: none;
}

::selection {
  background: var(--color-accent);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top-style: solid;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.add-image-button {
  width: 150px;
  height: 150px;
  background-color: var(--color-accent);
  border-style: solid;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

