/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

html {
  margin: 0;
  padding: 0;
  height: 100%;
  
  background-image: url("Images/bg6.png");
  background-repeat: repeat;
  
  overflow-y: auto;
}

body {
  color:white;
  
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.5%;
  position: relative;
  display: block;
  font-size: 18pt;
  background: black;
  
  border: 2mm inset;
  
  padding: 2.5% 5%;

  font-family: Garamond, serif;
}
nav {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  
  min-height: 112px;
  
  border: 1px solid grey;

  flex-wrap: wrap;
}



header > img {
  margin: 60px auto 0;
  display: block;
  max-width: 100%;
  aspect-ratio: auto;
  }

.trinkets-container {
  display: grid;
  column-gap: 4%;
  row-gap: 12px;
  margin: auto;
  grid-template-columns: repeat(3, 28%);
}

.trinket {
  position: relative;
  display: inline-block;
}

.trinket::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
}

.trinket:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
  border: solid 1px gold;
}

.trinkets-container img {
  display: block;
  max-width: 100%;
  height: auto;
}

.trinket span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16pt;
  opacity: 0;
}

.trinket:hover span {
  opacity: 1;
}

#oracle-speak {
  text-align: center;
  margin: 24px auto 0px;
}

.has-link-to-art:hover {
  border: solid 1px gold;
}


@media only screen and (max-width: 800px) {

  .trinkets-container {
    grid-template-columns: 1fr;
    width: 90%;
    justify-content: center;
  }

  .trinket {
    width: auto;
    max-width: 256px;
    margin: 0 auto;
  }

  .trinket img {
    width: 100%;
    height: auto;
  }
}
