/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
header {
    background-color: #ffffff;
    padding: 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header h1 {
    margin: 0;
    text-align: center;
    font-size: 1.8em;
    font-weight: 600;
}

/* Container Styles */
.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 1000px;
    margin: 100px auto 0 auto; /* Center the container */
    transition: box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Heading Styles */
h2 {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Glossary Styles */
.glossary {
    display: flex;
    justify-content: space-around; /* Center the terms and definitions */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.terms, .definitions {
    width: 45%; /* Adjust width for better centering */
}

/* List Styles */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin: 10px 0;
    padding: 10px;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    word-wrap: break-word; /* Allow long words to break and wrap */
    white-space: pre-wrap; /* Preserve whitespace and wrap */
    overflow-wrap: break-word; /* Ensure wrapping of long words */
    max-height: 100px; /* Optional: limit max height to avoid extremely tall boxes */
    overflow: auto; /* Add scrollbars if content exceeds max height */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Selection Styles */
.selected {
    background-color: #e8f0fe;
    border-color: #aecbfa;
}

.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Button Styles */
.buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

/* link style */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-style: italic;
}
/* Button Styles */
.buttons2 {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

button {
    display: inline-block;
    margin: 0 10px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #c2c2c2;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 15px; 
}

button:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* Table Styles */
#completeTable {
    margin-top: 20px;
}
/* index.html */
#partsList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
}

#partsList li {
    width: 47%;
}
#dataTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#dataTable th, #dataTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#dataTable th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.long-link {
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .glossary {
        flex-direction: column;
        align-items: center;
    }

    .terms, .definitions {
        width: 100%;
    }

    .container {
        width: 95%;
    }

    header h1 {
        font-size: 1.5em;
    }
}
/* Decorative Border for Complete Table */
.decorative-border {
    border: 5px solid #ccc; /* Basic border */
    border-radius: 15px; /* Rounded corners */
    padding: 10px;
    margin-bottom: 20px; /* Add distance after the table */
    background: #ffffff; /* White background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: relative; /* For pseudo-elements */
}
/* Text Color for Correct Answer */
.correct-text {
    color: green;
}

/* Text Color for Incorrect Answer */
.incorrect-text {
    color: red;
}

.decorative-border::before {
    top: -10px;
    left: -10px;
}

.decorative-border::after {
    bottom: -10px;
    right: -10px;
}