/*! HTML5 Boilerplate v9.0.0-RC1 | 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
   ========================================================================== */

html {
  color: #222;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1em;
  line-height: 1.4;
}

.body-gradient {
  background-image: linear-gradient(195deg,
      hsl(198deg 100% 80%) 0%,
      hsl(199deg 94% 79%) 10%,
      hsl(201deg 89% 79%) 19%,
      hsl(203deg 83% 78%) 27%,
      hsl(205deg 77% 78%) 35%,
      hsl(206deg 71% 77%) 43%,
      hsl(208deg 65% 76%) 50%,
      hsl(209deg 65% 81%) 57%,
      hsl(210deg 65% 85%) 64%,
      hsl(210deg 65% 89%) 71%,
      hsl(211deg 65% 92%) 79%,
      hsl(211deg 65% 96%) 88%,
      hsl(0deg 0% 100%) 100%);
}

/*
 * 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;
}

/* ==========================================================================
   Author's custom styles -- key colors related to the logo in the SVG file
   ========================================================================== */

.st0 {
  background: #007747;
  background: rgba(0, 119, 71, 1);
}

.st1 {
  background: #FF9933;
  background: rgba(255, 153, 51, 1);
}

.st2 {
  background: #0058A5;
  background: rgba(0, 88, 165, 1);
}

.st3 {
  background: #0099FF;
  background: rgba(0, 153, 255, 1);
}

.st4 {
  background: #33CC66;
  background: rgba(51, 204, 102, 1);
}

.st5 {
  background: #626769;
  background: rgba(98, 103, 105, 1);
}

.st6 {
  background: #990033;
  background: rgba(153, 0, 51, 1);
}


/* ==========================================================================
   Page layout
   Margins: top 14% and bottom 10% of viewport height, sides 10% of width.
   Logo size and #LMPogoda_name scale are computed in js/app.js; keep the
   margins and gap below in sync with the constants there.
   ========================================================================== */

.page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* Space under the logo grows with the viewport height */
  gap: max(2rem, 8vh);
  gap: max(2rem, 8dvh);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 14vh 10% 10vh;
  padding: 14dvh 10% 10dvh;
}

/* Fallback size when JS is off; app.js sets exact width/height */
.logo {
  display: block;
  flex: none;
  align-self: center;
  width: 100%;
  height: auto;
  max-height: 50vh;
  overflow: visible;
}

.links {
  align-self: center;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 14pt;
  /* Shrinks on narrow screens so the longest line fits the 80% content width */
  font-size: clamp(9pt, 4vw, 14pt);
  color: #1d1d1b;
}

.links li,
.links a {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.links li + li {
  margin-top: 0.25em;
}

/* Font Awesome kit replaces <i> with <svg> */
.links i,
.links svg {
  color: #0058a5;
}

.links a {
  color: inherit;
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  color: #0058a5;
  text-decoration: underline;
}

@media (orientation: landscape) {
  .logo,
  .links {
    align-self: flex-start;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

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

/* ==========================================================================
   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;
  }
}

