/* Header Ribbon - this is the same for all pages */
.header-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    padding: 15px 20px;
    background: #222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
    position: sticky;
    top: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: fixed; /* to fix the ribbon being hidden under the content */
}

.logo a {
    display: inline-block;
    max-width: 100%; 
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.1);
}



/*Last fix*/
.logo {
    align-items: center;
    display: flex;
    gap: 10px;
}

.logo a {
    color: #f7a11b; /* Match orange nav links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 20px; /* larger than nav size */
}

.logo a:hover {
    color: #e69518; /* Hover effect same as nav */
}

/* Navigation Menu   - this is the same for all pages */
.nav {
    display: flex; 
    gap: 15px;
    margin: 0;
    padding: 0;
    justify-content: flex-end; 
    width: 100%; 
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    width: 100%;
}

.nav ul li a {
    color: #f7a11b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 5px; 
}

.nav ul li a:hover {
    color: #e69518;
}


html, body {
    margin: 0;
    overflow-x: hidden; 
    font-family: Arial, sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top:70px;

}


/* Main Content Wrapper */
main {
    flex: 1;
    background: linear-gradient(145deg, #f5f5f5, #f5f5f5); 
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    max-width: 1200px;
    margin: 20px auto; 
}



/* Footer   - this is the same for all pages */
.footer {
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
    background: #111;
    font-size: 0.9rem;
    color: #ccc;
}

.footer .social-icons {
    margin-top: 10px;
}

.footer .social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.footer .social-icons img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.footer .social-icons img:hover {
    transform: scale(1.2);
}

/* Style for social icons */
.social-icons {
    display: flex;
    gap: 10px; /* Space between icons */
    justify-content: center; /* Center the icons */
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: white; /* White background behind the icons */
    border-radius: 50%; /* Make the background circular */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    overflow: hidden; /* Ensure the icon fits inside the background */
    text-align: center;
    line-height: 40px; /* Center-align the image vertically */
}

.social-icons img {
    width: 60%; /* Adjust the size of the image */
    height: 60%;
    object-fit: contain; /* Ensure the icon maintains its aspect ratio */
    vertical-align: middle;
}



/* This is the part that makes this CSS different from the others in the folder. This is only for the table */
/* Table Styling */
#ontology-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

#ontology-table th,
#ontology-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#ontology-table th:first-child,
#ontology-table td:first-child {
    width: 20%;
}

#ontology-table th:last-child,
#ontology-table td:last-child {
    width: 80%;
    word-wrap: break-word;
}

#ontology-table th {
    background-color: #f4f4f4;
    color: #333;
}

#ontology-table td {
    background-color: #fff;
}



.box-shadow {
    background-color: #fff; /* White background for the box */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    padding: 20px; /* Inner padding */
    margin: 20px auto; /* Center align with space around */
    max-width: 900px; /* Maximum width of the box */
    border: 1px solid #ddd; /* Light border for separation */
}

/* Separate Cluster Section Styling */
#cluster-box {
    display: none; /* Initially hidden */
    margin-top: 20px; /* Space above the cluster box */
    padding: 15px; /* Inner padding for the box */
    border: 2px solid #ffa500; /* Orange border to match theme */
    border-radius: 8px; /* Rounded corners for the box */
    background-color: #fdf5e6; /* Light yellow background */
}

#cluster-box h3 {
    margin: 0 0 10px 0; /* Space below the title */
    color: #333; /* Dark title color */
    font-size: 18px; /* Slightly larger font size */
}

.cluster-name {
    font-size: 16px; /* Font size for the cluster name */
    font-weight: bold; /* Bold text for emphasis */
    color: #555; /* Slightly darker text color */
}


/* because header wasnot being displayed correctly (27 Feb 25)*/
/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .header-ribbon {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
        #evaluation-table-container {
        width: 100%;
    }

    .nav {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Evaluation & Spider Chart Container (27 Feb  25)*/
.evaluation-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

/* Spider Chart Container */
#spider-chart-container {
    flex: 1; /* Takes available space */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Evaluation Table Container */
#evaluation-table-container {
    width: 50%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style for Evaluation Table */
#evaluation-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 10px;
    
}

#evaluation-table th,
#evaluation-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

#evaluation-table th {
    background-color: #333;
    color: white;
}

