/* Stylesheet for Birding.BC.CA */

/*Google Fonts loaded in head_tags.php*/

/*  Variables */
:root {
  --primary: rgb(0, 117, 185);
  --secondary: #ff9000;
  --success: #16a085;
  --danger: #c0392b;
  --warning: #ff6702;
  --info: #2980b9;

  --white: #ffffff;
  --extralight: #f4f4f4;
  --light: #e5e5e5;
  --medium: #596373;
  --dark: #212529;
  --black: #000000;
  --transparent: #ffffff00;
  --gradient: linear-gradient(91.97deg, #af35a4 0.39%, #d42863 99.13%);

  /* Additional colors extracted from styles */
  --header-bg: #091016;
  --border-light: #ccc;
  --text-dark: #333333;
  --text-primary: #1d1b1e;
  --light-text: #ebebeb;
  --subtitle-color: #63848e;
  --caption-color: #999;
  --green-dark: #060;
  --hotspot-bg-start: rgba(254, 252, 234, 1);
  --hotspot-bg-end: rgba(241, 218, 54, 1);
  --hotspot-bg: linear-gradient(
    to bottom,
    var(--hotspot-bg-start) 17%,
    var(--hotspot-bg-end) 100%
  );
  --shadow-dark: #181818;

  --fontPrimary: "Montserrat", sans-serif;
  --fontVerdana: Verdana, Arial, Helvetica, sans-serif;
  --fontTrebuchet: "Trebuchet MS", Arial, Helvetica, sans-serif;

  --spacingMobile: 20px;
  --spacingTablet: 50px;
  --spacingDesktop: 100px;
}

/* Elements */
html {
  position: relative;
  font-size: 100%;
  /* Base font size is 16px = 1rem */
}

body {
  font-family: var(--fontPrimary);
  line-height: 1.6;
  font-size: 1rem;
  color: var(--dark);
  margin: 0;
  padding: 0;
  background-color: var(--medium);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--black);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.56rem;
  border-bottom: solid 1px var(--success);
}

h2 {
  font-size: 1.22rem;
  border-bottom: solid 1px var(--success);
}

h3 {
  font-size: 1.14rem;
  border-bottom: solid 1px var(--success);
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 2rem;
}

h1.article {
  margin-bottom: 0;
}

.fa-solid,
.svg-inline--fa {
  color: var(--secondary);
}

a {
  color: var(--primary);
  transition: ease-in-out 0.2s;

  &:hover,
  &:active {
    color: var(--secondary);
  }

  &:hover {
    img {
      background: none;
    }
  }
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

/* Layout */

/*GRIDS*/
#doc,
#doc2,
#doc3,
#doc4 {
  background: var(--white);
  box-shadow: var(--shadow-dark) 0 10px 20px;
  margin: 0 auto;
}

#hd {
  position: relative;
  background: var(--header-bg) url("/images/greater-yellowlegs.jpg") center
    right no-repeat;
  background-size: cover;
  height: 200px;

  .title {
    color: var(--white);
    font-size: 2.6rem;
    font-weight: bold;
    padding-left: 20px;
    padding-top: 8px;
    margin-bottom: 0.8rem;
    line-height: 1.1;
  }

  .intro {
    max-width: 600px;
    padding-left: 20px;
    color: var(--light);
  }
}

@media screen and (min-width: 1200px) {
  #hd {
    background-size: contain;
  }
}

/* Navbar*/
.navbar {
  background-color: var(--dark);

  &-expand-md .navbar-nav .nav-link {
    color: var(--white);
    padding: 1rem 1.5rem;
  }

  &-toggler {
    color: var(--white);
    border: solid 1px var(--white);
    background-color: var(--header-bg);
  }
}

.nav-link {
  color: var(--white);
  &:hover {
    color: var(--secondary);
    background-color: var(--medium);
  }
}

.dropdown {
  &-menu {
    background-color: var(--dark);
  }

  &-item {
    color: var(--white);
    font-size: 1rem;
  }
}

#bd {
  padding-top: 20px;

  @media screen and (min-width: 768px) {
    padding-top: 20px 50px;
  }

  p {
    line-height: 1.5;
    margin-bottom: 2rem;
  }
}

#breadcrumbs {
  padding: 10px 20px;
  font-size: 0.875rem;
  margin-bottom: 5px;

  a {
    text-decoration: none;
  }
}

#ft {
  margin-top: 20px;
  padding: 50px 0;
  color: var(--light);
  font-size: 0.875rem;
  text-align: center;
  background: var(--dark);
  border-top: solid 2px var(--medium);

  a {
    color: var(--medium);
    text-decoration: none;

    &:hover {
      color: var(--white);
      text-decoration: underline;
    }
  }
}

.btn {
  display: inline-block;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 3px;
  color: var(--white);
  background-color: var(--primary);
  text-decoration: none;

  &:hover {
    background-color: var(--secondary);
  }
}

/* Layout Columns */

#regions {
  ul {
    margin-left: 20px;

    li {
      list-style: outside disc;
      margin-bottom: 5px;
    }
  }

  p,
  ul {
    margin-bottom: 1.5rem;
  }
}

/* Hotspots*/

table.hotspots {
  width: 100%;

  tr {
    border-bottom: solid 1px var(--border-light);
    margin-bottom: 20px;
  }

  td {
    padding: 10px;

    &.location {
      vertical-align: top;
      width: 110px;
      text-align: center;
      background: var(--hotspot-bg);
    }
  }

  h3 {
    color: var(--green-dark);
    border: none;
    line-height: 1.5;
  }
}

/* Hotspot: Hawkwatch */

.hawkwatch {
  background: url(../images/back04.jpg) no-repeat;
}

/* Google News Feed */
/* Removed unused #feed styles */

/* Text wrangling */
h1.article {
  margin-bottom: 0;
}

.byline {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1;
}

.transcript {
  font-family: var(--fontVerdana);
  font-size: 1rem;
}

.pagetitle {
  font-family: var(--fontTrebuchet);
  font-size: 1.125rem;
  font-weight: normal;
  line-height: 1;
  color: var(--text-primary);
}

.copy-mini {
  font-family: var(--fontVerdana);
  font-size: 0.625rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Removed unused .redhighlight */

.small-white {
  font-size: 0.625rem;
  color: var(--light-text);

  a {
    font-size: 0.625rem;
    color: var(--light-text);
  }
}

.subtitle {
  font-family: var(--fontVerdana);
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1.5;
  color: var(--subtitle-color);
}

.caption {
  font-family: var(--fontVerdana);
  font-size: 0.5625rem;
  color: var(--caption-color);
}
