body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 20px;
    color: #333;
    line-height: 1.1;
}

/* Heading style */
h1 {
    text-align: center;
    color: #333;
    font-size: 2.0rem;
    margin-bottom: 20px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Table header and cell styling */
th, td {
    border: 1px solid #ddd;
    text-align: left;
    font-size: 1rem;
}

td {
    color: #555;
    background-color: #fff;
    padding: 8px;
}

/* Header styling with hover effect */
th {
    background-color: #59759A;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px;
}

th:hover {
    background-color: #475e75; /* Darker background on hover */
}

/* Row hover effect */
tr:hover {
    background-color: #f1f1f1; /* Change row background color on hover */
}

/* Ensure cell background changes with row hover */
tr:hover td {
    background-color: #f1f1f1; /* Apply background color to individual cells */
}

/* Button styling */
button {
    background-color: #59759A;
    color: white;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Button hover effect */
button:hover {
    background-color: #475e75; /* Darker button color on hover */
}

/* Highlight text with a yellow background */
.highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 0 0px;
}

/* Flex container for layout */
#input-container, #counting-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Flex layout for text and buttons */
#text {
    display: flex;
    gap: 10px;
}

/* Top right corner buttons */
#top-right-corner-container {
    float: right !important;
}

/* Overlay styling for blocking elements */
#blocking-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 20px;
    transition: opacity 0.3s ease;
}

#blocking-overlay.show {
    display: flex !important;
    opacity: 1;
}

/* Styling for input field */
input {
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border 0.3s ease;
}

/* Styling for search input field */
#search-input {
    width: 80%;
}

/* Styling for neighbors number input field */
#neighbors-number-input {
    width: 20%; /* Occupies 20% of the space */
}

/* Focus effect for search input */
#search-input:focus, #neighbors-number-input:focus {
    border-color: #59759A;
    outline: none;
}

/* Class to prevent text wrapping */
.no-wrap {
    white-space: nowrap;
}

/***************************************************************/
/* HTML help style */

.content-container{
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    line-height: 1.5;
}
/* Section style for margin spacing */
.content-section {
    margin-bottom: 30px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.monospace-box{
    font-family: monospace;
    background-color: #f7f7f7;
    padding: 5px;
    border-radius: 4px;
    color: #333;
    font-size: 1.2em;
}

/***************************************************************/
/* SVG style */

svg {
    margin: 0px;
}

.svg-container {
    align-items: center; /* Centers items horizontally in the flex container */
    display: flex; /* Enables flexbox layout */
    flex-direction: column; /* Arranges items in a vertical column */
    justify-content: center; /* Vertically centers the content within the container */
}