body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('https://iamkun.github.io/tower_game/assets/main-bg.png');
    margin: 0;
    font-family: Arial, sans-serif;
}

#gameContainer {
    text-align: center;
}

#gameArea {
    position: relative;
    width: 300px;
    height: 500px;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

#tower {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.block {
    width: 100px;
    height: 20px;
    background-color: #007bff;
    background-image: url('https://iamkun.github.io/tower_game/assets/main-bg.png');
    background-size: cover;
    background-position: center;
    margin: 2px auto;
    position: absolute;
    border-radius: 4px;
}

#hangingBlock {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff5722;
    animation: moveBlock 2s infinite alternate;
}

@keyframes moveBlock {
    0% { left: 0; }
    100% { left: 100%; }
}

.falling {
    transition: top 0.5s ease-in;
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#score {
    margin-top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: yellow;
}
