/* WHOLE PAGE CSS START */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
body { /* Body applies to the whole page */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Specify page font */
    margin: 0; /* 0 space between page and screen edge */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: lightgray;
}
/* WHOLE PAGE CSS END */

/* Classes */
.ribbon { /* Used for ribbon style headers */
    display: flex;
    align-items: center; /* vertically center ribbon children */
    gap: 16px; /* space between ribbon elements */
    background-color: white;
    color: darkblue;
    padding: 12px 20px; /* internal spacing in the ribbon */
    height: 10%; /* height is 10% of the parent */
    width: 100%;
}

.decor { /* Used to get rid of decorations applied on things like links */
    color: inherit;
    text-decoration: none;
}

.box { /* Used for box objects containing interactive material */
    height: 100%; /* the container should be the height of the main wrapper */
    overflow: hidden; /* prevent visible overflow out of the container */
    display: flex;  /* allows children to be aligned with flexbox */
    flex-direction: column; /* stacks child elements vertically */
    border: 1px solid darkblue;
    background-color: #f5f5f5;
    border-radius: 24px;
}

.form {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-left: 30px;
}

.button {
    border: 1px solid white;
    height: 75px;
    width: 200px;
    border-radius: 24px;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px;
}

.button:hover {
    background-color: #f5f5f5;
}
/***********/





/* RIBBON LOGO START */
#logoBorder {
    border: 2px solid white;
    border-radius: 12px;
    padding: 2px;
}

#logo {
    color: white;
}
/* RIBBON LOGO END */





/* MAIN WRAPPER START*/
#main-wrapper { /* Apply to contain tables and canvas */
    display: flex; /* Enables flexbox layout on children of container */
    align-items: flex-start; /* optional: aligns child tops together */
    gap: 20px; /* no space between child elements box */
    height: 80%; /* main wrapper will take up 90% of the body */
    width: 100%;
    margin: 20px;
}


#Criteria { /* Apply to the container of the points table */
    width: 33%; /* make the container 33% of the left of the screen */
}

#Selection { /* Apply to the container of the points table */
    width: 63%; /* make the container 63% of the left of the screen */
}

/* Hide the scrollbar for Webkit browsers including Chrome and Safari */
.table-scroll-wrapper::-webkit-scrollbar { 
  width: 0;
  height: 0;
}

#SelectionTable {
    width: 100%; /* width is all of the container */
    height: 100%;
    border-collapse: collapse; /* removes spacing between cells like in excel */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* font specifications */
    margin-top: 0px; /* no space betweeen top of parent and self */
    table-layout: fixed;
}

#SelectionTable thead {
    display: table;
    table-layout: fixed;
    height: 10%; /* say, 15% for header */
    width: 100%;
    border-right: 1px solid white;
}


#SelectionTable tbody {
    display: block;
    height: 90%; /* and 85% for body */
    width: 100%;
    overflow-y: auto;
}

#SelectionTable thead tr {
    height: 100%; /* and 85% for body */
}

#SelectionTable tbody tr {
    height: 11.1%; /* and 85% for body */
}

#SelectionTable tr {
    width: 100%;
    display: table;
    table-layout: fixed;
}

th, td { /* this is general formatting for header and data cells */
    width: 20%;
    height: 50px;
    padding: 8px 12px; /* Add padding for the values */
    text-align: center; /* center align the text in the cells */
    font-size: 15px; /* 14 size font */
    box-sizing: border-box;
}

td {
    border: 1px solid white;
}

th {
    position: sticky;
    top: 0;
    background-color: white; /* Darker background for the header */
    color: darkblue; /* White text for contrast */
    font-weight: bold;
    padding: 10px 12px; /* Increase padding for a bit more breathing room */
    text-transform: uppercase; /* Adds a clean, modern touch */
}

th.sort-asc::after {
    content: " ▲";
}
th.sort-desc::after {
    content: " ▼";
}

/* Alternate row highlighting */
tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

tbody tr:hover {
    background-color: #f1f1f1;
} /* colors alternate between rows slightly and if hovered over */
/* MAIN WRAPPER END */


#buttonHolder {
    display: flex;
    align-items: center;
}

#bottomRibbon {
    display: flex;
    align-items: center;
    justify-content: center;
}
