
.container {
    max-width: 1200px;
    margin: 30px auto 0 auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

/* CHANGED */
.generator {
    background: #1a1f3d;
    border: 2px solid #3d4a8c;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
}

.generator h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #7be8ff;
    font-size: 1.4em;
}

button {
    background: #4d6fff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
     text-align: center;
}

button:hover {
    background: #6f89ff;
}

/* CHANGED */
.result {
    margin-top: 10px;
    padding: 12px;
    background: #0d1024;
    border-radius: 8px;
    min-height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #8c95c9;
    font-size: 0.9em;
}
.hex-map {
    transform: scale(1.2);
    transform-origin: top center;
    margin-bottom: 150px;
}

#hexInfo {
    display: block;
    text-align: center;
    min-height: 120px;
    padding: 15px;
}

.hex-row {
    display: flex;
    justify-content: center;
    margin-bottom: -12px;
}

.hex-row.offset {
    margin-left: 50px;
}

.hex {
    width: 80px;
    height: 90px;
    margin: 2px;
    position: relative;

    background: #24326e;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-weight: bold;

    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
}

.hex:hover {
    background: #4d6fff;
}

.hex.explored {
    background: #3fb950;
}

.color-menu {
    display: none;
    position: fixed;
    background: #222;
    border: 1px solid #555;
    z-index: 1000;
    min-width: 120px;
}

.color-menu div {
    padding: 6px 10px;
    cursor: pointer;
}

.color-menu div:hover {
    background: #444;
}

.green {
    background: #2d8a34 
}

.yellow {
    background: #c7a52a 
}

.red {
    background: #a83232 
}

.purple {
    background: #7a3db8 
}

.orange {
    background: #d87b26 
}

.player-marker {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: white;
    color: black;

    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 50;
}