body {
  text-align: center;
  background: linear-gradient(MistyRose, Pink);
  /* background-image: url(../Images/Moon.jpg); */
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  font-family: sans-serif;
}
h1,
h2,
h3 {
  font-size 200%;
  line-height: 1.2;
  page-break-after: avoid;
}
p {
  margin: 0 auto;
  margin-bottom: 1em;
  font-family: sans-serif;
  font-size 24px;
  max-width: 80%;
}
.button {
  display: flex;
  padding: 0.2em;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 4em;
  border-radius: 4px;
  background-color: mediumaquamarine;
}
.button p {
  flex-shrink: 0;
  font-size: 32;
  margin: 0;
  width: fit-content; 
  text-align: center;
}
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 400px;
  max-width: 100%;
  height: auto;
 }
.box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 25px;
  width: 90%;
  min-width: 5em;
  background-color: Yellow;
  /* transform: rotate(-0.1turn); */
}
.box.yellow {
  display: flex;
  padding: 0.5em;
  width: fit-content;
  aspect-ratio: 1;
  background-color: Gold;
  animation: spin 2s;
  animation-timing-function: ease-in-out;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}
@keyframes spin {
    from {
      transform: rotate(-0.0turn);
      border-radius: 25px;
      }
    to   {
      transform: rotate(-0.1turn);
      border-radius: 0;
      }
}
/* .box.yellow:hover { */
  /* transform: rotate(-0.15turn); */
  /* border-radius: 50%; */
/* } */
.boxice {
  position: relative;
  margin: 0 auto;
  width: 80%;
  height: 200px;
}
.boxicecont{
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 25px;
  /* padding: 1em; */
}
.splitL {
  background: Yellow;
  padding-right: 50%;
}
.splitL h1 {
  text-align: right;
  font-family: serif;
  letter-spacing: 0.3em;
  font-size: 48;
}
.splitL p {
  text-align: right;
}
.splitR {
  background: Black;
  padding-left: calc(50% + 18px);
  /* slanted left edge: top and bottom x-positions differ by 2*18px ≈ 100px * tan(20°) */
  clip-path: polygon(calc(50% + 18px) 0, 100% 0, 100% 100%, calc(50% - 18px) 100%);
  /* transition: clip-path 1.2s ease-in-out; */
}
.splitR h1 {
  text-align: left;
  font-family: mono;
  letter-spacing: 0.1em;
  font-size: 48;
  color: white;
}
.splitR p {
  text-align: left;
  color: white;
}
.hoverbox {
  --w: 80.05;
  --h: 70.05;
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}
.hoverbox p {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.hoverbox img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
 }

.hoverbox .stm,
.hoverbox .fpga {
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  container-type: inline-size;
  left: calc(var(--x) / var(--w) * 100%);
  top:  calc(var(--y) / var(--h) * 100%);
  width: calc(var(--s) / var(--w) * 100%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.hoverbox .stm p,
.hoverbox .fpga p {
  flex-shrink: 0;
  margin: 0;
  transform: rotate(-45deg);
  font-family: monospace;
  font-size: 8px;
  line-height: 1.2;
  display: inline-block;
  width: fit-content; 
  text-align: center;
}
.hoverbox .stm  {
  --x: 29.608;
  --y: 28.803;
  --s: 10;
  background: Whitesmoke;
}
.hoverbox .fpga {
  --x: 51.150;
  --y: 28.958;
  --s: 6;
  background: Gold;
}
.hoverbox .stm:hover,
.hoverbox .fpga:hover {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(2) ;
 }
