body { background-color: #ecf1ef; color: #000; } * { box-sizing: border-box; } .wrap { max-width: 1200px; margin: 0 auto; } button, input[type="submit"] { background-color: #1e362e; color: #fff; border: none; padding: 0.25rem 0.75rem; cursor: pointer; } button:hover:not(:disabled), input[type="submit"]:hover:not(:disabled) { background-color: #000; } button:disabled, input[type="submit"]:disabled { color: #606060; } /* Icons */ .icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: middle; background-repeat: no-repeat; background-size: contain; background-position: center; } .icon-wood { background-image: url("/assets/img/icons/game-icons/log.svg"); } .icon-clay { background-image: url("/assets/img/icons/game-icons/stone-block.svg"); } .icon-iron { background-image: url("/assets/img/icons/game-icons/metal-bar.svg"); } .icon-food { background-image: url("/assets/img/icons/game-icons/wheat.svg"); } .icon-per-increment { background-image: url("/assets/img/icons/openmojis/1F504.svg"); } .icon-storage { background-image: url("/assets/img/icons/game-icons/database.svg"); } .icon-arrow-up { background-image: url("/assets/img/icons/openmojis/1F53A.svg"); } .icon-arrow-down { background-image: url("/assets/img/icons/openmojis/1F53A.svg"); transform: rotate(180deg); } .icon-arrow-left { background-image: url("/assets/img/icons/openmojis/1F53A.svg"); transform: rotate(270deg); } .icon-arrow-right { background-image: url("/assets/img/icons/openmojis/1F53A.svg"); transform: rotate(90deg); } .icon-farmer { background-image: url("/assets/img/icons/game-icons/pitchfork.svg"); } .icon-woodcutter { background-image: url("/assets/img/icons/game-icons/wood-axe.svg"); } .icon-pitworker { background-image: url("/assets/img/icons/game-icons/wheelbarrow.svg"); } .icon-miner { background-image: url("/assets/img/icons/game-icons/war-pick.svg"); } /* Village */ .resources { display: grid; grid-template-columns: 2fr 2fr 2fr 2fr 1fr; } .resources > div { padding: 0.25rem; border: 1px solid #000; display: flex; align-items: center; } .resources > div > *:not(:first-child) { margin-left: 0.25rem; } .resources .icon { font-size: 1.25em; } /* Map */ .map { position: relative; padding: 2rem; } .map__up, .map__down { position: absolute; width: 100%; text-align: center; } .map__up { top: 0; left: 0; } .map__down { bottom: 0; left: 0; } .map__left, .map__right { position: absolute; height: 100%; display: flex; align-items: center; } .map__left { left: 0; top: 0; } .map__right { right: 0; top: 0; } .map .icon { font-size: 1.5rem; } .map__villages { --map-range: 1; display: grid; background-image: url('/assets/img/map.jpg'); background-position: center; background-size: cover; min-height: 75vh; } .map__village { border: 1px solid #000; min-width: 1rem; min-height: 1rem; display: flex; justify-content: center; align-items: center; } .map__village a { text-decoration: none; border: 2px solid #fff; padding: 0 0.25rem; background: rgba(255, 255, 255, 0.8); }