.contentblog{
    background-color: rgb(30, 29, 29);;
    border-radius: 10px;
    padding-top: 5px;
    padding-left:10px;
    padding-right: 10px;
    text-align: center;
    padding-bottom: 4px;
    margin-bottom: 10px;
    animation: swoopUp 1.0s ease-out forwards;
}

@keyframes swoopUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }

}


.formula{
    text-align: center;
}

.code-window {
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 1.5rem 0;
}

/* Header bar */
.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

.code-title {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
    font-family: system-ui, sans-serif;
}

/* Mac-style dots */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #ef4444; }
.yellow { background: #facc15; }
.green { background: #22c55e; }

/* Code area */
.code-window pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.codeclass {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e5e7eb;
    white-space: pre;
}
.image-section {
    width: 100%;
    padding: 2rem 1rem;
}

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

/* Image defaults */
.image-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .image-wrapper img {
        max-height: 240px;
    }

    .image-section {
        padding: 1.5rem 1rem;
    }
}
@media (max-width: 480px) {
    .image-wrapper img {
        max-height: 180px;
        width: 100%;
    }

    .image-section {
        padding: 1rem 0.5rem;
    }
}
