* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif, monospace, arial;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, beige, white);
  height: 100vh;
  overflow: hidden;
}

.mezuzah {
  background: white;
  padding: 0.5em;
  width: calc(30vh + 30vw);
  height: calc(42.426vh + 42.426vw);
  font-size: calc(0.7vh + 0.7vw);
  box-shadow: 0 0 3em #000000;
  transition: 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media print {
  .mezuzah {
    width: 100%;
    height: 100%;
    font-size: calc(0.96vh + 0.96vw);
  }
}
.mezuzah .shema {
  text-align: center;
  font-size: 2.5em;
  line-height: 0.6em;
  margin-bottom: 0.5em;
}
.mezuzah .shema .hebrew {
  font-weight: bold;
}
.mezuzah .shema small {
  font-size: 0.5em;
}
.mezuzah .part {
  display: flex;
  flex-direction: column;
}
.mezuzah .part .commandments {
  display: flex;
  flex-direction: column;
  margin-left: 2em;
  padding-left: 2em;
  border-left: 0.2em solid rgba(0, 0, 0, 0.1254901961);
}
.mezuzah .part .commandment {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  padding: 0.3em;
}
.mezuzah .part .commandment .data {
  display: flex;
  flex-direction: column;
  align-items: left;
  max-width: calc(100% - 4.5em);
}
.mezuzah .part .commandment .data .text {
  font-size: 1.1em;
  font-weight: bold;
}
.mezuzah .part .commandment .data .reference {
  font-size: 0.68em;
  font-weight: bold;
  color: grey;
}
.mezuzah .part .commandment .counter {
  width: 4em;
  height: 4em;
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  margin-right: 0.5em;
  top: 0.2em;
}
.mezuzah .part .commandment .counter::before {
  content: attr(title);
  position: absolute;
  top: -1.5em;
  font-size: 0.5em;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bolder;
}
.mezuzah .part .commandment .counter.aleph {
  background-image: url("../images/01_aleph.jpg");
}
.mezuzah .part .commandment .counter.beth {
  background-image: url("../images/02_beyt.jpg");
}
.mezuzah .part .commandment .counter.gimel {
  background-image: url("../images/03_gimel.jpg");
}
.mezuzah .part .commandment .counter.daleth {
  background-image: url("../images/04_dalet.jpg");
}
.mezuzah .part .commandment .counter.he {
  background-image: url("../images/05_hey.jpg");
}
.mezuzah .part .commandment .counter.waw {
  background-image: url("../images/06_vav.jpg");
  left: 1em;
}
.mezuzah .part .commandment .counter.waw::before {
  left: 25%;
}
.mezuzah .part .commandment .counter.zayin {
  background-image: url("../images/07_zayin.jpg");
}
.mezuzah .part .commandment .counter.heth {
  background-image: url("../images/08_hhet.jpg");
}
.mezuzah .part .commandment .counter.teth {
  background-image: url("../images/09_tet.jpg");
}
.mezuzah .part .commandment .counter.yodh {
  background-image: url("../images/10_yud.jpg");
  top: 1em;
}
.mezuzah .part .commandment .counter.taw {
  background-image: url("../images/22_tav.jpg");
}
