body {
    background-color: #212529;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}

a:hover,
a:focus {
    color: #ffffff;
    text-decoration-thickness: 3px;
}

a:visited {
    color: #ffffff;
}

a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.social-icon {
    font-size: 2em;
}

.social-link {
    margin: 0 20px;
    /* This adds 20px spacing on both left and right */
}

.vertical-spacing {
    margin-top: 25px;
    /* This adds 50px spacing from the top */
}


.project-logo {
    width: 75px;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 15px;
    /* This adds rounded corners */
}


.project-logo:hover {
    transform: scale(1.1);
}

.container {
    padding: 2rem;
    max-width: 800px;
}

.front-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.blog-header {
    margin-bottom: 2rem;
}

.blog-date {
    color: #adb5bd;
    font-size: 0.9rem;
}

.blog-title {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.blog-content h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.blog-content code {
    background-color: #2c3034;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-left: 2rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 1em;
}

.blog-content pre {
    background-color: #2c3034;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 1em;
    line-height: 1.6;
}

.back-to-blogs,
.back-home {
    margin-bottom: 2rem;
}

.tags {
    margin: 2rem 0;
}

.tag {
    display: inline-block;
    background-color: #2c3034;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.blog-list {
    margin-top: 2rem;
}

.blog-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #495057;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.blog-item:hover {
    transform: translateX(10px);
    background-color: #2c3034;
}

/* Image modal overlay styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    cursor: default;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.image-modal-close:hover,
.image-modal-close:focus {
    opacity: 0.7;
}

/* Make images in blog content clickable */
.blog-content img {
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
}

.blog-content img:hover {
    opacity: 0.9;
}

/* Expand icon overlay - background box */
.blog-content img::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

/* Expand icon overlay - arrows */
.blog-content img::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 0;
    height: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 11;
    /* Top-left arrow (pointing up-left) - creates a corner arrow */
    border-top: 5px solid rgba(100, 100, 100, 0.9);
    border-left: 5px solid rgba(100, 100, 100, 0.9);
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transform: translate(-10px, -10px);
    /* Bottom-right arrow (pointing down-right) using box-shadow */
    box-shadow:
        20px 20px 0 -5px rgba(100, 100, 100, 0.9),
        20px 20px 0 0 transparent;
}

.blog-content img:hover::before,
.blog-content img:hover::after {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}