/*! 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
   ========================================================================== */
*, *::before, *::after {
     box-sizing: border-box;
   }
   
html {
  color: #FEFDF8;
  text-shadow:
    -1px -1px 0 #1E1E1E,
    0   -1px 0 #1E1E1E,
    1px -1px 0 #1E1E1E,
    1px  0   0 #1E1E1E,
    1px  1px 0 #1E1E1E,
    0    1px 0 #1E1E1E,
    -1px  1px 0 #1E1E1E,
    -1px  0   0 #1E1E1E,
    1px    2px 0 #1E1E1E,
    2px    3px 0 #1E1E1E
    ;
  font-family: "Martian Mono", ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-weight: normal;
  font-size: 1em;
  line-height: 1.4;
  background: #B05F23;
  background: linear-gradient(180deg,
    rgba(4, 52, 100, 1) 5%, 
    rgba(13, 54, 96, 1) 5% 10%, 
    rgba(21, 56, 93, 1) 10% 15%, 
    rgba(31, 59, 89, 1) 15% 20%, 
    rgba(40, 61, 86, 1) 20% 25%, 
    rgba(53, 64, 81, 1) 25% 30%, 
    rgba(64, 67, 77, 1) 30% 35%, 
    rgba(74, 70, 73, 1) 35% 40%, 
    rgba(82, 72, 70, 1) 40% 45%, 
    rgba(88, 73, 68, 1) 45% 50%, 
    rgba(98, 75, 64, 1) 50% 55%, 
    rgba(109, 78, 60, 1) 55% 60%, 
    rgba(119, 81, 56, 1) 60% 65%, 
    rgba(129, 83, 53, 1) 65% 70%, 
    rgba(137, 85, 50, 1) 70% 75%, 
    rgba(147, 88, 46, 1) 75% 80%,
    rgba(157, 90, 42, 1) 80% 85%, 
    rgba(169, 93, 38, 1) 85% 90%, 
    rgba(176, 95, 35, 1) 90% 95%);
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;
}
body {
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.initialload #weather-result {
  display: none !important;
  visibility: hidden !important;
}
.initialload .hotone,
.socool .hotone {
  display: none !important;
  visibility: hidden !important;
}
.site-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 12px 12px 12px 0;
  padding: 0;
  height: auto;
  overflow-y: visible; 
}
.header-bg {
  width: 95%;
  height: 70px;
  display: flex;
  gap: 8px;
  padding: 0 0 0 12px;
  align-items: center;  
  background: #1B7EB7;
  background: linear-gradient(180deg,
    rgba(231, 139, 28, 1) 10%, 
      rgba(86, 30, 41, 1) 90%);  
}
.angle {
  position: relative;
  left: -1px;
  width: 5%;
  /* Top-left, Top-right (angled), Bottom-right, Bottom-left */
  clip-path: polygon(0% 0%, 100% 0%, 0% 100%, 0% 100%);   
}
.site-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0;
  padding: 0;
}
.tagline {
 display: block;
 margin: 0;
 padding: 0;
 font-size: 1.4rem;
 line-height: 1.2;
}
.tagline span {
  display: block;
  color: #F4EF79;
}
#date {
  font-size: 0.9rem;
  margin: 10px 12px 0px 12px;
  text-align: right;
}
.container {
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column; /* Stacks items by default (Mobile-first) */
  justify-content: center;
  gap: 12px;
  column-gap: 12px;
  align-items: flex-start;
  margin: 0 auto;
  padding: 12px 12px 140px 12px;
  
}
.blue-box {
  padding: 24px;
  height: auto;
  background: #222957;
  border: 5px solid #F8FDFF;
  box-shadow: inset 0 0 15px 5px rgba(248, 253, 255, 0.35);
}
.cool {
  display: none;
}

.input,
.result {
  font-size: 1.2rem;
}
.result {
  width: 100%;
  height: auto;
}
.result p {
  display: flex;
  justify-content: space-between;  
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.city, .tempurature {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.result .callout {
  display: block;
  margin: 0 auto;
  padding: 0;
  color: #F4EF79;
  text-align: center;
}
.result video {
  width: 100%;
  height: auto;
  margin: 12px 0;
}

.input {
  text-align: center;
}
.input span {
  color: #F4EF79;
}
.input input,
.input button {
  font-size: 1.2rem;
  margin: 12px auto;
  display: block;
}
.input input {
  padding: 8px;
  width: 250px;
  max-width: 100%;
}
.button {
  background-color: #0095ff;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI","Liberation Sans",sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15385;
  margin: 0;
  outline: none;
  padding: 8px .8em;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

.button:hover,
.button:focus {
  background-color: #07c;
}

.button:focus {
  box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}

.button:active {
  background-color: #0064bd;
  box-shadow: none;
}


.site-footer {
  background: #682926;
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 0.75em;
  width: 100%;
  position: absolute;
  overflow: hidden;
  bottom: 0px;
  left: 0px;
  padding: 12px 12px;
  z-index: 1;
}
.site-footer p {
  text-align: center;
  margin: 0;
  padding: 0;
}
.site-footer a {
  color: #F4EF79;
  text-decoration: none;
}
.ticker-wrap {
  width: 100%;
  padding: 12px 0;
  overflow: hidden; /* Hides the text outside the box */
  background: #682926;
  z-index: 2000;
}

.ticker-wrap h6 {
  width: 100%;
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
  padding: 0;
  margin: 0 0 4px 0;
}
.ticker {
  font-size: 1.2rem;
  display: inline-block;
  white-space: nowrap; /* Prevents text from wrapping */
  animation: scroll 15s linear infinite; /* Adjust '15s' for speed */
}
.ticker-item {
  display: inline-block;
  padding: 0;
  margin: 0;
}
@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-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
   ========================================================================== */

/* ==========================================================================
   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 (min-width: 768px) {
  html {
    font-size: 1.1em;
  }
  .site-header {
    margin: 24px 24px 24px 0;
  }
  .site-logo {
    width: 170px;
  }
  .header-bg {
    height: 90px;
    width: 90%;
    padding: 0 0 0 24px;
    gap: 16px;
  }
  .angle {
    width: 5%;
  }
  .container {
    gap: 24px;
    column-gap: 24px;
    padding: 24px 24px 140px 24px;  
  }
  .site-footer {
    padding: 12px 24px;
  }
  .ticker-item {
    display: inline-block;
    padding: 0 24px;
  }
  .ticker-wrap h6 {
    font-size: 1rem;
  }
  .ticker {
    font-size: 2.2rem;
  }
     .container {
       flex-direction: row;  /* Side-by-side for tablets and larger */
       gap: 4%;
     }
     .blue-box {
       flex: 0 0 48%;       /* Fixed width for two columns per row */
     }
     #date {
       position: absolute;
       margin: 22px 24px;
       right: 10%;
       top: 24px;
       white-space: pre-line;
     }
}


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

