:root {
  --primary-yellow: 255, 180, 0;
  --primary-blue: 0, 68, 172;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
  background-image: linear-gradient(
    rgb(var(--primary-yellow)) 50%,
    rgb(var(--primary-blue)) 50%
  );
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: normal;
}

h1,
h2 {
  font-size: 1.4em;
  color: rgb(var(--primary-blue));
}

h2 {
  margin-top: 0.66em;
  margin-bottom: 0.33em;
}

a[href^="http://"]::after,
a[href^="https://"]::after
{
  content: "";
  display: inline-flex;
  position: relative;
  top: 0.125em;
  width: 1em;
  height: 1em;
  background-color: rgb(var(--primary-blue));
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask: url("../assets/external-link.svg") no-repeat 50% 50%;
  mask: url("../assets/external-link.svg") no-repeat 50% 50%;
}

.siteheader {
  background: linear-gradient(rgb(var(--primary-yellow)) 59px, white 59px);
  background: rgb(var(--primary-yellow));
}

/* header .logo {
  height: 88px;
}

header .logo2 {
  height: 60px;
  width: 210.72px;
} */

.siteheader .logogroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.siteheader .logogroup .logo img {
  aspect-ratio: auto;
  width: 100%;
}

.siteheader .logogroup .tagline {
  width: 300px;
}

.siteheader .logogroup .tagline img {
  aspect-ratio: auto;
}

/* .siteheader .logogroup .tagline1 {
  background-color: rgb(var(--primary-blue));
  -webkit-mask: url("../images/Crossroads SOCO Nexus logo split-Connecting.svg")
    no-repeat 50% 50%;
  mask: url("../images/Crossroads SOCO Nexus logo split-Connecting.svg")
    no-repeat 50% 50%;
}

.siteheader .logogroup .tagline2 {
  background-color: rgb(var(--primary-yellow));
  background-color: white;
  -webkit-mask: url("../images/Crossroads SOCO Nexus logo split-Overcoming.svg")
    no-repeat 50% 50%;
  mask: url("../images/Crossroads SOCO Nexus logo split-Overcoming.svg")
    no-repeat 50% 50%;
} */

main {
  background-color: white;
  padding: 2em;
  border-radius: 5em 0 5em 0;
}

h1 {
  position: absolute;
  left: -9999px;
}

.copysection {
  margin: 0 2em 2em;
}

.copysection p {
  margin-inline: 1em;
}

.mapsection {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-block: 1.5em;
}

#socomap path {
  cursor: pointer;
  fill: rgb(0, 40, 104) !important;
  stroke: white !important;
}

#socomap path:hover {
  fill: rgb(255, 215, 0) !important;
}

.recoverysection {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recoveryfilter {
  position: sticky;
  top: 0;
  display: inline-block;
  margin-bottom: 5px;
  padding: 0.25em 1em;
  background-color: rgb(var(--primary-blue));
  text-align: center;
  border-radius: 0 0 2.5em 2.5em;
  z-index: 10;
}

.recoveryfilter .filtergroup {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25em;
  justify-content: center;
  align-content: center;
}

.recoveryfilter select {
  font-size: 1.2rem;
  color: rgb(var(--primary-blue));
  font-weight: 500;
  border: 1px solid rgb(var(--primary-yellow));
  border-radius: 0.25em;
}

.recoveryfilter .resetButton {
  color: rgb(var(--primary-blue));
  background-color: white;
  border: 1px solid rgb(var(--primary-yellow));
  border-radius: 0.25em;
  font-weight: bold;
}

.recoveryfilter .disclaimer {
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.5em 0.5em;
}

#recoveryResults {
  width: 100%;
}

#recoveryResults.hidden {
  display: none !important;
}
#recoveryResults .hidden {
  display: none !important;
}

.countyContainer {
  border: 3px solid rgb(var(--primary-blue));
  background-color: rgb(var(--primary-yellow));
  padding-bottom: 0.5em;
  border-radius: 10px 0 10px 0;
}

.countyTitle {
  color: rgb(var(--primary-yellow));
  background-color: rgb(var(--primary-blue));
  padding: 0.25em 0.5em;
}

.townContainer {
  margin: 0 1em;
  border: 2px solid rgb(var(--primary-yellow));
}

.townTitle {
  color: rgb(var(--primary-blue));
  background-color: rgb(var(--primary-yellow));
  padding: 0.25em 0.5em;
}

.programContainer {
  padding: 0.25em 1em;
  border: 0.5px solid lightgrey;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25em;
  border-radius: 5px 0 5px 0;
  background-color: white;
}

.programTitle {
  font-size: 0.925rem;
  flex-basis: 100%;
  margin-bottom: 0.25em;
  color: rgb(var(--primary-blue));
}

.programContainer div {
  margin-inline: 0.5em;
}

.programContainer div p {
  margin-left: 0.5em;
}

.categoryGroupContent .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
  margin: 0 0.25em;
  padding: 0.25em 0.75em;
  border-radius: 25px;
  background-color: black;
}

.categoryGroupContent .closed_group {
  background-color: #0070c0;
}

.categoryGroupContent .fitness {
  background-color: #00b0f0;
}

.categoryGroupContent .mat {
  background-color: #aaa;
}

.categoryGroupContent .medical {
  background-color: #f00;
}

.categoryGroupContent .narcan {
  background-color: #e81ce1;
}

.categoryGroupContent .open_reco_activities_groups {
  background-color: #ffc000;
}

.categoryGroupContent .peer_support {
  background-color: #ff0;
  color: black;
}

.categoryGroupContent .pro_reco_biz {
  background-color: #ba6ff2;
}

.categoryGroupContent .reco_residence_sober_transitional_living {
  background-color: #1fedea;
}

.categoryGroupContent .resources {
  background-color: #92d050;
}

footer {
  color: white;
  background-color: rgb(var(--primary-blue));
  padding: 0.5em 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
}

footer a,
footer a:hover,
footer a:focus,
footer a:visited {
  color: white;
}

@media screen and (orientation: portrait) {
  main {
    padding: 3em 0.75em;
  }

  .copysection {
    margin: 0 0.75em 2em;
  }

  .siteheader .logogroup {
    flex-direction: column;
    padding-bottom: 0.5em;
  }

  .siteheader .logogroup .logo {
    width: 100%;
  }

  .siteheader .logogroup .tagline {
    width: 100%;
    max-width: 100%;
  }

  .recoveryfilter .filtergroup {
    flex-direction: column;
  }

  .programContainer {
    flex-direction: column;
  }
}
