/* Variable */
:root {
  --primary-color: #b4e8cd;
}
* {
  box-sizing: border-box;
}

/* Tag Selectors */
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--primary-color);
  font-size: 16px;
  background-image: url("https://codecraftworks.dev/web/fong7zWw8DXPMtLFlyBl/assets/pexels-alinaskazka-14730810.jpg");
  background-size: contain;
  background-repeat: round;
}
a[target="_blank"] {
  background-color: white;
}
audio {
  width: 100%;
}

/* ID Selectors */
#title {
  background-color: yellowgreen;
  text-decoration: none;
  border: 5px dashed white;
  margin-top: 50px;
}
#headingInfo {
  background-color: #020024;
  background: linear-gradient(163deg, rgba(2, 0, 36, 1) 0%, rgba(3, 60, 51, 1) 20%, rgba(121, 97, 9, 1) 35%, rgba(6, 111, 77, 1) 56%, rgba(112, 131, 5, 1) 63%, rgba(3, 204, 37, 1) 75%, rgba(2, 207, 127, 1) 85%, rgba(0, 212, 255, 1) 100%);
}
#headingInfo .plainback {
  height: 400px;
  overflow: auto;
}

/* 
  Clearfix for fixing floats
  I don't know why it works it just does

  #biomes:after {
    content: "";
    display: table;
    clear: both;
  }
*/

#aquaticInfo {
  background-color: #9bf0ff;
  /* flex-basis sets an initial width for a flex item */
  /* calc() function used to subtract the gap from the width */
  flex-basis: calc(50% - 0.5em);
}
#forestInfo {
  background-color: #d0ff9b;
  flex-basis: calc(50% - 0.5em);
}
#tundraInfo {
  background-color: #e0dede;
  flex-basis: calc(50% - 0.5em);
}
#desertInfo {
  background-color: #d6b09a;
  flex-basis: calc(50% - 0.5em);
}
#nasaInfo {
  background-color: #000;
  color: #fff;
}

#navLinks {
  position: sticky;
  top: 0.5em;
  z-index: 1;
}
#navLinks a {
  display: block;
}
#navLinks a:focus {
  background-color: red;
  color: white;
}
#navLinks a:link {
  color: red;
}
#navLinks a:visited {
  color: darkgreen;
}
#navLinks a:hover {
  background-color: yellowgreen;
}
#navLinks a:active {
  background-color: purple;
}
#contact {
  background-color: #eee;
}

/* Class Selectors */
.heading {
  color: #ff0000;
  font-family: "Glass Antiqua", cursive;
  text-decoration: underline overline;
}
.text-center {
  text-align: center;
}
.info {
  border: 5px solid #afa37b;
  padding: 0.5em;
  margin-bottom: 1em;
  border-radius: 0.5em;
  box-shadow: 2px 2px 5px black;
}
.plainback {
  background-color: var(--primary-color);  
  padding: 0.5em;
}
.img-responsive {
  max-width: 400px;
}
.vid-responsive {
  max-width: 360px;
}
.img-center {
  display: block;
  margin: 0 auto;
}
.float-left {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}
.sr-only {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.sr-only:focus {
  background-color: white;
  padding: 0.5em;
  border-radius: 0.2em;
  position: static;
  opacity: 1;
  text-decoration: none;
  text-transform: uppercase;
}

/*
  Common screen size breakpoints:
  Small - 576px or 768px
  Medium - 992px
  Large - 1200px
  Extra Large - 1400px
*/
@media (min-width: 576px) {
  #biomes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
  }
  #navLinks {
    display: flex;
    justify-content: space-evenly;
  }
  #navLinks a {
    display: inline;
  }
  #title:before,
  #title:after {
    content: "🌎"
  }
  #aquaticInfo .heading:before,
  #aquaticInfo .heading:after{
    content: "🌊"
  }
  #forestInfo .heading:before,
  #forestInfo .heading:after{
    content: "🌲"
  }
  #tundraInfo .heading:before,
  #tundraInfo .heading:after{
    content: "❄️"
  }
  #desertInfo .heading:before,
  #desertInfo .heading:after{
    content: "🌵"
  }
}
/* gap used to add spacing between flex items */
/*

*/