/* games/watermelon/watermelon.css */
#game-canvas {
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 100%; /* 부모 너비에 맞게 조절 */
    height: auto; /* 비율 유지 */
}

#game-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.next-fruit-display,
.score-display,
.high-score-display {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

#restart-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #ff7f50; /* 코랄색 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

#restart-button:hover {
    background-color: #ff6347; /* 토마토색 */
}

/* 모달 스타일 */
.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed; /* 화면 전체를 덮음 */
    z-index: 1; /* 다른 요소 위에 표시 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 내용이 넘칠 경우 스크롤 */
    background-color: rgba(0,0,0,0.4); /* 반투명 검정 배경 */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* 모달 너비 */
    max-width: 300px; /* 최대 너비 */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* 모달 애니메이션 */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.modal-content .game-button {
    background-color: #F44336; /* 빨간색 */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content .game-button:hover {
    background-color: #D32F2F;
}