/* 퍼즐 전체 래퍼 */
.puzzle-wrapper {
    /* font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; */
    /* background-color: #f0f2f5; */
    padding: 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 10px;
}

/* 제목 */
.puzzle-wrapper .puzzle-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
}

/* 설명 */
.puzzle-wrapper .puzzle-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 이미지 업로드 */
.puzzle-wrapper .image-upload {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.puzzle-wrapper .image-upload input[type="file"] {
    padding: 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* 버튼 */
.puzzle-wrapper .btn-random {
    margin-right: 5px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.puzzle-wrapper .btn-random:hover {
    background-color: #45a049;
}

.puzzle-wrapper .btn-random i {
    font-size: 16px;
}

/* 퍼즐 캔버스 */
.puzzle-wrapper #puzzle-canvas {
    width: 500px;
    height: 500px;
    border: 10px solid #eee;
    border-radius: 5px;
    margin: 10px auto;
    display: block;
    background-color: #aaa;
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
}

/* 메시지 영역 */
.puzzle-wrapper #message {
    margin: 10px 0;
    min-height: 20px;
    color: #666;
}

/* 시작 버튼 */
.puzzle-wrapper #start-btn {
    padding: 10px 20px;
    font-size: 1.1em;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
}

.puzzle-wrapper #start-btn:hover {
    background-color: #1976D2;
}

.puzzle-wrapper #start-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 레벨업 퍼즐게임 이동 버튼 */
.puzzle-wrapper .btn-next {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.1em;
    background-color: #555;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
    transition: background-color 0.3s;
    border: none;
}

.puzzle-wrapper .btn-next:hover {
    background-color: #F57C00;
    color: white;
    text-decoration: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .puzzle-wrapper {
        padding: 10px;
        width: 100%;
    }

    .puzzle-wrapper .puzzle-title {
        font-size: 20px;
    }

    .puzzle-wrapper .puzzle-desc {
        font-size: 14px;
    }
    
    .puzzle-wrapper #puzzle-canvas {
        width: 300px;
        height: 300px;
    }
}
