body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(248, 244, 230);
    color: #333;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgb(255, 241, 207);
}

#table-of-contents {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#table-of-contents h2 {
    margin-top: 0;
}

#table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
}

#table-of-contents li {
    margin: 10px 0;
}

#table-of-contents a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

#table-of-contents a:hover {
    color: #61dafb;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.code-snippet {
    background-color: #282c34;
    border-radius: 5px;
    padding: 20px;
    color: #abb2bf;
    position: relative;
    overflow: auto;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.copy-button {
    background-color: #61dafb;
    border: none;
    padding: 10px;
    color: #282c34;
    border-radius: 5px;
    cursor: pointer;
}

.copy-button:hover {
    background-color: #21a1f1;
}

pre {
    margin: 0;
}

code {
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .code-snippet {
        padding: 15px;
    }
}

.line-number {
    display: inline-block;
    width: 30px;
    text-align: right;
    margin-right: 10px;
    color: #888;
    user-select: none;
}

/* Blog Index Styling */
.blog-index {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.blog-index li {
    border-bottom: 1px solid #ddd;
}

.blog-index li:last-child {
    border-bottom: none;
}

.blog-index a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.blog-index a:hover {
    background-color: #61dafb;
    color: #fff;
}

.profile-box {
    border-width: 16px 16px 16px 16px;
    border-style: groove ridge ridge groove;
    background-color: rgb(200, 242, 255);
    padding: 10px;
}

.profile-info {
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #82c3ff;
    margin-right: 15px;
}

.profile-text {
    flex: 1;
}

.profile-text p {
    margin: 0;
}

.profile-text h3 {
    margin-top: 5px;
}

.profile-text h3 a {
    text-decoration: none;
    color: rgb(0, 132, 255); 
}

/* Course Section Styling */
.course-section {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #61dafb;
}

/* Add subtle background alternating color for readability */
.course-section:nth-child(even) {
    background-color: #f9f9f9;
}

/* Title Styling */
.course-section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Subheading (Time, Classroom, etc.) */
.course-section h3 {
    color: #555;
    margin-bottom: 15px;
}

/* List Items for grading and format */
.course-section ul {
    list-style-type: none;
    padding-left: 0;
}

.course-section ul li {
    margin: 5px 0;
    padding: 5px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* General link styling */
.course-section a {
    color: #19c0ee;
    text-decoration: none;
}

.course-section a:hover {
    color: #33b1d4;
}

/* Additional Space for overall page */
.container {
    margin-top: 20px;
}

/* Improve TOC Styling */
#table-of-contents ul {
    padding-left: 0;
}

#table-of-contents li {
    margin: 10px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

#table-of-contents a {
    color: #33b1d4;
}

/* テーブル全体のスタイル */
table {
    width: 100%;
    border-collapse: collapse; /* セルの枠線を重ねて一本化 */
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ヘッダーセルのスタイル */
th {
    background-color: rgb(248, 244, 230);
    color: #333;
    font-weight: bold;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

/* データセルのスタイル */
td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* 奇数行の背景色 */
tr:nth-child(odd) {
    background-color: #fafafa;
}

/* 偶数行の背景色 */
tr:nth-child(even) {
    background-color: #fefefe;
}

/* ホバー時の行の背景色 */
tr:hover {
    background-color: #f1f1f1;
}
