body {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
}
#controls {
    margin-bottom: 20px;
}
#container {
    position: relative;
    width: 1600px;
    height: 850px;
    border: 1px solid #ffffff;
    background-color: #bababa;
    overflow: scroll;
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transform-origin: center; 
}
.block {
    width: 200px; /* ブロックの幅 */
    padding: 10px;
    background-color: rgba(173, 216, 230, 0.5); /* 50%透過のライトブルー */
    position: absolute;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
}
.node {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 139, 0.5); /* 50%透過のダークブルー */
    border-radius: 50%;
    cursor: crosshair;
}
.left-node {
    left: -15px;
    transform: translateY(-50%);
}
.right-node {
    right: -15px;
    transform: translateY(-50%);
}
.node-label {
    font-size: 10px;
    color: rgb(0, 0, 139); /* 0%透過のダークブルー */
    position: absolute;
    transform: translateY(-50%);
}
.popup {
    position: absolute;
    background: rgba(224, 247, 250, 0.8);
    border: 1px solid #00796b; /* ボーダー色を変更 */
    padding: 20px;
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加 */
    z-index: 1000;
}
.popup h2 {
    margin: 0 0 10px;
    color: #00796b; /* 見出しの色を変更 */
}
.popup p {
    margin: 5px 0;
    color: #004d40; /* テキストの色を変更 */
}
.closePopup {
    background: #d32f2f; /* 閉じるボタンの背景色を変更 */
    color: white; /* 閉じるボタンの文字色を変更 */
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px; /* ボタンの角を丸くする */
}
.closePopup:hover {
    background: #b71c1c; /* 閉じるボタンのホバー時の背景色を変更 */
}
.search-popup {
    position: fixed;
    background: rgba(224, 247, 250, 0.8);
    border: 1px solid #00796b; /* ボーダー色を変更 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    max-width: 80%;
    max-height: 80%;
    overflow-y: hidden;
}
.search-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}
.search-popup-header h2 {
    margin: 0;
}
.search-popup-header .closePopup {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}
.search-popup-content {
    flex-grow: 1;
    width: 100%;
    padding-top: 10px;
}
.table-container {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
#groupInfoContainer {
    margin: 20px 0;
}
#groupInfoTable {
    width: 100%;
    border-collapse: collapse;
}
#groupInfoTable th, #groupInfoTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
#groupInfoTable th {
    /* background-color: #f2f2f2; */
}
.group-color-cell {
    cursor: pointer;
    text-align: center;
}
.editable {
    width: 100%;
    border: none;
    padding: 6px;
    text-align: left;
    box-sizing: border-box;
}
/* scrollable-popup.cssの修正 */
.scrollable-popup {
    position: fixed;
    background: rgba(224, 247, 250, 0.8);
    border: 1px solid #00796b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 70%; /* ブラウザの幅の70% */
    max-height: 80%;
    overflow-y: auto;
}

.scrollable-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.scrollable-popup-filelist {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.scrollable-popup-filelist h3 {
    margin-bottom: 10px;
}

.scrollable-popup-content {
    width: 100%;
    padding-top: 10px;
    overflow-y: auto;
    max-height: calc(100% - 120px); /* Adjusted for header and file list space */
}

.yaml-file-section {
    margin-bottom: 20px;
}

.yaml-file-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copyYAML {
    background: #00796b;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.copyYAML:hover {
    background: #005f4b;
}
