:root {
    --font-family: "Inconsolata", monospace;
    --line-height: 1.20rem;
    --border-thickness: 2px;
    --text-color: #000000;
    --text-color-alt: #666;
    --background-color: #ffffff;
    --background-color-alt: #ffffff;
    --font-weight-normal: 500;
    --font-weight-medium: 600;
    --font-weight-bold: 800;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {

    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    width: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    border-collapse: collapse;
    margin: 1rem 0;
}

.header th,
.header td {
    border: var(--border-thickness) solid var(--text-color);
    padding: 8px;
    text-align: left;
    min-height: 40px;
}

button {
    background-color: rgb(135, 170, 235);
    border-width: 3px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: rgba(146, 173, 196, 0.789);
}

.title {
    font-size: 1.5rem;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-color-alt);
}

.main {
    flex: 1;
    max-height: calc(100vh - 100px);
    padding-bottom: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Add these new styles */
.container {
    height: calc(100vh - 90px);
    /* Reduced from previous 60px subtraction */
    padding-top: 1rem;
}

main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;

}

footer {
    background-color: var(--background-color);
    border-top: var(--border-thickness) solid var(--text-color);
}



.gamebox {
    margin: 1rem;
}

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

footer {
    text-align: center;
    padding: 20px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 5px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #000;
    text-decoration: none;
}

.icon-btn:hover {
    background-color: #ddd;
    color: #222;
}

@media screen and (max-width: 768px) {
    .title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 580px) {
    body {
        padding: 0 0.5rem;
    }

    .header th,
    .header td {
        font-size: 14px;
    }

    .title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        height: auto;
        min-height: calc(100vh - 60px);
    }

    .header {
        display: block;
        overflow-x: auto;
    }
}

/* Add to CSS */
.img-scaled {
    max-width: 150px;
    height: auto;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .img-scaled {
        max-width: 100px;
        margin-top: 0.5rem;
    }
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.apps-container {
    padding: 0.5rem 0;
}

.nes-container.with-title {
    margin-top: 1rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .rounded-circle {
        margin-bottom: 0.5rem;
    }

    .text-2xl {
        font-size: 1.25rem;
    }

    .text-xl {
        font-size: 1.1rem;
    }
}



.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 240px;
}

.icon-btn {
    width: 100%;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.icon-btn i {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .profile-image {
        width: 200px;
        height: 300px;
    }

    .social-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }

    .icon-btn {
        padding: 0.6rem;
    }
}


@media screen and (max-width: 980px) {
    body {
        padding: 0 1rem;
    }

    .header {
        margin: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    .title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 580px) {
    body {
        padding: 0 0.5rem;
    }

    .header {
        width: calc(100% - 1rem);
        margin-top: 2rem;

    }

    .header th,
    .header td {
        font-size: 14px;
    }

    .title {
        font-size: 1rem;
    }
}

.global-header {
    font-family: 'Inconsolata', monospace;
    background: var(--background-color);
}

.brand-title {
    font-family: 'Inconsolata', cursive;
    font-size: 1.8rem;
    letter-spacing: -0.05em;
    color: var(--text-color);
}

.version-badge {
    font-size: 0.9rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.metadata-item {
    font-size: 0.9rem;
    color: var(--text-color-alt);
    line-height: 1.4;
}

.author-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.license-status {
    color: #00c853;
    font-weight: var(--font-weight-bold);
}

.header-line {
    height: 2px;
    background: var(--text-color);
    width: 100%;
    opacity: 0.1;
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 1.4rem;
    }

    .metadata-item {
        font-size: 0.8rem;
    }
}

.navCenter {
    display: flex;
    align-items: center;
}

.nav-widget {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.menu-trigger {
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: var(--background-color-alt);
    user-select: none;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: var(--background-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.menu-trigger.active + .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Remove hover/focus rules for nav-menu and chevron */
.explore-dropdown:hover .nav-menu,
.explore-dropdown:focus-within .nav-menu,
.nav-widget:hover .nav-menu,
.explore-dropdown:hover .fa-chevron-down,
.explore-dropdown:focus-within .fa-chevron-down,
.nav-widget:hover .fa-chevron-down {
    all: unset;
}

.nav-link {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.fa-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

/* Only rotate chevron on .explore-dropdown hover */
.explore-dropdown:hover .fa-chevron-down,
.explore-dropdown:focus-within .fa-chevron-down {
    transform: rotate(180deg);
}

/* Remove global chevron rotation */
.nav-widget:hover .fa-chevron-down {
    transform: none;
}


@media (max-width: 992px) {
    .nav-widget {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
ß
    .nav-menu {
        left: 0;
        transform: none;
        
    }
}


/* Remove existing row/column styles */
.branding-section,
.metadata-section {
    flex: 1 1 30%;
    /* Adjust width as needed */
}