body{
    margin: 0;
    padding: 0;
}

.page-title {
    color: #FF6D00;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: normal;
    text-align: center;
    font-size: 4em;
}

/* boards */

#board-container{
    position: relative;
    width: 400px;
    height: 400px;
    background: beige;
    margin: 0 auto;
    border: 10px solid grey;
    box-sizing: content-box;
    display: flex;
    flex-wrap: wrap;
    z-index: 3;
}
#board{
    width: 400px;
    height: 400px;
    background: #444;
    margin: 0 auto;
    border: 10px solid grey;
    box-sizing: content-box;
    display: flex;
    flex-wrap: wrap;
}

#shuffled-board{
    width: 400px;
    /* margin: 0 auto; */
    background: beige;
    box-sizing: content-box;
    display: flex;
    flex-wrap: wrap;
    /* border: 10px solid grey; */
    /* margin-bottom: 40px; */
    position: absolute;
    top: 0;
    left: 0;
}

.shuf-fake{
    position: absolute;
    width: 400px;
    height: 400px;
    background: crimson;
    border: 10px solid grey;
    box-sizing: content-box;
    top:0;
    left:0;
}

/* pieces */
.emptyholder{
    width: 100px;
    height: 100px;
    border: 1px solid #444;
    box-sizing: border-box;
    z-index: 1;
    /* background: rgb(91, 255, 219); */
    background: beige;
    /* position: absolute; */
}
.piece{
    width: 100px;
    height: 100px;
    border: 1px solid #444;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.piece.emptypiece{
    background: beige;
    z-index: 98;
}

.piece.puzzlepiece{
    background: beige;
    color: white;
    cursor: pointer;
    z-index: 99;
    transform: scale(1) !important;
    transition: transform 100ms ease-out;
}

.piece.puzzlepiece.selected{
    opacity: .9 !important;
    transform: scale(1.09) !important;
    z-index: 101;
    transition: transform 200ms ease;
}

.piece.puzzlepiece:not(.selected):hover{
    opacity: .7 !important;
    transform: scale(1.01) !important;
    z-index: 101 !important;
    border: 2px solid orange !important;
    
}

.piece.emptypiece:hover{
    opacity: .9 !important;
    z-index: 101 !important;
    border: 1px solid rgba(68, 68, 68, 0.815);
}

/* game info */
.showposition {
    text-align: center;
    display: none;
}

.game-info{
    text-align: center;
    margin: 10px;
}
/* END game info */

/* overlays */
.overlay-text {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    z-index: 999;
    color: #FF6D00;
    font-family: Creepy, serif;
}

.overlay-text.visible {
    display: flex;
    flex-direction: column;
    animation: overlay-grow 500ms forwards;
    
}

.overlay-text-small {
    font-size: .3em;
}

#startbtn{
    background: transparent;
    border: 1px solid #FF6D00;
    cursor: pointer;
    padding: 10px 20px;
    color: #FF6D00;
    border-radius: 5px;
}

#startbtn:hover{
    padding: 11px 22px;
    font-size: 14px;
    border-width: 2px;
}

@keyframes overlay-grow {
    from {
      background-color: rgba(0, 0, 0, 0.4);
      font-size: 0;
    }
    to {
      background-color: rgba(0, 0, 0, .9);
      font-size: 2em;
    }
}

@keyframes scalePiece {
    from {
      transform: scale(1);
      opacity: 1;
    }
    to {
      transform: scale(2);
      opacity: .7;
    }
}
/* END overlays */
  