html {
    max-width: 100vw;
    height: 100%;
}
body {
    box-sizing: border-box;
    background-image: url("img/TDMAP.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}
.whole-game {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buttons span {
    display: inline-block;
    margin-left: 10px;
    color: #fff;
}
#gui,
canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	background: url("img/TDMAP.jpeg") no-repeat center center fixed;
	 background-size: cover;
    display: flex;
}
.map {
    position: relative;
    margin: 20px;
    padding: 10px;
    border-radius: 10px;
    overflow-x: auto;  
    background-color: transparent; /* Set background color to transparent */
}

.buttons {
    display: flex;
    padding-bottom: 10px;
	flex-flow: wrap;
}
.fireRange, .cooldownTime, .damage {
    display: grid;
    grid-template-columns: 1fr;
}

.path-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: transparent;
    border-radius: 10px;
}

canvas {
    background-color: white; /* Set canvas background color to transparent */
}

.map button {
    display: inline-block;
    height: 50px;
    width: 150px;
    border-radius: 10px;
    border: 2px solid #3498DB;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #2980B9;
    color: #fff;
    margin: 10px;
}

.map button:hover {
    background-color: #1F618D;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.tower {
    animation: towerAnimation 2s infinite alternate;
    /* Add tower image */
    background-image: url("img/tower.png");
    background-size: cover;
}

.enemy {
    /* Add enemy image */
    background-image: url("img/enemy-image.jpg");
    background-size: cover;
}

@keyframes towerAnimation {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}
.misc {
    position: relative;
    font-family:'Courier New', Courier, monospace;
    margin-top: 0px;
}
.misc > a {
    position: absolute;
    margin: 5px;
}
.misc > p {
    color: white;
    background-color: #000000a9;
    border-radius: 5px 0px 0px 0px;
    text-align: center;
    margin: auto;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
    position: fixed;
    bottom: 0px;
    right: 0px;
    padding: 10px;
}
.misc > a > button {
    position: relative;
    background: rgba(255, 255, 255, 0.911);
    border: solid 1px black;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    /* button can't be highlighted */
    -webkit-touch-callout: none; 
    -webkit-user-select: none; 
    -khtml-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}