
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #00008b, #4b0082);
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(to right, #8b0000, #4b0082);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-family: 'Roboto Slab', serif;
    color: #f5deb3;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

nav a {
    color: #f5deb3;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: #ffdead;
    transform: scale(1.1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffdead;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav a:hover::after {
    transform: scaleX(1);
}

main {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.section {
    background: linear-gradient(to bottom right, #f5deb3, #fff8dc);
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease-in-out;
}

.section:hover {
    transform: translateY(-10px);
}

.section img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content {
    padding: 20px;
    text-align: justify;
}

.content h2 {
    font-family: 'Roboto Slab', serif;
    color: #8b0000;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.content p {
    line-height: 1.6;
    color: #4d4d4d;
}

pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

code {
    color: #8b0000;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #8b0000;
    color: white;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #00008b;
    color: #f5deb3;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    main {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .section {
        margin-bottom: 20px;
    }
}

