@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400..900&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --primary-dkgrey: #333;
  --tp-dkgrey: #333333e7;
  --turquoise: #40e0d0;
  --lt-turquoise: #9fefe7;
  --offwhite: #f4f4f4;
  --purple: #693bc7;
  --accent-yellow: #ffff77;
  --accent-ltred: #ff7777;
  --accent-green: #55c555;
}


body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--primary-dkgrey);
  font-family: "Space Grotesk", sans-serif;
  background-image: url(learning.jpg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body:before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--turquoise);
  background-size: cover;
  background-position: center;
  opacity: 0.8;
}


.projects-home {
  position: relative;
  /* margin-top: .3125rem; */
  padding-top: 3.5px;
  padding-inline: 5px;
  background-color: var(--tp-dkgrey);
  border-radius: .125rem;
}

.projects-home a svg {
  fill: var(--offwhite);
}

.projects-home a svg:hover {
  fill: var(--turquoise);
}


header {
  position: relative;
  max-width: 64rem;
  width: 95%;
  text-align: center;
}


header,
#source p span {
  text-shadow: 1px 0px 0px var(--offwhite);
}


h1 {
  font-size: clamp(1.25rem, 1.036rem + 1.071vw, 2rem);
}


p {
  font-size: clamp(0.938rem, 0.804rem + 0.357vw, 1.125rem);
  font-weight: 600;
}


#container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  width: 100%;
  max-height: 100vh;
  margin-block: 1.25rem;
}


#container svg,
footer {
  background-color: var(--tp-dkgrey);
  border-radius: .125rem;
}


.county:hover {
  stroke: var(--accent-ltred);
  stroke-width: .1875rem;
}


#tooltip {
  position: absolute;
  z-index: 10;
  padding: .25rem;
  color: var(--accent-ltred);
  background-color: var(--offwhite);
  font-size: .75rem;
  font-weight: bold;
  text-align: center;
  border-radius: .125rem;
  box-shadow: 1px 1px 5px 1px var(--tp-dkgrey);
  pointer-events: none;
}

#tooltip p {
  margin: 0;
  padding: 0;
}


section#source {
  position: relative;
  margin-bottom: 1.875rem;
}

section#source a {
  color: var(--purple);
  text-decoration: none;
}

section#source a:hover {
  text-decoration: underline wavy;
  text-underline-offset: .3125rem;
}

section#source a:active {
  color: var(--accent-ltred);
}


footer {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .1875rem;
  padding-block: .3125rem;
  padding-inline: .625rem;
  margin-top: auto;
}

footer p {
  margin: 0;
  padding: 0;
  color: var(--offwhite);
  font-size: clamp(0.625rem, 0.554rem + 0.357vw, 0.875rem);
  font-weight: normal;
}

footer a {
  color: var(--turquoise);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  filter: brightness(1.5);
}