.building {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 8px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.3),
        inset -2px 0 8px rgba(0,0,0,0.2),
        inset 0 -2px 8px rgba(0,0,0,0.1);
    overflow: visible;
    position: relative;
    border: 3px solid #2c3e50;
    transition: all 2s ease-in-out;
}

body.night .building {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-color: #1a252f;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.6),
        inset -2px 0 8px rgba(0,0,0,0.4),
        inset 0 -2px 8px rgba(0,0,0,0.2);
}

.building::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #34495e 0%, #2c3e50 50%, #34495e 100%);
    border-bottom: 2px solid #1a252f;
}

.building::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.building-roof {
    height: 40px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 30%, #2c3e50 70%, #1a252f 100%);
    position: relative;
    margin: 10px 20px 0;
    clip-path: polygon(0 100%, 15% 20%, 25% 0, 75% 0, 85% 20%, 100% 100%);
    box-shadow: 
        0 -2px 4px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.building-roof::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 30%;
    width: 40%;
    height: 6px;
    background: linear-gradient(90deg, #34495e 0%, #2c3e50 50%, #34495e 100%);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.building-roof::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #1a252f 20%, #1a252f 80%, transparent 100%);
    border-radius: 1px;
}

.building-base {
    height: 20px;
    background: linear-gradient(180deg, #1a252f 0%, #0f1419 100%);
    margin: 0 10px 0px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#building-view {
    flex: 2;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.building-container {
    position: relative;
}

.building-foundation {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60px;
    background: linear-gradient(180deg, #8D6E63 0%, #6D4C41 50%, #5D4037 100%);
    border-radius: 8px 8px 0 0;
    z-index: -1;
    border: 2px solid #5D4037;
    border-bottom: none;
}

.building-pavement {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #424242 0px,
        #424242 8px,
        #616161 8px,
        #616161 16px
    );
    border-radius: 2px;
    z-index: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.building-ground {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    height: 120px;
    background: linear-gradient(180deg, #7CB342 0%, #689F38 50%, #558B2F 100%);
    z-index: -2;
    border-top: 3px solid #4CAF50;
}