/*
* hfxzero.css: Halifax Zero Stylesheet
*/

:root {
  --hfxzero-blue: #005eb8;
  --hfxzero-red: #da291c;
  --hfxzero-yellow: #ffd100;
  --hfxzero-green: green;
  --hfxzero-deadline-color: #005eb8aa;
  --hfxzero-image: url(/images/hfxflag.svg);
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  color: var(--hfxzero-blue)
}

body {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.red {
  color: var(--hfxzero-red);
}

.green {
  color: var(--hfxzero-green);
}

#content {
  margin: 0 auto;
}

/* Title */
#title-anchor {
  position: relative;
  display: inline-block;
  color: black;     
}

#title-anchor::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-text-stroke: 1px black;
  color: transparent;
}

#title-anchor:hover {
  background-image: var(--hfxzero-image);
  background-size: contain;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--hfxzero-blue);
  color: transparent;
}

#content h1#title {
  font-size: 4.5em;
}

@media (max-width: 767px) {
  #content h1#title {
    font-size: 2em;
  }
}

/* Content wrapper */
#content h1, #content h2, #content h3 {
  text-align: center;
}

#content h1 {
  font-size: 3em;
  margin-bottom: 0;
}

#content h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

#content h2#deadline-header {
  margin-top: 0;
  color: var(--hfxzero-deadline-color);
}

/* News */
#news {
  display: flex;
  justify-content: center;
  font-size: 1.75em;
}

@media (max-width: 767px) {
  #news-articles {
    list-style: none;
    margin: 0;
    padding: 0.25em;
  }
}

#news-articles {
  list-style: none;
  margin: 0;
  width: 28em;
}

#news-articles li:not(:first-child) {
  margin-top: 0.5em;
} 

#news-articles li span {
  margin-left: 0.5em;
  font-size: 0.5em;
  vertical-align: middle;
  color: grey;
}

.article {
  text-align: left;
}

/* Signs */
#signs {
  display: flex;
  justify-content: center;
}

@media (max-width: 767px) {
  #signs {
    display: flex;
    flex-direction: column;
  }
}

.first {
  margin-right: 1em;
}

@media (max-width: 767px) {
  .first {
    margin-bottom: 1em;
    margin-right: 0;
  }
}

.sign {
  font-size: 1.25em;
  text-align: center;
  flex: 0 0 18em;
  border: 1px solid black;
}

.sign .digits {
  font-size: 8em;
  font-weight: bold;
  font-variant-numeric: oldstyle-nums;
}

.sign h1 {
  padding-top: 0.25em;
  padding-bottom: 0.25em;
  margin: 0;
  color: white;
  background-color: var(--hfxzero-blue);
  border-bottom: 1px solid black;
}