
/* Basic Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 20px;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #eee;
    padding: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

#identity {
    display: flex;
    align-items: center;
    justify-content: center;
}

#identity img {
    max-height: 50px;
    margin-right: 10px;
}

nav {
    background-color: #ddd;
    padding: 1rem;
    margin-bottom: 20px;
}

nav h2 {
    margin-top: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Default: Stack on small screens */
}

nav ul li a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: #333;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    text-align: center;
}

main {
    display: grid;
    gap: 20px;
}

article, section, aside {
    background-color: white;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

figure {
    margin: 1rem 0;
    text-align: center;
}

figure img, figure video {
    max-width: 100%;
    height: auto;
}

figcaption {
    font-style: italic;
    color: #777;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    margin-top: 20px;
    background-color: #333;
    color: white;
    border-radius: 5px;
}

/* Smartphone Layout (Smaller than 767 pixels) - One Column */
@media screen and (max-width: 767px) {
    main {
        grid-template-columns: 1fr; /* Single column */
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        margin-right: 0;
    }
}

/* Tablet Layout (Minimum width of 768 pixels) - Two Columns */
@media screen and (min-width: 768px) {
    main {
        grid-template-columns: 1fr 1fr; /* Two equal columns */
    }

    /* Adjust order for tablet if needed */
    aside {
        order: 3; /* Example: Push aside to the bottom of the two-column layout */
    }
}

/* Desktop Layout (Minimum width of 1200 pixels) - Two to Three Columns */
@media screen and (min-width: 1200px) {
    main {
        grid-template-columns: 2fr 1fr 1fr; /* Two wider columns, one narrower */
    }

    /* More specific layout for desktop */
    article {
        grid-column: span 2; /* Article spans two columns */
    }

    aside {
        grid-column: 3; /* Aside in the third column */
        grid-row: 1 / 3; /* Aside spans two rows */
    }

    section {
        grid-column: 1 / 3; /* Section spans two columns */
    }
}