

div.snake {
  width: 700px;
  margin: auto;
  border-top: 2px dashed;
  border-color: #0272a7;
  margin:0; padding: 30px;
  counter-increment: section;
  position: relative;
}



div.snake:nth-child(even):before {
  content: counter(section);
  right: 100%; 
  margin-right: -20px;
  position: absolute;
  border-radius: 50%;
  border-left: 2px dashed #0272a7;
  padding: 0.5rem;
  height: 2.5rem;
  width: 2.5rem;
  background-color: #0272a7;
  text-align:center;
  color: white;
  font-size: 110%;
}

div.snake:nth-child(odd):before {
  content: counter(section);
  left: 100%; 
  margin-left: -20px;
  position: absolute;
  border-radius: 50%;
  border-right: 2px dashed #0272a7;
  padding: 0.5rem;
  height: 2.5rem;
  width: 2.5rem;
  background-color: #0272a7;
  text-align:center;
  color: white;
  font-size: 110%;
}



div.snake:nth-child(even) {
  border-left: 2px dashed;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  border-left: 2px dashed #0272a7;
  margin-right: 30px; 
  padding-right: 0;
}

div.snake:nth-child(odd) {
  border-right: 2px dashed;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  border-right: 2px dashed #0272a7;
  margin-left: 30px; 
  padding-left: 0;
}

div.snake:first-child {
  border-top: 0;
  border-top-right-radius:0;
  border-top-left-radius:0;
}

div.snake:last-child {
  border-bottom-right-radius:0;
  border-bottom-left-radius:0;
}

.container2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.card108 {
  position: relative;
  display: flex;
  height: 410px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  transition: transform 0s;
  transform-style: preserve-3d;
}

.face {
  position: absolute;
  height: 100%;
  width: 100%;
  border: 1px solid cornflowerblue;
  background: lightblue;
  backface-visibility: hidden;
  padding: 10px;
  padding-top: 50px;
}

.back {
  display: grid;
  place-items: center;
  background: #ccc;
  transform: rotateY(180deg);
  padding: 5px;
}

.card108:focus,
.card108:focus-within,
.card108:hover {
  transform: rotateY(180deg);
}


.reduce-motion .back {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition-duration: 0s;
  transform: none;
}

.reduce-motion .card108:focus,
.reduce-motion .card108:focus-within,
.reduce-motion .card108:hover {
  transform: none;
}

.reduce-motion .card108:focus .back,
.reduce-motion .card108:focus-within .back,
.reduce-motion .card108:hover .back {
  opacity: 1;
  pointer-events: all;
  transform: none;
}