* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0;
}


.puzzle-area {
    background: #f5f5f5;
    border-radius: 0;
    padding: 40px;
    margin-bottom: 40px;
    min-height: 500px;
    position: relative;
    border: 2px solid #ddd;
}




.piece {
    width: 100px;
    height: 100px;
    cursor: move;
    position: relative;
    transition: transform 0.2s ease;
    user-select: none;
    z-index: 10;
}

.piece:hover {
    transform: scale(1.1);
}

.piece.dragging {
    opacity: 0.7;
    z-index: 1000;
    cursor: grabbing;
}

.piece.placed {
    opacity: 0.6;
    cursor: default;
}

/* Base shapes with rotation */
.shape {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Rectangle for tree trunk */
.rectangle {
    background: #8B4513;
    border: 2px solid #654321;
    border-radius: 5px;
}

/* Make tree trunk thinner */
.tree-trunk .rectangle {
    width: 40%;
    margin-left: auto;
    margin-right: auto;
}

/* Fix rotation center for tree trunk */
.tree-trunk {
    transform-origin: center center;
}

/* Triangle shape */
.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid;
    position: relative;
}

.tree-triangle-1 .triangle {
    border-bottom-color: #1b731b;
    left: -30px;
}

.tree-triangle-2 .triangle {
    border-bottom-color: #32CD32;
    left: -30px;
}

.tree-triangle-3 .triangle {
    border-bottom-color: #a7ee4f;
    left: -30px;
}

.house-roof .triangle {
    border-bottom-color: #8B4513;
    top:10px;
}

/* Square shape */
.square {
    background: #DEB887;
    border: 2px solid #CD853F;
    border-radius: 5px;
}

.house-base .square {
}

.house-window .square {
    background: #87CEEB;
    border-color: #4682B4;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Confetti container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff0000;
    position: absolute;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}


