* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

header,
footer {
    background: linear-gradient(135deg, #2c3e50, #000000);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

header h1 {
    margin: 0;
}

nav {
    text-align: center;
    padding: 1rem 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ccc;
}

nav ul {
    padding: 0;
    margin: 0;
}

nav ul li {
    list-style: none;
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #ddd;
}

main {
    padding: 2rem;
    flex: 1;
    max-width: 1000px;
    width: 90%;
    margin: 2rem auto;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.25rem;
}

main h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

a {
    color: #2c3e50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main a {
    background: linear-gradient(135deg, #2c3e50, #000000);
    background-attachment: fixed;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0.3px 0px 0px #333) drop-shadow(-0.3px 0px 0px #333) drop-shadow(0px 0.3px 0px #333) drop-shadow(0px -0.3px 0px #333);
    text-decoration: none;
    font-weight: bold;
}

main a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

@media (min-width: 768px) {
    main {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2rem;
    }

    img {
        width: 40%;
        order: 1;
        margin-bottom: 0;
    }

    article {
        width: 60%;
        order: 2;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    header,
    footer {
        color: #f0f0f0;
    }

    nav {
        background-color: #222;
        border-bottom: 1px solid #444;
    }

    nav ul li a {
        color: #e0e0e0;
    }

    nav ul li a:hover {
        background-color: #444;
    }

    main {
        background-color: #1e1e1e;
        border: 1px solid #444;
    }

    main h2 {
        border-bottom: 1px solid #444;
    }

    a {
        color: #6fb1fc;
    }

    main a {
        filter: drop-shadow(0.3px 0px 0px #e0e0e0) drop-shadow(-0.3px 0px 0px #e0e0e0) drop-shadow(0px 0.3px 0px #e0e0e0) drop-shadow(0px -0.3px 0px #e0e0e0);
    }
}