html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA9Ig==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Layout structure */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevent scrolling on the container */
}

main {
    flex: 1; /* Takes up all available space */
    overflow: hidden; /* Prevent scrolling on main */
    position: relative;
}

article.content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 1.5rem; /* Replace px-4 with explicit padding */
}

/* Header and Footer */
.header-container, .footer-container {
    flex-shrink: 0; /* Prevent header/footer from shrinking */
}

/* HEADER */
.header-container {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 20px;
}

    .header-container a {
        text-decoration: none !important;
        color: #fff;
        padding-left: 10px;
    }

        .header-container a:hover {
            color: #0072c6;
            font-style: italic;
        }

.man {
    color: #0072c6;
    font-style: italic;
    font-weight: bolder;
}

.logo {
    font-size: x-large
}

/* FOOTER */
.footer-container {
    width: 100%;
}

.footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.logo {
    font-size: x-large
}

div.certs {
    padding-top: 20px;
}

    div.certs > div.badges > img {
        height: 150px;
    }

    div.certs > div.logos {
        padding-right: 10px;
    }

/* For Blazor error UI */
#blazor-error-ui {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: none;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 10px;
        top: 5px;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Two-column layout for blogs page */
.container {
    display: flex;
    width: 100vw; /* Change from 100% to 100vw to ensure full viewport width */
    min-height: 80vh;
    gap: 2rem;
    overflow: hidden; /* Prevent container level scrolling */
    margin: 0; /* Ensure no margins affect the full width */
    padding: 0; /* Ensure no padding affects the full width */
    box-sizing: border-box; /* Include padding and border in element's width */
}

.left-column {
    flex: 0 0 20%; /* Set to exactly 20% of container width */
    border-right: 1px solid #e0e0e0;
    padding-right: 1rem;
    overflow-y: auto; /* Changed from scroll to auto for better UX */
    height: 100%; /* Ensure full height for scrolling */
}

.right-column {
    flex: 1; /* Takes up remaining 80% */
    padding: 0 1rem;
    overflow-y: auto; /* Changed from scroll to auto for better UX */
    height: 100%; /* Ensure full height for scrolling */
}

/* Loading indicator styles */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Content area styles */
#content {
    padding: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-column {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

ul.blog-list {
    list-style-type: none;
    padding: 0;
}

    ul.blog-list li a {
        -webkit-text-decoration: none;
        text-decoration: none;
        padding-bottom: 10px;
    }

        ul.blog-list li a:hover {
            font-weight: bold !important;
        }

.current_article{
    font-weight: bold;
    color: #0072c6;
}

.code{
        background-color: #f4f4f4;
}