/* Default styles (desktop and mobile) */
body {
    font-family: "Space Mono", monospace;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #121212;
    color: #e0e0e0;
}

header {
    text-align: center;
}

header img {
    width: 100%;
    height: auto;
    display: block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* App section spacing */
.app {
    margin-bottom: 200px;
}

.app:nth-of-type(2) {
    margin-top: 50px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Navigation styles */
nav {
    background-color: #9595e0;
    color: #e0e0e0;
}

nav ul {
    display: flex;
    flex-direction: row-reverse; /* Right to left order */
    justify-content: center;     /* Centered horizontally */
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a:focus {
    text-decoration: underline;
}

/* Main content */
main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
    background-color: #2e2e2e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

section#apps {
    text-align: center;
}

section#apps img,
section#apps iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

section a {
    color: #e0e0e0;
    text-decoration: none;
}

section a:hover,
section a:focus {
    text-decoration: underline;
}

/* Special link colors */
section#apps a[href*="instagram.com"] {
    color: #ff5722;
}

section#apps a[href*="itch.io"] {
    color: #e91e63;
}

section#apps a[href*="instagram.com"]:hover {
    color: #ff3d00;
}

section#apps a[href*="itch.io"]:hover {
    color: #d81b60;
}

/* Footer */
footer {
    background-color: #9595e0;
    color: #e0e0e0;
    text-align: center;
    padding: 1rem;
    border-top: 2px solid #e0e0e0;
}

/* Responsive Design for tablets and mobile */
@media (max-width: 768px) {
    header, footer {
        padding: 0.5rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    section#apps img,
    section#apps iframe {
        width: 100%;
        height: auto;
    }

    section#apps ul {
        text-align: left;
        padding-left: 1rem;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    nav ul li {
        font-size: 1rem;
    }

    header, footer {
        font-size: 0.875rem;
    }

    section {
        font-size: 0.875rem;
    }
}

/* Code styling */
pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 400px;
}

code {
    white-space: pre-wrap;
}

