* {
  padding: 0;
  margin: 0;
}

:root {
  --size: 400px;
}

.body {
  background: url("assets/img/fon4.jpg");
  background-size: cover;
  min-height: 100vh;
  width: 99vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1200px){
  .main{
    width: 75vw;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
  }
}
@media screen and  (min-width: 900px) and (max-width: 1199px){
  .main{
    width: 90vw;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
  }
}
@media screen and  (max-width: 899px){
  .main{
    width: 95vw;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
}
.main {
  min-height: 500px;
  background-color: rgba(98, 132, 148, 0.5);
  display: flex;
}

.puzzle {
  width: var(--size);
  height: var(--size);
  background-color: white;
  position: relative;
  border: 1px solid black;
  border-radius: 3px;
  align-self: center;
}
.newpzl{
    transform: rotateY(360deg) rotateX(360deg);
    transition: 1s;
}

.tile {
  background-color: wheat;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 0;

  transition: all 0.1s;
}
.picDigits{
  color: rgba(255,255,255, 0.8);
}
.hideDigits{
  color: transparent;
}

.tilesize3 {
  width: calc(var(--size) / 3);
  height: calc(var(--size) / 3);
}
.tilesize4 {
  width: calc(var(--size) / 4);
  height: calc(var(--size) / 4);
}
.tilesize5 {
  width: calc(var(--size) / 5);
  height: calc(var(--size) / 5);
  font-size: 2rem;
}
.tilesize6 {
  width: calc(var(--size) / 6);
  height: calc(var(--size) / 6);
  font-size: 1.8rem;
}
.tilesize7 {
  width: calc(var(--size) / 7);
  height: calc(var(--size) / 7);
  font-size: 1.5rem;
}
.tilesize8 {
  width: calc(var(--size) / 8);
  height: calc(var(--size) / 8);
  font-size: 1.2rem;
}

.tile:hover {
  cursor: move;
  background-color: rgb(245, 194, 99);
}
.hide {
  display: none;
}
/* ----------counter---------- */
.counter {
  width: 150px;
  margin: 1rem;
  background-color: blanchedalmond;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.timer, .moves {
  background-color: #fff;
  width: 140px;
  height: 40px;
  margin: 5px;
  font-size: 2rem;
  text-align: center;
}

/* ----------menu------------ */
.menu {
  max-width: 200px;
  height: 400px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.button {
  font-size: 1.1rem;
  width: 100%;
  min-height: 3rem;
  border-radius: 3px;
  background-color: rgb(245, 230, 201);
}

.button:hover {
  cursor: pointer;
  background-color:  rgb(204, 192, 167);
}
.input {
  font-size: 1rem;
  width: 10rem;
  min-height: 2rem;
  border-radius: 3px;
}

.settings{
  width: 12rem;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

/* --------------modal---------------- */

.modal {
  width: 40vw;
  height: 40vh;
  position: fixed;
  top: 30vh;
  left: 30vw;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.7vw;
  transform: scale(0);

  font-size: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.modal-active {
  transform: scale(1);
  transition: 0.3s;
}

.modaltext {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modaltext p{
    text-align: center;
}
.btns {
  width: 70%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
.modalbutton {
  font-size: 1.1rem;
  width: 8rem;
  min-height: 2rem;
  border-radius: 3px;
  background-color: rgb(245, 230, 201);
}

.modalbutton:hover {
  cursor: pointer;
  background-color:  rgb(204, 192, 167);
}
/* -------------table------------ */
.table{
  width: 40vw;
  height: 50vh;
  position: fixed;
  top: 25vh;
  left: 30vw;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.7vw;
  transform: scale(0);

  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.table-active {
  transform: scale(1);
  transition: 0.3s;
}
th, td{
  border: solid 1px black;
  text-align: center;
}
.table-item{
  width: 90%;
  border: solid 1px black;
  border-collapse: collapse;
}

.volume{
  height: 40px;
  width: 40px;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  background-color: rgb(245, 230, 201);
}
.volume:hover{
  background-color:  rgb(204, 192, 167);
}