body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0px;
    background-image: url('back.png'); 
   background-size: 100% 100%;
    transition: background-size 0.3s ease, background-color 0.5s ease;
    background-position: center;
}

#dynamic-heading {
    font-family: 'Teko', sans-serif;
    font-weight: 300;
    letter-spacing: 0px;
    font-size: 4.5rem;
    color: #ff00fb;
    margin-bottom: 20px;
}

p {
    font-family: 'Teko', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: white;
}



#button-container {
    position: fixed;
    top: 30%;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#take-photo-button{
    position: fixed;
    top: 20%;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    padding: 10px;
    width: 150px;
    font-size: 14px;
    cursor: pointer;
}

#puzzle-board {
    position: relative;
    width: 800px;
    height: 400px;
    margin: 20px auto;
    border: 2px dashed #ccc;
    background: rgba(128, 128, 128, 0.6);
}

.piece {
    position: absolute;
    cursor: grab;
    background-size: 400px 400px;
    border: 1px solid #ccc;
    transition: transform 0.2s ease;
}

.piece:active {
    cursor: grabbing;
    transform: scale(1.1);
}


#image-fullscreen {
    position: fixed;
    top: 0;
    left:0px;
    width: 40%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: none; 
    transition: opacity 0.5s ease;
    opacity: 0;
}
#image-fullscreen.show {
    display: block; /* 표시 시 block으로 전환 */
    opacity: 1; /* opacity를 설정하여 전환 효과 */
}






#camera-container {
    display: none;
    position: fixed;
    margin-top: 0px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: auto;
   
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0px;
    overflow: hidden;
}

#camera {
    width: 100%;
    height: auto;
    z-index: 1;
    transform: scaleX(-1)

}

#take-photo-button {
    position: absolute;
    bottom: 0px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    width: auto;
    height: auto;
     background: rgba(252, 0, 128, 0.5);
    color: white;

}



#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup-message {
    position: relative;
    width: 100%;
    height: auto;
    background-image: url('back2.png'); 
    background-size: cover; 
    background-position: center; 
    display: flex;
    flex-direction: column; /* 텍스트와 버튼 세로 정렬 */
    justify-content: center; /* 세로 중앙 정렬 */
    align-items: center; /* 가로 중앙 정렬 */
    padding: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); /* 그림자 효과 */
    text-align: center; /* 텍스트 가운데 정렬 */
   
}
#popup-message p2 {
    font-family: 'Teko', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* 선택사항: 텍스트 그림자 */
}

#popup-close-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: rgba(0, 123, 255, 0.8); /* 반투명 배경 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 선택사항: 텍스트 그림자 */
}

#popup-close-button:hover {
    background-color: rgba(0, 86, 179, 0.8); /* Hover 효과 */
}




