
:root {
    --primary-color: #001F3F;
    --secondary-color: #4B0082;
    --accent-color: #FF4136;
    --background-gradient: linear-gradient(135deg, #001F3F, #4B0082);
    --text-color: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.1);
    --hover-effect: scale(1.05);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #001F3F, #1A237E);
    border-bottom: 2px solid var(--accent-color);
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sidebar {
    width: 20%;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-right: 20px;
}

.sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sidebar a:hover {
    transform: var(--hover-effect);
    color: var(--accent-color);
}

.main-content {
    width: 75%;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.article {
    margin-bottom: 30px;
}

.article h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.article h3 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.article p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article code {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article th, .article td {
    border: 1px solid var(--accent-color);
    padding: 10px;
    text-align: left;
}

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

.images-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.image-item {
    flex: 1 1 calc(25% - 15px);
    max-width: calc(25% - 15px);
    position: relative;
}

.image-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: var(--hover-effect);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .main-content {
        width: 100%;
    }

    .image-item {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .image-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .article h2 {
        font-size: 1.8rem;
    }

    .article h3 {
        font-size: 1.3rem;
    }
}

