body{
    padding: 0;
    margin: 0;
}
.piece{
    width: 50px;
    height: 50px;
    border-style: solid;
    border-width: 2px;
    position: relative;
    margin: 13px;
    display: inline-block;
    background-color: #fff;
    cursor: pointer;
    text-align: left;
}
.piece.round{
    border-radius: 50%;
}
.piece.color1{
    border-color: orange;
}
.piece.color2{
    border-color: rgb(69, 179, 59);
}
.piece.full .test_full{
    height: 100%;
    width: 100%;
}
.piece.full .test_full:before, .piece.full .test_full:after{
    content: '';
    position: absolute;
    top: calc( 50% - 1px );
}
.piece.full.square .test_full:before, .piece.full.square .test_full:after{
    left: -10px;
}
.piece.full .test_full:before{
    transform: rotate(45deg);
}
.piece.full .test_full:after{
    transform: rotate(-45deg);
}
.piece.full.round .test_full:before, .piece.full.round .test_full:after{
    width: 100%;
}
.piece.full.square .test_full:before, .piece.full.square .test_full:after{
    width: 141.4%;
}
.piece.full.color1 .test_full:before, .piece.full.color1 .test_full:after{
    border-top: 1px solid orange;
    border-bottom: 1px solid orange;
}
.piece.full.color2 .test_full:before, .piece.full.color2 .test_full:after{
    border-top: 1px solid rgb(69, 179, 59);
    border-bottom: 1px solid rgb(69, 179, 59);
}
.piece.spikes .test_spikes{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
    transform: scale(0.88) rotate(45deg);
}
.piece.color1 .test_spikes{
    background-color: orange;
}
.piece.color2 .test_spikes{
    background-color: rgb(69, 179, 59);
}
#checkboard{
    font-size: 0;
    clear: both;
    position: relative;
}
.case{
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    display: inline-block;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    margin: 2px;
}
/*.selected, .unused .piece:hover, .piece.last_set{*/
.unused .piece:hover, .piece.last_set{
    box-shadow: 0px 0px 25px -1px rgba(0,0,0,0.75);
}
.case:not(.filled):hover{
    box-shadow: inset 0px 0px 25px -1px rgba(0,0,0,0.25);
}
.piece.moved{
    position: absolute;
    top: -1px;
    left: -1px;
}
#hld{
    width: 400px;
    margin: auto;
    max-width: 100%;
    text-align: center;
    padding-top:5px;
}

h1, #home_link{
    font-family: verdana, arial, sans-serif;
    text-align: left;
    font-size: 14px;
    color: #6d6d6d;
    margin-left: 5px;
    text-decoration: none;
}
h1 a + a{
    float: right;
    text-decoration: none;
    font-size: 20px;
    margin-right: 5px;
    position: relative;
    top: -4px;
}
.output{
    border: 1px dashed black;
    height: 100px;
    margin-top: 6px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    align-items: center;
    font-family: verdana, arial, sans-serif;
}
.button{
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    background-color: #3c8ed6;
    margin: 5px;
}
.button:active {
    position: relative;
    top: 2px;
    left: 2px;
}
.solved{
    background-color: #eaeaea;
    transition-duration: 1s;
    transition-property: background-color;
    z-index: -2;
}
.message_pre_button{
    margin-bottom: 10px;
}

@keyframes anil_help_link {
    from {
        transform: scale(1);
    }
    50%  {
        transform: scale(2);
    }
    to {
        transform: scale(1);
    }
}
.rotating {
    animation: anil_help_link 0.4s linear 3;
}
.help_hld{
    position: absolute;
    background-color: #e8e8e8;
    width: 100%;
    left: 0;
    z-index: 3;
    display: none;
    font-family: verdana, arial, sans-serif;
    padding: 5px;
    box-sizing: border-box;
}
.help_hld .close{
    float: right;
    margin: 10px;
}
.pseudo_hld #pseudo, .pseudo_hld button{
    width: 100%;
    font-size: 20px;
}
.wellcome{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba( 255, 255, 255, 0.8);
    font-family: verdana, arial, sans-serif;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
}
#horizontal_warning{
    display: none;
}
@media screen and (min-width: 120px) and (max-width: 850px) and (orientation: landscape) {
    #help_hld, #hld{
        display: none;
    }
    #horizontal_warning{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        font-family: verdana, arial, sans-serif;
        font-size: 20px;
        width: 80vw;
        height: 100vh;
        text-align: center;
        margin: auto;
    }
}

.debug{
    position: fixed;
    left: 0;
    top: 0;
    width: 350px;
    height: 200px;
    background-color: #ccc;
    display: none;
}