/* フォームのスタイル */
#dsr2-doi-form {
    margin-bottom: 20px;
    text-align: center;
}

#dsr2-doi-form input[type="text"] {
    width: 80%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#dsr2-doi-form input[type="submit"] {
    padding: 8px 16px;
    margin-top: 10px;
}

/* 結果表示のスタイル */
#dsr2-result h2 {
    margin-top: 20px;
    text-align: center; /* 中央寄せ */
}

#dsr2-result h3 {
    margin-top: 0;
    color: #000;
}

.dsr2-event-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex; /* フレックスボックスを使用 */
    flex-direction: column; /* 縦方向に要素を配置 */
    justify-content: center; /* 垂直方向の中央揃え */
}

/* ソース名ごとのボーダーカラー設定 */
.dsr2-event-card.reddit-border {
    border-color: #ff4500; /* Redditのオレンジ色 */
}

.dsr2-event-card.wikipedia-border {
    border-color: #000000; /* Wikipediaの黒色 */
}

.dsr2-event-card.crossref-border {
    border-color: #f6c915; /* Crossrefの黄色 */
}

.dsr2-event-card.opencitations-border {
    border-color: #9931FC; /* OpenCitationsの紫色 */
}

.dsr2-event-card.merged_citations-border {
    border-color: #9931FC; /* その他の論文からの引用の紫色 */
}

.dsr2-event-card.cambia-lens-border {
    border-color: #0073aa; /* Cambia Lensの青色 */
}

.dsr2-event-card.datacite-border {
    border-color: #f67a15; /* DataCiteのオレンジ色 */
}

.dsr2-event-card.wordpressdotcom-border {
    border-color: #21759b; /* WordPress.comの青色 */
}

/* 説明文のスタイル */
.dsr2-source-description {
    color: #000;
    margin-bottom: 10px;
}

#dsr2-result p {
    margin-left: 10px;
}

#dsr2-result ul {
    list-style-type: disc;
    margin-left: 20px;
}

#dsr2-result li {
    margin-bottom: 5px;
}

#dsr2-result a {
    color: #0073aa;
}

#dsr2-result a:hover {
    color: #005177;
}

/* フォントサイズと行間の調整 */
#dsr2-result p, #dsr2-result li {
    font-size: 16px;
    line-height: 1.5;
}

/* カード内のタイトルのスタイル調整 */
.dsr2-event-card p {
    margin: 5px 0;
}

/* 引用・参照数のサマリーのスタイル */
.dsr2-summary-container {
    display: flex;
    flex-direction: column; /* 縦方向に配置 */
    align-items: center; /* 中央寄せ */
    margin-bottom: 20px;
}

/* 総合計数のカード */
.dsr2-summary-card.dsr2-total-card {
    border: 2px solid #000; /* 総合計カードの枠線を黒に */
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.4em; /* フォントサイズを大きく */
    font-weight: bold; /* ボールドに */
    display: flex; /* フレックスボックスを使用 */
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
    min-height: 60px; /* カードの最低高さを設定（お好みで調整可能） */
}

/* その他のカードをまとめるコンテナ */
.dsr2-summary-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 中央寄せ */
    gap: 10px;
}

/* 各コンテンツからの参照数カード */
.dsr2-summary-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px 20px;
    min-width: 150px;
    text-align: center;
    display: flex; /* フレックスボックスを使用 */
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
}

.dsr2-summary-card p {
    margin: 0;
    font-size: 16px;
}

/* 各ソースのカードに色を付ける */
.dsr2-summary-card.reddit-border {
    border-color: #ff4500;
}

.dsr2-summary-card.wikipedia-border {
    border-color: #000000;
}

.dsr2-summary-card.crossref-border {
    border-color: #f6c915;
}

.dsr2-summary-card.opencitations-border {
    border-color: #9931FC;
}

.dsr2-summary-card.merged_citations-border {
    border-color: #9931FC; /* その他の論文からの引用の紫色 */
}

.dsr2-summary-card.cambia-lens-border {
    border-color: #0073aa;
}

.dsr2-summary-card.datacite-border {
    border-color: #f67a15;
}

.dsr2-summary-card.wordpressdotcom-border {
    border-color: #21759b;
}

/* CSVダウンロードボタンのスタイル */
#dsr2-download-csv {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#dsr2-download-csv:hover {
    background-color: #005177;
}
