body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.app-container {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#card-display-area {
    width: 300px; /* 카드 영역 너비 */
    height: 400px; /* 카드 영역 높이 */
    border: 1px solid #ccc;
    margin: 20px auto;
    overflow: hidden; /* 영역을 벗어나는 카드는 숨김 */
    position: relative; /* 카드 위치 지정을 위한 기준 */
    background-color: #e0e0e0;
}

.card {
    width: 60px; /* 카드 너비 */
    height: 90px; /* 카드 높이 */
    background-color: white;
    border: 1px solid black;
    border-radius: 5px;
    position: absolute; /* 자유로운 위치 지정을 위해 */
    left: 50%; /* 가운데 정렬 기준 */
    transform: translateX(-50%); /* 정확한 가운데 정렬 */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    user-select: none; /* 텍스트 선택 방지 */
}

/* 카드 흐름 애니메이션 (간단 예시) */
@keyframes card-flow {
    0% { top: -100px; /* 위에서 시작 */ }
    100% { top: 100%; /* 아래로 사라짐 */ }
}

.card.flowing {
    /* 애니메이션 적용: 이름, 시간, 속도 함수, 반복 */
    animation: card-flow 4s linear infinite;
}

#message-area {
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px; /* 메시지 영역 높이 유지 */
}

button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    margin: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #45a049;
}

#stop-button {
    background-color: #f44336;
}

#stop-button:hover {
    background-color: #d32f2f;
}

/* 설치 버튼 스타일 */
.install-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 16px;
    margin: 20px auto 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.install-button:hover {
    background-color: #0b7dda;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 전체화면 버튼 스타일 */
#fullscreen-button {
    background-color: #673AB7;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#fullscreen-button:hover {
    background-color: #5E35B1;
}

/* 전체화면 모드일 때 스타일 */
.app-container.fullscreen {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fullscreen #card-display-area {
    width: 90%;
    max-width: 500px;
    height: 60vh;
    max-height: 600px;
}
