Battle-Isle-REBORN 1.04

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Perfectly Centered Hexagonal Grid with Units</title>
    <style>
        body {
            display: flex;           
            height: 100vh; /* Ensure body takes the full height of the viewport */
            margin: 0; /* Remove default margin */
            padding: 20px;
        }
        #mainContainer {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            width: 99vw;
            height: 99vh;
            border: 2px solid #333;
            border-radius: 5px;
            position: relative;
            overflow: hidden;
            background-color: lightgrey;
        }
        #menuContainer {
            width: 99vw;
            height: 10vh;
            border: 2px solid #333;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: lightblue;
        }
        
        #divEnemyCounter {
            width: 9vw;
            height: 9vh;
            border: 2px solid #333;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: grey;
        }
        
        #divPlayerCounter {
            width: 9vw;
            height: 9vh;
            border: 2px solid #333;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: grey;
        }        
        
        #hexContainer {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 1500px;
            height:...