:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-color: #2c3e50;
    --border-color: #e9ecef;
    --hover-color: #f0f4f8;
    --accent-color: #64943E;
    --accent-color2: #e67e22;
    --transition-speed: 0.3s;
}

body {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

main {
    padding: 0.5rem;
    min-height: 100dvh;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Screenshot and Navigation Styling */
.screenshot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#mainScreenshot {
    width: auto;
    height: 45dvh;
    border-radius: 8px;
    transition: transform var(--transition-speed) ease, opacity 0.5s ease-in-out;
}

/*
#mainScreenshot:hover {
    transform: scale(1.2);
    cursor: zoom-in;
}
*/

/* Navigation Controls */
.navigation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    overflow: hidden;
    margin: 1rem 0;
}

#mainTitle {
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid var(--border-color);
    background: var(--primary-bg);
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    margin: 0 auto;
    display: block;
    transition: all var(--transition-speed) ease;
}

#mainTitle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#mainTitle:focus {
    outline: 1px solid #95BF47;
    border-color: #95BF47;
}


/* Navigation Buttons */
#prevPage,
#nextPage {
    border: none;
    background: var(--accent-color);
    color: white;
    font-size: 1.125rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    min-height: 1.5rem;
    margin: auto;
    min-width: 150px;
}

#prevPage:hover,
#nextPage:hover {
    /*transform: translateY(-2px);*/
    box-shadow: inset 0 0 5px #95BF47;
    transform: scale(1.02);
    transition: transform 0.125s ease;
}

/* Description and Content */
#mainDescription {
    transition: opacity 1s ease-in-out;
    font-size: 1.125rem;
    margin-top: 0.1rem;
    margin-bottom: 0.25rem;
    font-weight: lighter;
    text-align: center;
    min-height: 1.25rem;
    color: var(--text-color);
    text-align: center;
    margin: 2rem 0;
    line-height: 1.6;
}

#minMaxPreview {
    transition: opacity 0.5s ease-in-out;
    min-height: 64px;
    max-width: 100%;
    margin: auto;
}

/* Settings Table */
table {
    display: none;
    width: 100%;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    table-layout: fixed;
    border-collapse: collapse;
}

thead th {
    background: var(--accent-color);
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
}

tbody tr {
    transition: background-color var(--transition-speed) ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

tbody tr:nth-child(odd) {
    background-color: rgba(242, 242, 242, 0.5);
}

tbody tr:nth-child(even) {
    background-color: rgba(230, 230, 230, 0.5);
}

tbody tr:hover {
    background: linear-gradient(to right, #f5f0c8, #f9f9e3);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Footer Styling */
footer {
    font-size: smaller;
    padding: 1.31rem 0;
    text-align: center;
    background: var(--secondary-bg);
    margin-top: 0.69rem;
    border-top: #65943e88 solid 1px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

footer a:hover {
    color: #6a89d8;
}

#footerNavSelector {
    font-size: 0.875rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    margin: auto;
    transform: scale(0.85);
}

#footerNavSelector:hover {
    background: var(--hover-color);
    border-color: var(--accent-color);
}

/* Enhanced Animations */
.setting-title {
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}

tr:hover .setting-title {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom-html-width {
        max-width: 86%;
        margin: auto;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .navigation-container {
        flex-direction: column;
    }

    #mainTitle {
        width: 100%;
        max-width: none;
    }

    #prevPage,
    #nextPage {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .custom-html-width {
        max-width: 95%;
        margin: auto;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Styling overrides, prag */
button:hover {
    cursor: pointer;
}

/* Original Structure Preserved */
.navBtnContainer {
    min-width: 20rem;
}

.navBtnContainer #prevPage {
    float: right;
}

/* Enhanced Settings Styling */
.setting-heading {
    font-size: 1.33rem;
    font-weight: bolder;
    margin: 0.33rem 0;
    text-align: center;
}

/* Preserve Block Headings */
.setting-block-heading {
    font-size: 1.55rem;
    font-weight: bold;
    padding-top: 1.35rem;
    text-align: center;
}

.setting-block-heading hr {
    margin: 0;
}

.setting-block-heading span {
    font-size: 1.47rem;
}

.block-icon {
    font-size: 2.25rem !important;
}

.setting-block-note {
    font-size: 1.13rem !important;
    font-weight: lighter;
    font-style: italic;
}

/* Preserve Original Animations */
.highlight {
    background: none !important;
    background-color: yellow !important;
    transition: background-color 0.5s ease !important;
}

@keyframes flashYellowAnimation {
    0% {
        background-color: rgba(255, 255, 0, 0.420) !important;
    }

    100% {
        background-color: inherit !important;
    }
}

.flash {
    animation: flashYellowAnimation 0.15s ease;
}

tbody tr.flash:hover {
    background: rgba(255, 255, 0, 0.5) !important;
}

/* and many more */
td img {
    max-width: 100%;
}

.setting-note-sub {
    font-size: 0.9rem;
    font-weight: light;
    font-style: italic;
    color: #4d4f51d6;
    margin-top: 0.125rem;
}

.setting-title {
    font-size: 1.1em;
    font-weight: bold;
}

.info-feature-list {
    list-style-type: disc;
    text-align: left;
    display: inline-block;
    padding-left: 20px;
    color: #555;
    margin: 0.5rem 0;
}

.info-feature-list a {
    color: #777;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.info-feature-list a:hover {
    color: #6a89d8;
}

.info-feature-list li li {
    font-size: 0.9rem;
}

.and-more-div a {
    color: #567a34;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.and-more-div a:hover {
    color: #d35400;
    text-decoration: underline;
}