/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 400;
    color: #FFFFF0;
    background: linear-gradient(160deg, #4B0082, #4B0082 60%, #5062D6 60%, #5062D6);
    background-size: cover;
    overflow-y: auto;
    background-attachment: fixed;
}

html,
body {
    height: 100%;
}

/* Layout and Structure */
.wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header/Nav Styles */
nav {
    max-width: 100%;
    background-color: #2B1B51;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-left: 2em;
}

.navbar {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.nav_item {
    display: inline-block;
    padding: 10px 15px;
    color: white;
    font-size: 20px;
    text-decoration: underline 0.15em rgba(0, 0, 0, 0);
    transition: text-decoration-color 300ms;
}

.nav_item:hover {
    text-decoration-color: rgba(255, 255, 255, 1);
}

/* Page Specific Styles */
body main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.task_list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.task_item {
    margin: 10px;
}

.task_button {
    text-decoration: none;
    background-color: #4E31AC;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.task_button:hover {
    background-color: orange;
}

#about_section {
    display: flex;
    flex-direction: column;
}

#personal_img {
    width: 300px;
    height: auto;
    margin-top: 40px;
}

.about_item {
    max-width: 800px;
    padding: auto 1em;
    margin: 0.5em auto;
}

#resume {
    padding: .8em 1em;
    margin: auto 0;
    flex-grow: 1;
}

section.scrollable {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section.scrollable object {
    height: 100%;
    width: 80%;
}

.table_container {
    margin: 75px auto 50px auto;
}

#filter_input {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 2px solid #4E31AC;
    border-radius: 4px;
}

#filter_input:focus {
    border-color: #606060;
}

/* Table Styles */
#basketball_table {
    border-collapse: collapse;
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
}

.table_header_cell {
    justify-content: space-between;
    align-items: center;
    background-color: #f2f2f2;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #ccc;
}

#sort_icon {
    width: 16px;
    height: 16px;
    fill: white;
}

#basketball_table th,
#basketball_table td {
    padding: 8px 15px;
    text-align: left;
}

#basketball_table th {
    background-color: #4E31AC;
    color: white;
}

#basketball_table tr:nth-child(even) td {
    background-color: #f3f3f3;
    color: black;
}

.table_header_cell:hover {
    cursor: pointer;
    background-color: #7A5ACD !important;
}

#download_canvas {
    margin: auto auto 0px auto;
    font-weight: normal;
}

#game_canvas {
    margin: auto auto;
    border: 5px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#game_desc {
    margin: 0 auto auto auto;
    width: 800px
}


/* Interaction Styles */
.hover_border {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.hover_border:hover {
    border-color: white;
    transition: border-color 0.3s ease;
}



/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}