* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus {
  outline: none;
}
html {
  overflow-x: hidden;
}

:root {
  font-size: 10px;
}
body {
  background: rgba(235, 233, 249, 1);
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 12vh;
}
#app{
    position: inherit;
}

/* ------ burger ------ */

.burger {
  margin-top: 4rem;
  margin-left: 5rem;
  z-index: 10;
  transform: scale(1.8);
}
.burger:hover {
  cursor: pointer;
}
.burger-rotate {
  transform: rotate(-90deg);
  transition: 400ms ease-in;
}
.burger-rotate-back {
  transform: rotate(0deg);
  transition: 400ms ease-in;
}

.burger-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 32rem;
  height: 100vh;
  background-color: #407abbde;
  z-index: 5;
}

.bmn {
  width: 24.3rem;
  margin: 30% auto;
}
.bmnul {
  list-style: none;
  text-align: center;
  color: #fafafa;
}
.burger_li {
  margin-top: 1rem;
}

.b-list {
  font-family: Arial;
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0px;
  color: #cdcdcd;
  text-decoration: none;
}

.b-list-current {
  color: #fafafa;
  font-family: Arial;
  font-size: 3.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: 0px;
  text-decoration: none;
  padding-bottom: 3px;
}

.logo {
  z-index: 10;
}

.burg-slide-def {
  transform: translateX(100%);
  display: none;
}
.burg-slide-in {
  animation: 1s bslidein;
}
.burg-slide-out {
  animation: 1s bslideout;
}

@keyframes bslidein {
  from {
    transform: translateX(-100%);
  }

  to {
    margin-left: 0%;
  }
}
@keyframes bslideout {
  from {
    margin-left: 0%;
  }

  to {
    transform: translateX(-100%);
  }
}
/* ---------------checkbox-------------------------- */
input[type="checkbox"] {
  opacity: 0;
}

#button {
  position: relative;
  display: block;
  width: 27.3rem;
  height: 13rem;
  background-color: rgb(73, 71, 71);
  border-radius: 19rem;
  cursor: pointer;
  transform: scale(0.4);
  top: -2rem;
  right: -2rem;
}

#knob {
  width: 12rem;
  height: 12rem;
  background-color: rgb(228, 226, 105);
  position: relative;
  top: 0.5rem;
  left: 0.5rem;
  border-radius: 12rem;
  transition: 0.4s ease left;
  z-index: 2;
}

#play,
#train {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 4rem;
  font-weight: bold;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-left: 15rem;
  z-index: 1;
}

#play {
  margin-left: 30px;
}

#checkbox:checked + #button #knob {
  left: 15rem;
}

/* ---------------- */

#main {
  width: 99vw;
  display: flex;
  flex-wrap: wrap;
  column-gap: 3vw;
  row-gap: 3vw;
  justify-content: space-evenly;
}

.setcard {
  min-height: 30rem;
  max-height: 20vw;
  min-width: 30rem;
  max-width: 20vw;
  border-radius: 1rem;
  background-color: lightgoldenrodyellow;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  font-size: 2.6rem;
  padding: 1rem 0;
}

.setcard:hover {
  cursor: pointer;
  box-shadow: 0px 1px 35px -6px rgba(0, 0, 0, 0.78);
}

.card-image {
  width: 95%;
  height: 80%;
}
.set-image {
  width: 100%;
  border-radius: 5%;
}

/*--------  */
.link {
    text-decoration: none;
}

/* ----------cards--------------  */
#cards {
    position: inherit;
    display: flex;
    flex-wrap: wrap;
    column-gap: 3vw;
    row-gap: 3vw;
    justify-content: space-evenly;
}

.card {
    transform-style: preserve-3d;
    position: relative;
    min-height: 30rem;
    min-width: 30rem;
    border-radius: 1rem;
    background-color: lightgoldenrodyellow;
    display: flex;
    font-size: 2.6rem;
    padding: 1rem 0;
    transition: 0.5s linear;
  }
  
  .card:hover {
    cursor: pointer;
    box-shadow: 0px 1px 35px -6px rgba(0, 0, 0, 0.78);
  }

  .cardimage {
    width: 95%;
    height: 75%;
    border-radius: 5%;
    backface-visibility: hidden;
    margin: 0.5rem auto;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .card p {
      text-align: center;
      margin-top: 2rem;
  }


.rotate-btn {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    width: 4.5rem;
    height: 4rem;
    background-size: cover;
}
.rotate-btn:hover{
    transform: scale(1.1);
}
.hide{
    opacity: 0;
    transition: 0.5s;
}

.rotate-card {
    transform: rotateY(180deg);
    transition: 0.5s linear;
}

.front, .back {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    backface-visibility: hidden;
}
.back {
    transform: rotateY(180deg);
}

/* -------game-------- */

.game-hide{
  display: none;
}