.info-box .info-links a {
    color: #fff !important;
    text-decoration: underline;
    transition: color 0.2s;
}
.info-box .info-links a:hover {
    color: #aad8ff !important;
}
.profile-header h2 {
    width: 100%;
    text-align: inherit;
    margin: 0;
}
@media (max-width: 768px) {
    body.home .profile-hoopoe {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 0.5rem;
    }
    body.home .profile-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    body.home .profile-header h2 {
        margin-top: 0.5rem;
    }
    body.home .info-box {
        text-align: center;
        padding: 12px 10px;
    }
    body.home .info-box .info-links {
        justify-content: center;
        text-align: center;
        padding: 0;
        font-size: 0.95rem;
        flex-wrap: wrap;
        color: #fff;
    }
    body.home .info-box .info-links a {
        color: #fff !important;
        text-decoration: underline;
        transition: color 0.2s;
    }
    body.home .info-box .info-links a:hover {
        color: #aad8ff !important;
    }
    body.home .info-links a {
        padding: 0 2px;
    }
    body.home .profile-header,
    body.home .profile {
        justify-content: center;
        text-align: center;
    }
    body.home .mobile-topbar {
        display: none !important;
    }
    body.home .home-mobile-sidebar-wrapper {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        width: 100vw;
        position: relative;
        z-index: 20;
        background: none;
        gap: 24px;
    }
    body.home .sidebar-container {
        position: static;
        margin: 0 auto;
        width: auto;
        max-width: 340px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    body.home .info-box,
    body.home .nav-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
        max-width: 340px;
        min-width: 0;
        margin: 0 auto 16px auto;
        box-sizing: border-box;
    }
    .lang-buttons-mobile-home {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin: 24px 0 56px 0;
        width: 100%;
    }
    .lang-buttons-mobile-home .flag-icon {
        width: 2.2em;
        height: 1.3em;
        border-radius: 2px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
        filter: grayscale(0.2);
        transition: filter 0.2s, transform 0.2s;
    }
    .lang-buttons-mobile-home a:hover .flag-icon {
        filter: grayscale(0) drop-shadow(0 0 2px #aad8ff);
    }
    body.home .sidebar-container,
    body.home .info-box,
    body.home .nav-box {
        margin-left: auto !important;
        margin-right: auto !important;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 340px;
    }
    .content-box {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 100px 16px 6rem 16px;
        max-height: none;
    }
    .profile {
        flex-direction: column;
        gap: 4px;
    }
    .profile h2 {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    .profile-hoopoe {
        margin-bottom: 0.25rem;
    }
    .lang-buttons-mobile {
        display: flex;
        justify-content: center;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 2.5rem;
        z-index: 100;
        background: none;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }
    .lang-buttons-mobile a:hover .flag-icon {
        filter: grayscale(0) drop-shadow(0 0 2px #aad8ff);
    }
    .lang-buttons {
        display: none;
    }
}

@media (min-width: 769px) {
    .info-box,
    .profile,
    .profile-header,
    .info-links {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
    }
    body.hebrew-bg .info-box,
    body.hebrew-bg .profile,
    body.hebrew-bg .profile-header,
    body.hebrew-bg .info-links {
        text-align: right;
        justify-content: flex-end;
        align-items: flex-end;
    }
    .lang-buttons-mobile-home {
        display: none !important;
    }
}
@media (max-width: 768px) {
    body.home .info-box {
        padding: 12px 10px;
    }
    body.home .info-links {
        padding: 0;
        font-size: 0.95rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    body.home .info-links a {
        padding: 0 2px;
    }
}
@media (min-width: 769px) {
    .lang-buttons-mobile-home {
        display: none !important;
    }
}
html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('/assets/central_park.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.hebrew-bg {
    background-image: url('/assets/kite_sea.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.sidebar-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.info-box {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 20px 28px;
    border-radius: 10px;
    max-width: 340px;
    font-family: 'Courier New', Courier, monospace;
}

.content-box {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 440px;
    bottom: 72px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(170, 216, 255, 0.5) rgba(0, 0, 0, 0.3);
}

/* Webkit browsers (Chrome, Safari, Edge) */
.content-box::-webkit-scrollbar {
    width: 10px;
}

.content-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.content-box::-webkit-scrollbar-thumb {
    background: rgba(170, 216, 255, 0.5);
    border-radius: 5px;
    transition: background 0.2s;
}

.content-box::-webkit-scrollbar-thumb:hover {
    background: rgba(170, 216, 255, 0.8);
}

.content-box h1 {
    margin-top: 0;
    color: #fff;
}

.content-box h2 {
    color: #fff;
}

.content-box a {
    color: #aad8ff;
    text-decoration: none;
    transition: color 0.2s;
}

.content-box a:hover {
    color: #fff;
    text-decoration: underline;
}

.content-box section {
    margin-bottom: 2rem;
}

.nav-box {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 20px 28px;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: fit-content;
}

.nav-box a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-box a:hover {
    color: #aad8ff;
    text-decoration: underline;
}

/* Mobile top bar */
.mobile-topbar {
    display: none;
}

@media (max-width: 768px) {
    .info-box,
    .nav-box {
        display: none;
    }
    .mobile-topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.9);
        color: #fff;
        padding: 12px 16px;
        font-family: 'Courier New', Courier, monospace;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .mobile-topbar .site-title {
        font-size: 1.25rem;
        font-weight: bold;
        color: #fff;
        text-decoration: none;
    }
    .mobile-topbar nav {
        display: flex;
        gap: 16px;
        align-items: center;
    }
    .mobile-topbar nav a {
        color: #fff;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s;
    }
    .mobile-topbar nav a:hover {
        color: #aad8ff;
    }
    .mobile-profile {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile-profile img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    body.home .mobile-topbar {
        display: none !important;
    }
    body.home .home-mobile-sidebar-wrapper {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        width: 100vw;
        position: relative;
        z-index: 20;
        background: none;
        gap: 24px;
    }
    body.home .sidebar-container {
        position: static;
        margin: 0 auto;
        width: auto;
        max-width: 340px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    body.home .info-box,
    body.home .nav-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: auto;
        max-width: 340px;
        min-width: 0;
        margin: 0 auto 16px auto;
        box-sizing: border-box;
    }
    .lang-buttons-mobile-home {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin: 16px 0 0 0;
        width: 100%;
    }
    .lang-buttons-mobile-home .flag-icon {
        width: 2.2em;
        height: 1.3em;
        border-radius: 2px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
        filter: grayscale(0.2);
        transition: filter 0.2s, transform 0.2s;
    }
    .lang-buttons-mobile-home a:hover .flag-icon {
        filter: grayscale(0) drop-shadow(0 0 2px #aad8ff);
    }

.info-box > p {
    margin-top: 0px;
}

    .info-box {
        background: rgba(0,0,0,0.7);
        color: #fff;
        padding: 20px 28px;
        border-radius: 10px;
        max-width: 340px;
        width: 100%;
        font-family: 'Courier New', Courier, monospace;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

.profile {
    margin-bottom: 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile h2 {
    font-size: 2rem;
    margin: 0;
}

.profile .bio {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: #fff;
    line-height: 1.4;
}

.profile-hoopoe {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#bg-image {
    width: 100vw;
    height: 100vh;
    align-items: center;
}

.bottom-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: .75rem;
    z-index: 10;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
    box-sizing: border-box;
}

.lang-buttons {
    position: absolute;
    right: 12px;
    bottom: 8px;
    display: flex;
    gap: 8px;
}

.lang-buttons-mobile {
    display: none;
}

.lang-buttons a {
    font-size: 1.5rem;
    text-decoration: none;
    filter: grayscale(0.2);
    transition: filter 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
}
.lang-buttons-mobile .flag-icon {
    width: 2.2em;
    height: 1.3em;
}

.flag-icon {
    width: 1.5em;
    height: .9em;
    object-fit: contain;
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    margin: 0 2px;
    filter: grayscale(0.2);
    transition: filter 0.2s, transform 0.2s;
}

.lang-buttons a:hover .flag-icon {
    filter: grayscale(0) drop-shadow(0 0 2px #aad8ff);
}

@media (max-width: 768px) {
    body.home .sidebar-container,
    body.home .info-box,
    body.home .nav-box {
        margin-left: auto !important;
        margin-right: auto !important;
        left: 0;
        right: 0;
    }
    body.home .sidebar-container {
        width: 100%;
        max-width: 340px;
    }
    body.home .info-box,
    body.home .nav-box {
        width: 100%;
        max-width: 340px;
    }
    .content-box {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 100px 16px 6rem 16px;
        max-height: none;
    }
    .profile {
        flex-direction: column;
        gap: 4px;
    }
    .profile h2 {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    .profile-hoopoe {
        margin-bottom: 0.25rem;
    }
    .lang-buttons-mobile {
        display: flex;
        justify-content: center;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 2.5rem;
        z-index: 100;
        background: none;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }
    .lang-buttons-mobile a:hover .flag-icon {
        filter: grayscale(0) drop-shadow(0 0 2px #aad8ff);
    }
    .lang-buttons {
        display: none;
    }
}
