

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    border-radius: 4px;
    box-sizing: border-box;
  }

  body{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  background-color: #00b894;
    /* height: 100vh; */
    gap: 1.2rem;
  }
  
  .grid{
    transform: translate(-50%);
    display: grid;
    width: 20rem;
    height: 50vh;
    grid-template-columns: repeat(10,minmax(4rem,1fr));
    grid-template-rows: repeat(20,minmax(4rem,1fr));
    grid-auto-rows: 1fr; 

  }
  .piece--element{
    box-shadow: inset 0 0 0 1.5px #333;
  }
  .score,
  .fullscreen-btn{
    box-shadow: 0 1.2rem 3.4rem rgba(0,0,0,0.3);
    background-color: #ebf5fb;
    padding: 1.2rem;
    font-size: 2.4rem;
    color: #333;
    
  }
  .backgorund--element{
    border: 1px solid #00b894;

}
.fullscreen-btn{
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.fullscreen-btn:hover{
  background-color:#80dcca;
}

.game-over{   
width: 50rem;
position: absolute;
display: flex;
align-items: center;
justify-content: space-between;
right: 0;
left: 0;
margin-left: auto;
margin-right: auto;
padding: 1.2rem;
z-index: 999;
font-size: 2.4rem;
background-color: black;
color: #fff;
transition: all 0.5s;
}
button{
    padding: 0.8rem;
    cursor: pointer;
    font-size: 2rem;
}
.hidden{
    transform: translateX(-300%);
}
.scores{
    z-index: 1;
    color: #333;
    position:absolute;
    height: 50vh;
    width: 40rem;
    right: 61%;
    font-weight: 700;
    transition: all 0.5s;

}
.first__score--element{
    border: 1px solid #00b894;
    padding: 1.2rem;
    font-size: 2rem;
    background-color: whitesmoke;
    
}

.score--element{
    border: 1px solid #00b894;
    padding: 1.2rem;
    font-size: 1.4rem;
    background-color: #ebf5fb;
}

.controller{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(3,1fr);
  position: absolute;
  background-color:rgba(135, 135, 135,0.8);
  width: 22vmin;
  height: 22vmin;
  right: 10%;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #333;
  visibility: hidden;
}
.up{ 
  grid-column: 2/3;
}

.right{
  grid-row:2/3;
  grid-column: 3/-1;
}
.left{
  
  grid-row: 2/3;
}
.down{
  grid-row: 3/4;
  grid-column: 2/3;
}
.btn{
  background-color:#ebf5fb ;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.2s;
}

.btn:active{
  background-color:#00b894;
  box-shadow: 0 1.2rem 2.4rem rgba(0,0,0,0.05);
  transform: scale(1.3);
}
.btn:active .move-icon{
  color:#80dcca;
}
.move-icon{
  font-size: 3rem;
  color: #004a3b;
  transition: all 0.1s;
  pointer-events: none;
}
.stop-events{
  pointer-events: none;
}