
:root {
    --primary-color: #87CEEB;
    --secondary-color: #98FB98;
    --accent-color: #6A5ACD;
    --neutral-color: #F4F4F4;
    --text-color: #333;
    --code-bg: #f0f8ff;
    --hover-scale: 1.05;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin: 0;
}

main {
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.module {
    background: var(--neutral-color);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform var(--transition-speed) ease-in-out;
    overflow: hidden;
    position: relative;
}

.module:hover {
    transform: scale(var(--hover-scale));
}

.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.module:hover::before {
    opacity: 1;
}

.article {
    grid-column: span 2;
    background: var(--neutral-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.article h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.article pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article th,
.article td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

.article th {
    background: var(--accent-color);
    color: #fff;
}

footer {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-top: auto;
    font-size: 0.9rem;
    color: #fff;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .module {
        padding: 1rem;
    }

    .article {
        grid-column: span 1;
    }
}

