h1 {
    /*color: red;*/
}


body {
    /*height: 100%;*/
    /*width: 100%;*/
    padding-top:0;
    padding-left:0;
    padding-right:0;
    background-color: white;

}

#megacontainer {
    width:100%;
    display: inline-block;

    margin:auto;

}

.DragContainer {
    font-size: 3em;
    display: inline;
}

#antDrag {
    display: inline;
}

#spelplan-container {
    /*position: relative;*/
    padding:0;
    margin-top: 30px;

}

#spelplan {
    margin-left: auto;
    margin-right: auto;
    /*margin-top:200px;*/
    border: solid 10px;
    position: relative;
    /*width: 164px;
    height: 164px;*/
    width: 640px;
    height: 640px;
    background-color: grey;
    /*box-shadow: 0 19px 38px;*/
    /*transform: scale(0.6,0.6);*/
}



.bricka {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    position: absolute;
    /*height: 40px;
    width: 40px;*/
    height: 160px;
    width: 160px;

    line-height: 160px;
    /*background-color: #f88;*/
    background-color: #57F;
    text-align: center;
    border: solid 1px;
    border-radius: 5px;
    transition: left 0.2s, top 0.2s;
    font-size: 6em;
    font-family: fantasy;
    cursor: context-menu;

    -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}

.knapp {
     background-color: grey;
     border: solid 10px black;
     display: block;
     margin:auto;
     margin-top: 10px;
     text-align: center;
     font-size: 3em;
     width: 640px;
     padding-top: 0.5em;
     padding-bottom: 0.5em;
     /*box-shadow: 0 19px 38px;*/
 }



.knapp:hover {
    background-color: lightgrey;
    color:black;
}


.inneram {
    display:none;
}

.visadölj {
    display: none;
}

.synlig {
    display:block;
}

p {
    font-size: 2em;
    text-align: center;
}


/*@media only screen and (max-height: 900px) {
    #megacontainer {
        transform: scale(0.6,0.6);

        margin-top:-220px;

    }
    .knapp {
        margin:auto;
        margin-top:50px;
        margin-bottom:50px;
    }
}*/


@media only screen and (max-width: 700px) {
    #megacontainer {
        transform: scale(0.9,0.9);

        margin-top:-100px;

    }
    #spelplan {
        left:0;
}
@media only screen and (max-width: 650px) {
        #megacontainer {
                transform: scale(0.85,0.85);

                margin:auto;
                margin-top:-100px;
                margin-left:-25px;

    }
}

@media only screen and (max-width: 610px) {
        #megacontainer {
                transform: scale(0.75,0.75);
                margin-left:-50px;
                margin-top:-150px;
    }
}

@media only screen and (max-width: 530px) {
        #megacontainer {
                transform: scale(0.70,0.70);
                margin-left:-60px;
                margin-top:-160px;
    }
}


@media only screen and (max-width: 500px) {
        #megacontainer {
                transform: scale(0.65,0.65);
                margin-left:-70px;
                margin-top:-200px;
                /*width:100%;*/
    }

}

@media only screen and (max-width: 400px) {
        #megacontainer {
                transform: scale(0.5,0.5);
                margin-left:-70px;
                margin-top:-270px;
                /*width:100%;*/
    }

}
