body {
  background: url("../mainimages/webb-stellar-nursery.jpg"); /* Image Credits: NASA, ESA, CSA, STScI, A. Ginsburg (University of Florida), N. Budaiev (University of Florida), T. Yoo (University of Florida). Image processing: A. Pagan (STScI); CC BY 4.0 */
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}
img,
video {
  max-width: 100%;
  height: auto;
}
h1 {
  font-family: "Garamond", "Georgia", serif;
  font-size: 40px;
}
h2 {
  font-family: "Comic Sans MS", cursive;
  font-size: 15px;
}
h3 {
  font-family: "Comic Sans MS", cursive;
  font-size: 30px;
  padding: 5px;
}
h4 {
  font-family: "Comic Sans MS", cursive;
  font-size: 20px;
  padding: 5px;
}
h5 {
  font-family: "Garamond", "Georgia", serif;
  font-size: 30px;
}
h6 {
  font-family: "Garamond", "Georgia", serif;
  font-size: 25px;
}
p {
  font-family: "Garamond", "Georgia", serif;
  font-size: 20px;
}
.small {
  font-size: 15px;
  font-style: italic;
}
.NYN {
  font-family: "Times New Roman", serif;
}
.landing {
  height: 194px;
  display: flex;
  margin-left: 10%;
  margin-right: 10%;
  text-align: center;
  align-items: center;
  color: #561B7A;
  border-radius: 25px;
  border: 5px solid #120075;
  background-color: #C7BDFF;
}
#banner {
  height: inherit;
}
.bannerimg {
    height: inherit;
    border-radius: 20px 0px 0px 20px;
    align-items: center;
}
#welcome {
  height: inherit;
  margin-left: auto;
  flex-grow: 1;
  background-color: #BDFFDF;
  display: flex;
  align-items: center;
  justify-content: center;
}
#motd {
  height: inherit;
  margin-left: auto;
  flex-grow: 1;
  width: 14%;
  background-color: #BDF5FF;
  border-radius: 0px 20px 20px 0px;
  border: 5px solid #120075;
  display: flex;
  align-items: center;
  justify-content: center;
}
#randomHE {
  max-width: 50%;
  max-height: 100%;
}
.maincontainer {
  display: flex;
  margin-left: 10%;
  margin-right: 10%;
  align-items: stretch;
  color: #561B7A;
  background-color: #FFCC8A;
  border-radius: 25px;
  border: 5px solid #120075;
  padding: 5px;
}
#nav {
  width: 20%;
  background-color: #BDFFDF;
  text-align: center;
  border-radius: 12px;
  border: 5px solid #004725;
  padding: 10px;
}
#intro {
  width: 60%;
  text-align: center;
  align-items: center;
  padding: 20px;
  color: #561B7A;
  background-color: #D4BDFF;
  border-radius: 12px;
}
.paragraphimg {
  width: 30%; 
  border-radius: 15px; 
  border: 5px solid #120075;
}
#input {
  width: 50%;
  padding: 5px;
  border-radius: 12px;
  border: 5px solid #120075;
  background-color: #BDF5FF;
  color: #561B7A;
}
#links {
  width: 20%;
  margin-left: auto;
  text-align: center;
  background-color: #BDF5FF;
  border: 5px solid #003D47;
  padding: 5px;
  border-radius: 12px;
}
.linkgif {
  width: 50%;
}
.button {
  font-family: "Comic Sans MS", cursive;
  width: 80%;
  background-color: #BDF5FF;
  border-radius: 12px;
  border: 5px solid #003D47;
  font-size: 36px;
  padding: 5px 12px 5px 12px;
  color: #561B7A;
  transition-duration: 0.4s;
  text-decoration: none;
  display: inline-block;
}
.button:hover {
  background-color: #FFCC8A;
  box-shadow: 0px 8px 8px 8px rgba(0,0,0,0.6);
}
a {
  color: #003D47;
}
a.visited {
 color: #D17600;
}
a:hover img {
  box-shadow: 0px 8px 8px 0px rgba(0,0,0,0.6)
}
.music {
  text-align: left;
  margin-left: 10%;
  margin-right: 10%;
  background-color: #B38AFF;
  border-radius: 25px;
  border: 5px solid #120075;
  padding: 5px;
  color: #561B7A;
}
.connections {
  margin-left: 10%;
  margin-right: 10%;
  text-align: center;
  color: #561B7A;
  background-color: #8AB9FF;
  border-radius: 25px;
  border: 5px solid #120075;
  padding: 5px;
}
@media screen and (max-width: 1800px) {
  .button {
    width: 90%;
    border-radius: 10px;
    border: 5px solid #003D47;
    font-size: 20px;
    padding: 3px 6px 3px 6px;
  }
  .galleryheader {
  height: 100px;
  }
  .prev, .next {
    border-radius: 10px;
    border: 5px solid #003D47;
    font-size: 15px;
    padding: 3px 6px 3px 6px;
  }
  .landing {
    height: 115px;
  }
  h1 {
    font-size: 30px;
  } 
  h2 {
    font-size: 10px;
  }
  h3 {
    font-size: 30px;
  } 
@media screen and (max-width: 900px) {
  .landing {
    margin-left: 3%;
    margin-right: 3%;
    height: 70px;
  }
  .maincontainer {
    margin-left: 3%;
    margin-right: 3%;
  }
  .connections {
    margin-left: 3%;
    margin-right: 3%;
  }
  .button {
    width: 100%;  
    border-radius: 2px;
    border: 2px solid #003D47;
    font-size: 12px;
    padding: 0px 0px 0px 0px;
  }
  .gallery {
  margin-left: 3%;
  margin-right: 3%;
  }
  .prev, .next {
    border-radius: 2px;
    border: 2px solid #003D47;
    font-size: 5px;
    padding: 0px 0px 0px 0px;
  }
  h1 {
    font-size: 20px;
  }
  h2 {
    font-size: 8px;
  }
  h3 {
    font-size: 20px;
  }  
}