.row, .cogs {
    display: flex;
}

.cog {
    width: 6em;
    height: 8em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    text-align: center;
    /* outline: 1px solid red; */
    padding: 0 .25em;
    border-radius: .25em;
    background-color: rgba(192,192,192,0.3);
}
.cog-type {
    display: flex;
    justify-content: center;
    align-items: center;
}
#app {
    flex-direction: column;
    gap: 1em;
}
.cog-image {
    width: 80%;
    height: 60%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 200ms ease, filter 200ms ease;
    cursor: pointer;
}
.cog-image.clicked {
    transform: scale(1.25);
    filter: drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 3px white);
}

.cog-name {
    min-height: 2.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding: 0.25em;
}

.cog-type .cog-image {
    width: 60px;
    height: 60px;
}

.cogs, .cog-gallery {
    gap: 4px;
}

.cog-gallery {
    display: flex;
    flex-direction: column;
}

.cog-type {
    margin-right: .5em;
}
.cogs-sellbot .cog {
    background-color: rgb(183 166 169 / 40%);
}
.cogs-cashbot .cog {
    background-color: rgb(167 188 181 / 40%);
}
.cogs-lawbot .cog {
    background-color: rgb(181 188 198 / 40%);
}
.cogs-bossbot .cog {
    background-color: rgb(195 187 175 / 40%);
}
.cog-levels {
    font-size: .8em;
    padding-top: .2em;
}
.cog-invasion {
    font-size: .8em;
    background-color: #ea3333;
    color: white;
    padding: .25em .25em;
    display: flex;
    gap: 6px;
    border-radius: 4px;
    max-width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.cog-invasions {
    position: absolute;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;

}

.cog {
    position: relative;
}
.cog-invasion-district {
    font-size: 12px;
    flex-grow: 1;
}
.cog-invasion-end-time {
    font-weight: bold;
}


#map svg {
    width: min(calc(100vw - 20px), 1086px);
}
#map div, #map rect, .cog {
    user-select: none;
    cursor: pointer;
}
#map g g * {
    pointer-events: none !important;
}

#map rect.map.map-selected,
.cog.clicked {
    outline: 2px solid var(--outline-color, black);
}
#map rect.map.map-clicked {
    outline: 3px solid var(--outline-color, black);
}

.cog {
    transition: opacity 200ms ease;
}
.cog.not-here, .cog.building-only {
    opacity: 0.2;
}
.cog.low-chance {
    opacity: 0.6;
}

#map.has-cog rect:not(.map) {
    fill: #7c7c7c;
}

#map rect {
    transition: fill 200ms ease;
    stroke: transparent !important;
    stroke-width: 0;
    border-radius: 2px;
}
rect.map.not-here {
    fill: #7c7c7c;
}
rect.map.low-chance {
    fill: #608360;
}

rect.map.on-street {
    fill: #27be2d;
}
#map div {
    transition: color 200ms ease;
}
#map.has-cog div {
    color: black !important;
}

.level-selector {
    margin-left: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    gap: .25em;
}

.level {
    width: 1.5em;
    height: 1.25em;
    text-align: center;
    border-radius: .25em;
    padding: .25em 0.25em;
    cursor: pointer;
    user-select: none;
    --background-opacity: 0.2;
    background-color: rgba(255,255,255,var(--background-opacity));
    transition: background-color 100ms ease, color 100ms ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.level.text {
    width: 5em;
    margin: 0 0.5em;
}
.level.text div {
    font-size: .66em;
}
.level.text.active {
    --background-opacity: 0.5;
}
.level.unselected {
    --background-opacity: 0.1;
}
.level.selected {
    --background-opacity: 0.4;
}
.level.selected.start,
.level.selected.end {
    --background-opacity: 0.8;
    color: black;
}
.level:hover {
    outline: 1px solid rgba(255,255,255,min(1, calc(var(--background-opacity) * 1.5)));
}
.level-selector:hover .level.selected.last {
    background-color: rgba(192,255,255,var(--background-opacity));
    --background-opacity: 1;
}

.cog-invasion {
    transform: scale(1);
}

.invasion-enter-active,
.invasion-leave-active {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /*transition: transform 0.5s cubic-bezier(0.68, -0.40, 0.83, 0.11);*/
}

.invasion-enter-from,
.invasion-leave-to {
    transform: scale(0);
}

/*.cog-invasion.mega-invasion {
    background-color: #ea6033;
    max-width: initial !important;
}
.cog-invasion.mega-invasion .cog-invasion-end-time {
    display: none;
}
.cog-invasion.mega-invasion .cog-invasion-district {
    font-size: 10px;
}

.cog-invasions {
    flex-wrap: wrap;
    max-height: 75%;
}*/
