:root {
    --bg-color: #cbe6f7;
    --umbrella-red: #d32f2f;
    --umbrella-white: #f5f5f5;
    --stick-color: #795548;
    --handle-color: #3e2723;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    user-select: none;
}

h1 {
    color: #1a365d;
    margin-bottom: 5px;
    font-size: 2.2rem;
}

.instructions {
    color: #4a5568;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* 우산 전체 컨테이너 */
.umbrella-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* 우산 꼭대기 팁 */
.umbrella-top {
    width: 14px;
    height: 30px;
    background-color: var(--handle-color);
    border-radius: 50% 50% 0 0;
    position: absolute;
    top: 15px;
    z-index: 3;
    transition: transform 0.5s ease;
}

/* 우산 천 (돔 모양) */
.umbrella-canopy {
    position: relative;
    width: 360px;
    height: 180px;
    background: linear-gradient(to right, 
        var(--umbrella-red) 0%, var(--umbrella-red) 20%, 
        var(--umbrella-white) 20%, var(--umbrella-white) 40%, 
        var(--umbrella-red) 40%, var(--umbrella-red) 60%, 
        var(--umbrella-white) 60%, var(--umbrella-white) 80%, 
        var(--umbrella-red) 80%, var(--umbrella-red) 100%);
    border-radius: 180px 180px 0 0;
    margin-top: 40px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    
    /* 애니메이션 설정 */
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 우산 아래쪽 물결 효과 */
.canopy-bottom-waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    display: flex;
    z-index: 3;
}

.wave {
    flex: 1;
    height: 30px;
    background-color: var(--bg-color);
    border-radius: 50% 50% 0 0;
    transform: translateY(15px);
}

/* 우산 대 */
.umbrella-stick {
    width: 10px;
    height: 160px;
    background-color: var(--stick-color);
    position: absolute;
    top: 200px;
    z-index: 1;
}

/* 우산 J자 손잡이 */
.umbrella-handle {
    width: 60px;
    height: 50px;
    border: 12px solid var(--handle-color);
    border-top: none;
    border-radius: 0 0 40px 40px;
    position: absolute;
    top: 350px;
    left: 145px;
    z-index: 1;
}

/* [JS 클릭 시 추가될 접힌 상태 스타일] */
.umbrella-container.closed .umbrella-canopy {
    transform: scaleX(0.15) scaleY(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.umbrella-container.closed .umbrella-top {
    transform: translateY(4px);
}