* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

p {
  margin: 0.6em 0;
}

a {
  color: white;
}

body {
  background-color: #114;
  background: url(images/bg.webp);
  background-attachment: fixed;
  background-position: top;
  font-size: 1.14em;
  color: #DDF;
}

#main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  margin: auto;
  margin-top: 2.5em;
}

main {
  background-color: #224;
  background: linear-gradient(-210deg, rgb(58, 58, 116),  #224 300px);
  border: #5f5f96 1px solid;
  border-bottom: none;
  padding: 1em;
  width: 100%;
  flex: 1;
  padding-bottom: 2em;
  border-radius: 5px 5px 0 0;
  min-width: 400px;
}

footer {
  width: 100%;
  height: 90px;
  background-color: #224;
  background: linear-gradient(#224 60%, rgb(96, 96, 184), rgb(176, 176, 209));
  border: #5f5f96 1px solid;
  border-top: none;
  text-align: center;
  padding-bottom: 30px;
  color: rgb(185, 185, 255);
  border-radius: 0 0 5px 5px;
  margin-bottom: 1.6em;
  min-width: 400px;
}

footer hr {
  width: 70%;
  margin: auto;
  border: #5f5f96 2px solid;
  border-radius: 100%;
}

select {
  margin: 0.2em 0;
}

select,
option {
  font-size: 90%;
  color: #114;
  padding: 0 0.3em;
}

.selects {
  display: flex;
  width: 70%;
  justify-content: space-around;
  gap: 10%;
  margin: auto;
  margin-top: 1em;
}

label {
  margin-bottom: 0;
}

#shield-grid {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  display: grid;
  max-width: 80%;
  margin: auto;
  margin-top: 1.5em;
}

.shield-item {
  padding: 12px;
  width: 100%;
  height: auto;
  flex: 1 0 auto;
  border: #DDF 1px solid;
  background-color: #224;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.shield-item img {
  max-width: 80%;
}

.shield-item p {
  text-align: center;
  margin: 0.3em 0 0 0;
}

.shield-item>div {
  margin-top: 1px;
  padding: 3px;
  gap: 5px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.shield-item.standalone {
  width: 50%;
  margin: auto;
  margin-top: 0.2em;
}

.standalone>img{
  max-width: 100px;
}

summary {
  background-color: rgb(79, 79, 128);
  width: 102%;
  margin-left: -1%;
  border: #9797b4 1px solid;
  border-radius: 5px;
  padding: 0.3em;
  cursor: pointer;
}

details {
  margin-bottom: 0.5em;
  background-color: rgba(79, 79, 128, 0.4);
  border-radius: 5px;
  padding-bottom: 5px;
}

details p {
  padding: 0.2em 0.7em;
}

#show-credits {
  border: #9797b4 1px solid;
  background-color: #5f5f96;
  color: #DDF;
  padding: 0.3em;
  border-radius: 3px;
  cursor: pointer;
}

.darken-filter {
  position: absolute;
  z-index: 2;
  color: rgba(17, 17, 68, 0.4);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.credits {
  line-height: 1.5em;
  padding: 0.3em;
  font-size: 0.9em;
}

#return a {
  color: #9797b4;
}

@media screen and (max-width: 1200px) {
  #shield-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    max-width: 90%;
    justify-content: center;
  }
}

@media screen and (max-width: 850px) {

  #shield-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    max-width: 90%;
  }
}