body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.info-text {
    color: #666;
}

.score-board {
    display: flex;
    gap: 20px;
    font-size: 1.2em;
    margin-bottom: 20px;
}

#game-area {
    width: 600px;
    height: 400px;
    border: 3px solid #ccc;
    border-radius: 10px;
    margin: 0 auto;
    position: relative;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#target {
    background-color: #e74c3c;
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    display: none;
    transition: width 0.1s, height 0.1s;
}

.hit-effect {
    animation: hit 0.2s ease-out;
}

@keyframes hit {
    0% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

#start-btn, #restart-btn, #close-btn {
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    color: white;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#start-btn, #restart-btn {
    background-color: #3498db;
}

#start-btn:hover, #restart-btn:hover {
    background-color: #2980b9;
}

#close-btn {
    background-color: #95a5a6; /* 닫기 버튼은 회색 계열 */
}

#close-btn:hover {
    background-color: #7f8c8d;
}

#game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.button-group {
    display: flex;
    gap: 15px; /* 버튼 사이 간격 */
    justify-content: center;
}

.hidden {
    display: none !important;
}