/*CORE STYLES */
:root {
  background-color: #44546A;
  }

* {
  margin: 0;
  padding: 0;
  }

.img-banner{
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1280px;
  height: auto;
  }

h3 {
  font-family: "PT Serif Caption", serif;
  color: #050671;
  text-align: right;
  }

h2 {
  font-family: "Chicle", serif;
  color: #7030A0;
  text-align: left;
  }

.center {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  padding: 1% 0% 1% 0;
  max-height: 75px;
  max-width: 100%;
  height: auto;
  }

.center-large {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  max-height: 100%;
  padding: 1% 0% 1% 0;
  z-index: -1;
  }

.container{
  margin-top: 1%;
  margin-right: auto;
  margin-left:  auto;
  border: 5px solid #7FFF00;
  border-left: none;
  border-right: none;
  border-radius: 10px;
  font-family: "PT Serif Caption", serif;
  color: #050671;
  background-color: #97A0D8;
  padding: 1%;
  width: 100%;
  max-width: 1080px;
  }

/* Add a background color to the top navigation */
.topnav {
  background-color: #747EBD;
  overflow: hidden;
  font-family: "Chicle", serif;
  color: #050671;
  }

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: flex;
  color: #050671;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-family: "Chicle", serif;
  font-size: 17px;
  }

/* Add an active class to highlight the current page */
.active {
  background-color: #747EBD;
  }

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
  }

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
  }

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-family: "Chicle", serif;
  color: #050671;
  font-size: 17px;
  border: none;
  outline: none;
  padding: 14px 16px;
  background-color: #747EBD;
  font-family: inherit;
  margin: 0;
  }

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  color: #050671;
  background-color: #97A0D8;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  }

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: #050671;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  }

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #050671;
  color: #97A0D8;
  }

/* Add a background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #050671;
  color: #97A0D8;
  border: none;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
  }


/*Gallery Container*/

div.gallery {
  display: flex;
  flex-wrap: wrap;
  object-position: center;
  margin-right: 7%;
  margin-left: 19.25%;
  margin-bottom: auto;
  }

div.gallery:before{
  content: '';
  top: 0;
  left:0;
  width: 100%;
  height: auto;
  z-index: -1;
  }

div.gallery-item {
  margin: .50%;
  border: 5px solid #050671;
  border-left: none;
  border-right: none;
  border-radius: 10px;
  width: 17em;
  background-color: #747EBD;
  }

div.gallery-item:hover {
  border: 5px solid #7030A0;
  border-left: none;
  border-right: none;
  border-radius: 10px;
  }

div.gallery-item:visited {
  border: 5px solid #7FFF00;
  }

div.gallery-item img {
  width: 100%;
  height: auto;
  align-content: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  }

div.gallery-item div.desc {
  padding: .5%;
  text-align: center;
  color: #050671;
  }

/*For the Resources Page*/
.favorites {
  list-style: none;
  font-size: 1em;
  }

.favorites > ul > li {
  font-family: "PT Serif Caption", serif;
  color: #050671;
  font-size: 1em;
  font-weight: bold;
  width: 100%;
  height: auto;
  overflow: auto;
  display: flex;
  justify-content: center;
  }

.favorites > ul > li > a {
  font-family: "PT Serif Caption", serif;
  color: #050671;
  text-decoration: none;
  padding: .5rem;
  }

.favorites > ul > li > a:hover {
  color: #7FFF00;
  }

/*For the Resources Page*/
.socials {
  background: url('../images/home/socials.png') no-repeat center center/cover;
  display: block;
  padding-top: 7.5%;
  max-width: 100%;
  z-index: -1;
  }

.socials > ul{
  font-size: 2vw;
  max-width: 100%;
  padding: 5em;
}

.socials > ul > li {
  font-family: "Chicle", serif;
  color: #050671;
  overflow: auto;
  text-align-last: center;
  padding: 1em;
  }

.socials > ul > li > a {
  font-family: "Chicle", serif;
  color: #050671;
  text-decoration: none;
  }

.socials > ul > li > a:hover {
  color: #7030A0;
  }

.socials > ul > li > a:visited {
  color: #7FFF00;
  }

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #050671; /* Set a background color */
  color: #7FFF00; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  font-family: "Chicle", serif;
  }

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
  }

footer {
  display: block;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  font-family: "PT Serif Caption", serif;
  font-weight: bolder;
  font-size: 1em;
  text-align: center;
  color: #BDD1CD;
  padding: 1rem 0 0 0;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
function myFunction() {
  var x = document.getElementById("myTopnav");
  if (x.className === "topnav") {
    x.className += " responsive";
  } else {
    x.className = "topnav";
  }
