/* Base Variables */
:root {
    --background-color: #ffffff;
    --text-color: #000000;
    --link-color: #1a0dab;
    --code-block-bg: #f5f5f5;
    --code-block-text: #333333;
    --image-filter: none;
}

[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --link-color: #bb86fc;
    --code-block-bg: #1e1e1e;
    --code-block-text: #dcdcdc;
    --image-filter: grayscale(80%) brightness(80%);
}

/* Full-Height Wrapper */
html, body {
    margin: 0; 
    height: 100%; 
/*    overflow: hidden;*/
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Ensures wrapper takes up full height of the viewport */
}

main {
    flex: 1; /* Allows main content to expand and push footer down */
    padding: 10px;
}

/* Global Styles */
body {
    margin: 0;
    font-family: monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

code {
    background-color: var(--code-block-bg);
    color: var(--code-block-text);
    padding: 5px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    filter: var(--image-filter);
    width: 98px;
    height: 143px;
}

/* Header and Footer */
header, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10%;
    padding: 10px;
    background-color: var(--background-color);
/*    border-bottom: 1px solid var(--code-block-bg);*/
}

.footer {
    display: flex;
/*    margin: auto;*/
    gap: 30px; /* Adjust to increase spacing */
}

.footer a i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer a i:hover {
    color: #333; /* Darker hover color */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Theme Toggle */
.theme-toggle button {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}

.theme-toggle button:hover {
    background-color: var(--code-block-bg);
}

table {
    width: 100%;
/*    margin-top: -50px;*/
}

td {
    max-width: 58vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tr{
    line-height: 1.2;
}

#gr_quote_body {
    margin: auto;
    white-space: pre-line; /* Allows <br> and line breaks to display */
}

#gr_quote_body a {
    display: block; /* Ensures it starts on a new line */
    color: inherit; /* Keeps link color consistent */
    text-decoration: none; /* Optional: Remove underline if undesired */
}

#gr_quote_body a::before {
    content: "";
    display: block; /* Ensures the pseudo-element creates a new line */
    margin-bottom: 5px; /* Adjusts spacing above the attribution */
}

.quote {
/* font-size: clamp(.75rem, 2vw, 4rem); /* Dynamically adjusts font size */*/
white-space: nowrap; /* Prevent text wrapping */
}

.entry {
    margin-top: 20px;
}

.selected {
    font-weight: bold;
}

.smaller {
    font-size: smaller;
}

.right-align {
    text-align: right;
}

/* Goodreads Grid Styles */
.gr_grid_branding {
    display: none !important;
}

.gr_grid_container {
    max-width: 686px;
    margin: 0 auto;
}

.gr_grid_book_container {
    float: left;
    width: 98px;
    height: 143px;
    padding: 0;
    overflow: hidden;
}

.options {
    margin: auto;
}

/*.footer a i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer a i:hover {
    color: #333; /* Darker hover color */
    transform: scale(1.1); /* Slight zoom effect */
}*/


/* Miscellaneous */
br {
    /* Uncomment and adjust if line breaks need customization */
    /* content: '\A'; */
    /* display: contents; */
    /* white-space: pre; */
}
