/*This code was genarated and upgraded with the help of chatgpt*/
/* General styles (default for mobile devices) */
body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #000000;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Mobile stacked nav */
    align-items: center;
}

nav ul li {
    margin: 0 0.5rem;
    padding: 0 0.5rem;
    border-right: 1px solid white;
}

/* Remove the right border from the last item */
nav ul li:last-child {
    border-right: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 1rem;
}

/* Intro section: mobile default */
.intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #E3BC9A;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.intro-left,
.intro-side {
    width: 100%;
    text-align: center;
}

.about-text h2 {
    margin-top: 0;
}

.my-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #333;
    object-fit: cover;
}

.intro-cont {
    background-color: #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Responsive layout for tablets/desktops */
@media (min-width: 768px) {
    nav ul {
        flex-direction: row;
        justify-content: center;
    }

    nav ul li {
        margin: 0 1rem;
    }

    .intro {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .intro-left,
    .intro-side {
        width: 48%;
    }

    .my-image {
        text-align: center;
    }

    .content h2 {
        font-size: 1.5rem;
    }
}
