body {
  font-size: 1rem;
}

button, select {
  padding: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

img.tarot {
  display: inline-block;
  overflow: hidden;
  margin: 10px;
  padding: 1px;
  width: 5rem;
  box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);
  border-radius: 5px 5px 5px 5px;
  border: 0px solid #000000;
  cursor: pointer;
  color: transparent;
}

img.tarot:hover {
  box-shadow: 0px 0px 4px 5px rgba(0,0,0,0.83);
}

img.tarot {
  background: #fff;
  background-size: contain;
}

img.tarot.hidden {
  box-shadow: none;
}

.hidden {
  display: none !important;
}

div.info {
  margin: 1rem;
  text-align: center;
}

#tarotDeck {
  margin: auto;
  margin-top: 5rem;
  padding: 1rem;
  width: 80%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#tarotDeck img.tarot {
  margin: -1em;
}

details.layoutPreview {
  display: flex;
  flex-flow: column wrap;
  gap: 0;
}

details.layoutPreview summary {
  cursor: pointer;
}

#tarotTable, details.layoutPreview div {
    display: grid;
    grid-template-rows: auto;
    place-items: center;
    min-height: 30vh;
    border: 1px dotted gray;
    border-radius: 20px;
    margin: 30px auto;
    padding: 0;
}

details.layoutPreview div {
  padding: 0.5rem;
  min-height: auto;
  min-width: auto;
  cursor: pointer;
  border-radius: 0.2rem;
  gap: 0.1rem;
  overflow: hidden;
}

details.layoutPreview div:hover {
  border-color: #000;
}

details.layoutPreview div div {
  width: 1.2rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
}

.info, .info button {
  margin: 1rem;
  font-size: 0.8rem;
}

#tarotTable .info {
  grid-column: 1 / span 22;
  grid-row: 1 / span 22;
  line-height: 3rem;
}

@media screen and (min-width: 930px) {
  #tarotTable {
    width: 40%;
  }
}

@media screen and (min-width: 1213px) {
  #tarotTable {
    width: 30%;
  }
}

.default {
  grid-template-columns: 32% 12% 12% 12% 32%;  
  grid-template-areas:
    "c10 . c8 . c11"
    ". c4 . c5 ."
    "c1 . c2 . c3"
    ". c6 . c7 ."
    "c12 . c9 . c13";
}

.three {
    grid-template-columns: 25% 15% 20% 15% 25%;
    grid-template-areas:
        ". c1 c2 c3 .";
}

.cross {
  grid-template-columns: repeat(3, 30%); 
  grid-template-areas:
    ". c4 ."
    "c1 c2 c3"
    ". c5 ."; 
}

.pyramid {
  grid-template-columns: repeat(5, 20%);  
  grid-template-areas:
    ". . c6 . ."
    ". c4 . c5 ."
    "c1 . c2 . c3"; 
}

.allCards {
  grid-template-columns: repeat(11, 9%);  
  grid-template-areas:
    "c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11"
    "c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22"; 
}

.tMap {
  grid-template-columns: repeat(5, 20%);  
  grid-template-areas:
    "c16 . c15 . c17"
    ". c12 c13 c14 ."
    "c5 c1 c2 c3 c4"
    ". c6 c7 c8 ."
    "c10 . c9 . c11";
}
