body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: rgb(31, 31, 31);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: monospace;
}

div.whole{
    display: flex;
    flex-direction: column;
    justify-content:space-evenly;
    align-items:center;
    height:820px;
    width:820px;
    overflow:visible;
}

#allblock{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;

}

canvas {
    background-color: whitesmoke;
    
    z-index: 0;
    border: 2px solid rgb(31, 31, 31);
    border-radius: 7px;
}

input{
    margin-bottom: 2rem;
    z-index: 1;
    background-color: azure;
    border: none;
    border-radius: 0.5rem;
    text-align: center;
    margin-left: 1rem;
}

div.menu{

    display: none;
    position: absolute;
    flex-direction: column;
    width: 400px;
    height: 300px;
    box-shadow: 10px 0px 14px grey, -10px -0px 14px grey, -0px -10px 14px grey, -0px 10px 14px grey;
    padding: 1rem;
    background-color: white;
    z-index: 3;

}

div.start_game{

    display: none;
    position: absolute;
    flex-direction: column;
    width: 300px;
    height: 300px;
    border: 2px solid rgb(31, 31, 31);
    border-radius: 7px;
    padding: 1rem;
    background-color: white;
    justify-content: center;
    z-index: 3;

}

div h1.start{
    display: block;
    align-self: center;

}

button.X{

    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    box-shadow: 1px 0px 4px grey, -1px -0px 4px grey, -0px -1px 4px grey, -0px 1px 4px grey;
}

button.menubtn{
    margin-top: 1rem;
    width: 33%;
    min-width: fit-content;
    border: none;
    box-shadow: 1px 0px 4px grey, -1px -0px 4px grey, -0px -1px 4px grey, -0px 1px 4px grey;
    align-self: center;
    cursor: pointer;

}

.btn{
    margin-right: 0.5rem;
    min-width: fit-content;
    border: none;
    box-shadow: 1px 0px 4px grey, -1px -0px 4px grey, -0px -1px 4px grey, -0px 1px 4px grey;
    align-self: center;
    background-color: #f0ffff;
    
}

.btn:hover{

    background-color: gray;
}

button:hover{

    background-color: gray;
}

button.btnwideself{
    width:max-content;
    z-index: 3;
}

div h1{
    display: block;
    margin-top: 1rem;
    align-self: center;

}


#editorbuttons{
    margin: 2rem;
    display: none;
    flex-direction: column;
}

.flex{
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
}

.topbar{
    display: flex;
    flex-direction: row;
    width: 800px;
    background-color: whitesmoke;
    height: 40px;
    position:relative;
    align-items:center;
    justify-content: space-evenly;
    border: 2px solid rgb(31, 31, 31);
    border-radius: 7px;
}

input.topdisplay{

    border: 2px solid rgb(31, 31, 31);
    margin: 0px;
    width:15%
}

.shopbar{

    width: 800px;
    background-color: whitesmoke;
    height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    position:relative;
    border: 2px solid rgb(31, 31, 31);
    border-radius: 7px;

}

div.towerbar{
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    height: 80%;
    border: 2px solid rgb(31, 31, 31);
    margin-left: 5px;
}

.towerselect{
    
    border: 2px solid rgb(31, 31, 31);
    padding: 2px;
    margin: 2px;
    background-color: whitesmoke;
}


button.towerselect:hover{
    
    background-color: grey;
    cursor: pointer;


}
button.locked{

    background-color: rgb(31, 31, 31);
    color: whitesmoke;
}

div.GameSpeed{
    display: flex;
    flex-direction: column;

    height: 80%;
    width: 200px;
    border: 2px solid rgb(31, 31, 31);
    margin-left: 5px;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

input.gamespeedrange{
width: 70%;

}

div#selectedtowerdisplay{
    display: flex;
    flex-direction: column;
    margin-left: 5px;
    border: 2px solid rgb(31, 31, 31);
    padding: 2px;
    height: 75%;
    width: 150px;
    align-items:center;
    justify-content:center;
    
}



.widefield{
    width: 10rem;
}



div.center{
    width: min-content;
    height:min-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input[type="range"]{
    margin: 2px;
    filter: grayscale(100);
}

#waveprogres{
    filter: grayscale(100);
    -webkit-appearance: none;
    border: 2px solid rgb(31, 31, 31);
    border-radius: 4px;
    appearance: none;
}

p.center{
    align-self: center;
}

div.editmenu{
    
    position: absolute;
    display: none;
    flex-direction: column;
    left: 10px;
    top: 1px;
    width: 150px;
    height: max-content;
    box-shadow: 10px 0px 14px grey, -10px -0px 14px grey, -0px -10px 14px grey, -0px 10px 14px grey;
    padding: 1rem;
    background-color: white;
    z-index: 4;
    border-radius: 20px;
}
