
/* Reset some basic elements */
body, h1, nav ul, nav ul li, main, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Use a font that has a modern feel */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Main styling */
body {
    background-color: #f4f4f4;
    padding-top: 50px;
}

header, footer {
    background-color: #002366; /* Dark blue, reminiscent of the American flag */
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* 3D appearance styling */
nav {
    background-color: #BF0A30; /* Red, also from the American flag */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Creates a sense of depth */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #FFA500; /* Mimicking the stars' color in the American flag */
    transform: translateY(-2px); /* Slight raise effect on hover */
}

/* Content styling */
main {
    padding: 20px;
}

footer {
    font-size: 14px;
}

/* Adding some stars in the background for an American theme */
header::after, footer::after {
    content: '\2605 \2605 \2605 \2605 \2605'; /* Unicode for filled star */
    display: block;
    text-align: center;
    font-size: 16px;
    margin-top: 8px;
}

/* Base mobile styles */
@media only screen and (max-width: 768px) {
    body, header, footer, main {
        padding: 0;
        margin: 0;
    }

    nav ul {
        display: block;
        text-align: center;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    main {
        min-height: calc(100vh - 160px); /* Adjusting main height based on header and footer */
    }
}

/* 3D Layered Effect */
@media only screen and (max-width: 768px) {
    header {
        perspective: 500px;
    }

    header h1 {
        transform: translateZ(60px); /* Make the text pop out */
    }

    nav {
        transform-style: preserve-3d;
        transition: transform 0.3s ease;
    }

    main {
        transform: rotateX(-20deg) translateZ(-50px) scale(0.8); /* Tilting the main content for a 3D effect */
        opacity: 0.9; /* Slightly transparent */
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    footer {
        transform: rotateX(-10deg) translateZ(30px); /* Raising the footer */
        transition: transform 0.3s ease;
    }
}

/* 3D Hover Effect for Menu Items */
@media only screen and (max-width: 768px) {
    nav ul li a {
        display: inline-block; /* Needed to apply the transform */
        transform: translateZ(0); /* Prepare for the hover effect */
        transition: transform 0.3s ease, color 0.3s ease;
    }

    nav ul li a:hover,
    nav ul li a:focus {
        transform: translateZ(30px); /* Pop out the link on hover/focus */
    }
}

header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center the logo image */
    padding: 20px 0; /* Add some padding around the logo */
}

footer {
    background-color: #224;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.footer-content p {
    margin: 5px 0;
}

/* Add a little character with a cute emoji */
footer div p:first-child::after {
    content: " 🚿";
}
