/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */


:root {
  --primary-color: #444;
  --page-color: #444;
  --page-background-color: #fff;
  --header-text-color: #fff;
  --link-color: #004fea;
  --link-hover-bg-color: #000;
}
/**
@media (prefers-color-scheme: dark) {
  :root {
    --page-background-color: #000;
    --page-color: #fff;
    --link-color: #fff;
    --link-hover-bg-color: #fff;
  }
}
**/
html {
  font-size: calc(16px + 0.390625vw);
  line-height: 1.4;
  font-family: arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--page-color);
  background: var(--page-background-color);
}

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

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  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;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

@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;
  }
}

.wrapper {
  width: 100%;
}

.container {
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

header a,
header a:visited {
  color: var(--header-text-color);
  text-decoration: none;
}

header img {
  margin-right: -1rem;
  height: 200px;
  width: 200px;
}

.header-wrapper {
  background: var(--primary-color);
  margin-bottom: 2rem;
}

h1 {
  color: var(--header-text-color);
}

p {
  margin-top: 0;
}

.content-wrapper {
  margin-bottom: 2rem;
}

main {
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

@media (min-width: 105ch) {
  main {
    flex-direction: row;
  }
}

article {
  max-width: 70ch;
}

dl {
  align-content: start;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: .5rem;
  column-gap: .5rem;
}

dt, dd {
  margin: 0;
}

dt {
  clear: left;
  text-align: right;
}

dd {
  width: calc(100% - 7rem);
}

dt strong {
  color: #fff;
  background: var(--primary-color);
  padding: .15rem .25rem;
}

dd a,
dd a:visited  {
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: all .20s ease-in-out;
  padding: 0 .25rem;
  color: var(--link-color);
}

dd a:hover {
  color: var(--page-background-color);
  transition: all .20s ease-in-out;
}

dd a:after {
  content: '';
  display: block;
  height: .10rem;
  width: 100%;
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  transition: all .20s ease-in-out;
  background:var(--link-color);
}

dd a:hover:after {
  bottom: 0;
  height: 100%;
  transition: height .20s ease-in-out;
  background: var(--link-hover-bg-color);
}


.footer-wrapper {
  margin-top: auto;
  background: var(--primary-color) url("img/cow.webp") 100% -200px no-repeat;
  background-size: auto;
}

footer {
  display: flex;
  min-height: 10rem;
  align-items: center;
}

footer p {
  color: var(--header-text-color);
  background: #000;
}

