
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600&display=swap');


body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  line-height: 32px;
  /*font-weight: 600;*/
  max-width: 750px;
}

* {
  outline: none;
}

.page {
  max-width: 750px;
  position: relative;
  height: 435px;
  padding: 15px;
  box-sizing: border-box;
}

a {
  color: black;
}

input[type=button] {
  border: 1px #f90 solid;
  border-radius: 2px;
  background: #f90;
  color: white;
  vertical-align: middle;
  height: 28px;
  font-size: 16px;
  margin-right: 10px;
}

.cards {
  position: relative;
}

.card {
  width: 153px;
  height: 204px;
  position: absolute;
  transition: top .5s, left .5s, width .5s, height .5s;
  top: 100px;
  left: 0;
  /*border: 2px solid #f90;*/
  cursor: pointer;
  z-index: 10;
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
  perspective: 1000px;
}

.inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.card .front, .card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 2px;
}

.card .front {
  background-image: url(../i/Рубашка.png);
}

.card .back {
  transform: rotateY(180deg);
}

.card:not(.selected):hover {
  top: 80px;
}

.card.selected {
  left: 0px !important;
  top: 0 !important;
  z-index: 100;
  /*transform: scale(2);*/
  cursor: default;
  width: 307px;
  height: 410px;
  margin-top: 0 !important;
}

.card.selected .inner {
  transform: rotateY(180deg);
}

.result {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,.9);
  z-index: 20;
  display: none;
}

.text {
  position: absolute;
  left: 340px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

.text-inner {
  display: none;
}

.text-inner.small {
  font-size: 20px;
  line-height: 26px;
}