*{
    margin:0;
    padding:0;
}html{
    font-size:12px;
}

.page{
    max-width: 375px;
    min-width: 375px;
    margin:auto;
    margin-top: 1rem;
    width: 98%;
}
#title{
    font-size: 1.6rem;
    text-align: center;
    align-items: center;
    margin-bottom: 1rem;

}
.controls{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: auto;
    border-bottom: 2px solid black;
    
   
}
.stats{
    text-align: center;
    min-width: 50%;
    
}
.dice{
    border: 2px solid black;
    
    padding: 0.6rem;
    border-radius: 20%;
    

}
.buttons{
    text-align: center;
    
}
.buttons button{
    font-size: 2rem;
    margin: 1rem;
    padding: 0.5rem;
}
#informations{
    font-size: 1.4rem;
    margin: 1px 10px;
}
.table{
    margin:auto;
    border-top: 2px double black;
    
}
.rectangle{
    display:flex;
    justify-content: space-between;
}

.fieldsTop{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width:100%;
    background-color: white;
}
.spot {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0.1rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

}

.spot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Pionki */
.red, .blue, .green, .yellow {
  position: static;
  max-width: 4rem;
  margin: 0.2rem;
}
.red.active,
.blue.active,
.green.active,
.yellow.active{
    position:absolute;
    z-index: 10;
}


.fieldsMiddle{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin:auto;
    width: 95%;
    background-color: white;
  
}
.fieldsBottom{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
    background-color: white;
}

.home{
    width:36rem;
    margin: 0.8rem;
    display:flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.home img{
    max-width: 4rem;
    margin: 0.2rem;
   
   
}




@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s;
}

