body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 세로 시작점에 정렬 */
    min-height: 100vh; /* 뷰포트 높이만큼 최소 높이 설정 */
    margin: 0; /* 기본 마진 제거 */
    padding-top: 5vh; /* 상단에서 5% 뷰포트 높이만큼 여백 */
}

h1 {
    margin-bottom: 10px;
}

#game-status {
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.turn-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: border-box;
    opacity: 0.3;
}

#black-turn-indicator {
    background-color: black;
}

#white-turn-indicator {
    background-color: white;
}

.turn-indicator.active {
    border-color: gold;
    opacity: 1;
}

.game-container {
    display: flex;
    gap: 20px; /* 게임 보드와 점수판 사이 간격 */
    margin-left: 10vw; /* 오른쪽으로 살짝 이동 */
}

#score-board {
    width: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

#score-board h2 {
    margin-top: 0;
    font-size: 1.2em;
}

#score-board p {
    margin: 5px 0;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(10, 40px);
    grid-template-rows: repeat(10, 40px);
    border: 2px solid #333;
    background-color: #f0d9b5; 
}

.cell {
    width: 40px;
    height: 40px;
    border: 1px solid #999;
    box-sizing: border-box;
    position: relative;
}

.cell:hover {
    background-color: #e0c8a4;
}

.stone {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.black {
    background-color: black;
}

.white {
    background-color: white;
}

#restart-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}
