<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Carnival Cruise…
- User
header { background: #083358; color: #fff; padding: 1rem 2rem; text-align: center; } header h1 { margin: 0; font-size: 2rem; } nav { background: #ccc; display: flex; justify-content: center; } nav a { margin: 0 1rem; padding: 0.75rem 1rem; text-decoration: none; color: #333; } nav a:hover { background: #bbb; } /* Page content sections */ .container { padding: 2rem; max-width: 1200px; margin: 0 auto; background: #fff; } .hero { text-align: center; background: url('https://example.com/cruise-background.jpg') no-repeat center center/cover; color: #fff; padding: 4rem 2rem; margin-bottom: 2rem; } .hero h2 { font-size: 2.5rem; margin-bottom: 1rem; } .hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto; } .features { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; } .feature-item { flex: 1 1 250px; background: #eaeaea; border-radius: 8px; text-align: center; padding: 1.5rem; } .feature-item h3 { margin-bottom: 1rem; } /* Footer */ footer { background: #083358; color: #fff; text-align: center; padding: 1rem; margin-top: 2rem; }<!-- About Section --> <section id="about"> <h2>About Us</h2> <p> We are a team of Roblox enthusiasts who love designing and simulating real-life experiences. Our Carnival Cruise Line Simulator aims to give players the sense of traveling the seas, enjoying onboard activities, and making friends along the way. </p> </section> <!-- Contact Section --> <section id="contact"> <h2>Get in Touch</h2> <p>Have feedback or questions? Send us a message!</p> <form> <label for="name">Name:</label><br /> <input type="text" id="name" name="name" /><br /><br /> <label for="email">Email:</label><br /> <input type="email" id="email" name="email" /><br /><br /> <label for="message">Message:</label><br /> <textarea id="message" name="message" rows="5" cols="33"></textarea><br /><br /> <button type="submit">Submit</button> </form> </section> Assistant
Okay, let's enhance the provided CSS to give your Carnival Cruise Line Simulator page a more polished and modern look, including styling for the form elements and improving the overall layout and aesthetics.
I've added:
- Form Styling: Inputs, textarea, labels, and the submit button.
- Visual Enhancements: Box shadows, transitions for interactivity, improved spacing, and some minor aesthetic touches.
- Responsiveness: Basic media queries to make it look decent on smaller screens.
- Placeholder Image: Replaced the
example.comimage with a workingvia.placeholder.comURL for the hero section background, so you can see the effect.
Here's the updated
stylesection:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Carnival Cruise Line Simulator - Roblox</title> <style> /* Basic styling */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Slightly more modern font */ margin: 0; padding: 0; background: #eef2f7; /* Lighter, more modern background */ color: #333; line-height: 1.6; /* Improved readability */ } header { background: #083358; /* Dark blue */ color: #fff; padding: 1.5rem 2rem; /* Increased padding */ text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Added shadow for depth */ } header h1 { margin: 0; font-size: 2.8rem; /* Larger heading */ letter-spacing: 0.05em; /* Slightly spaced out letters */ } nav { background: #e0e0e0; /* Lighter grey for navigation */ display: flex; justify-content: center; padding: 0.5rem 0; /* Vertical padding */ box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */ } nav a { margin: 0 1.2rem; padding: 0.8rem 1.5rem; /* More prominent buttons */ text-decoration: none; color: #333; font-weight: bold; transition: background 0.3s ease, color 0.3s ease; /* Smooth transition for hover */ border-radius: 5px; /* Slightly rounded corners */ } nav a:hover { background: #083358; /* Dark blue on hover */ color: #fff; } /* Page content sections */ .container { padding: 2.5rem; /* More internal padding */ max-width: 1200px; margin: 2.5rem auto; /* More margin from top/bottom */ background: #fff; border-radius: 10px; /* More rounded container */ box-shadow: 0 5px 20px rgba(0,0,0,0.1); /* Stronger shadow for main content */ } .hero { text-align: center; /* Replaced with a working placeholder image URL */ background: url('https://via.placeholder.com/1500x400/083358/FFFFFF?text=Ultimate+Cruise+Adventure') no-repeat center center/cover; color: #fff; padding: 6rem 2rem; /* Increased padding for visual impact */ margin-bottom: 3rem; /* More space below hero */ border-radius: 10px; /* Rounded corners */ box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Shadow for hero */ display: flex; /* For better content centering */ flex-direction: column; justify-content: center; align-items: center; min-height: 350px; /* Ensure minimum height */ } .hero h2 { font-size: 3.2rem; /* Larger hero heading */ margin-bottom: 1rem; text-shadow: 3px 3px 6px rgba(0,0,0,0.7); /* Stronger text shadow for readability */ } .hero p { font-size: 1.4rem; /* Larger hero text */ max-width: 750px; /* Wider text block */ margin: 0 auto; text-shadow: 2px 2px 5px rgba(0,0,0,0.7); /* Text shadow */ } /* Section headings */ section h2 { font-size: 2.5rem; color: #083358; text-align: center; margin-bottom: 2rem; /* More space below heading */ padding-bottom: 0.8rem; /* Padding for pseudo-element underline */ position: relative; } section h2::after { /* Underline effect for section titles */ content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 80px; /* Wider underline */ height: 5px; /* Thicker underline */ background: #f3a800; /* Orange accent color */ border-radius: 3px; } .features { display: flex; flex-wrap: wrap; gap: 2rem; /* Increased gap between feature items */ justify-content: center; margin-top: 2rem; } .feature-item { flex: 1 1 300px; /* Flexible base width */ background: #f8f8f8; /* Slightly off-white background */ border-radius: 10px; text-align: center; padding: 2rem; /* More internal padding */ box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Subtle shadow */ transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */ } .feature-item:hover { transform: translateY(-8px); /* Lift effect */ box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* Stronger shadow on hover */ } .feature-item h3 { margin-bottom: 1rem; font-size: 1.8rem; /* Larger feature title */ color: #083358; /* Matching brand color */ } /* About and Contact sections */ #about, #contact { padding-top: 2.5rem; /* Consistent padding at top of sections */ padding-bottom: 2.5rem; /* Consistent padding at bottom */ border-top: 1px solid #eee; /* Light separator between sections */ margin-top: 2.5rem; } #about p, #contact p { font-size: 1.1rem; max-width: 800px; margin: 0.5rem auto 1.5rem auto; /* Center text with some spacing */ text-align: center; } /* Form Styling */ form { max-width: 600px; margin: 0 auto; padding: 2.5rem; background: #fefefe; /* Very light background for form */ border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; flex-direction: column; } form label { display: block; /* Make labels appear on their own line */ margin-bottom: 0.6rem; font-weight: bold; color: #555; font-size: 1.05rem; } form input[type="text"], form input[type="email"], form textarea { width: calc(100% - 20px); /* Account for padding */ padding: 12px; /* Larger padding */ margin-bottom: 1.5rem; /* More space below inputs */ border: 1px solid #ccc; /* Lighter border */ border-radius: 6px; /* Slightly more rounded */ box-sizing: border-box; /* Ensures padding doesn't increase width */ font-size: 1.05rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; } form input[type="text"]:focus, form input[type="email"]:focus, form textarea:focus { border-color: #083358; /* Dark blue border on focus */ outline: none; /* Remove default outline */ box-shadow: 0 0 8px rgba(8, 51, 88, 0.2); /* Subtle glow on focus */ } form textarea { resize: vertical; /* Allow vertical resizing */ min-height: 120px; /* Minimum height for textarea */ } form button[type="submit"] { background: #083358; /* Dark blue button */ color: #fff; padding: 1rem 2rem; /* Larger padding for button */ border: none; border-radius: 7px; /* Rounded button */ cursor: pointer; font-size: 1.2rem; font-weight: bold; transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; align-self: center; /* Center the button */ width: auto; /* Allow button to size based on content/padding */ min-width: 150px; /* Minimum width for button */ } form button[type="submit"]:hover { background: #062a4d; /* Darker blue on hover */ transform: translateY(-3px); /* Lift effect on hover */ box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Shadow on hover */ } /* Footer */ footer { background: #083358; color: #fff; text-align: center; padding: 1.8rem; /* Increased padding */ margin-top: 3rem; /* More space above footer */ box-shadow: 0 -4px 8px rgba(0,0,0,0.2); /* Shadow for footer */ font-size: 0.95rem; } /* Media Queries for Responsiveness */ @media (max-width: 992px) { .hero h2 { font-size: 2.5rem; } .hero p { font-size: 1.2rem; } section h2 { font-size: 2rem; } .container { padding: 2rem; margin: 1.5rem auto; } .feature-item { flex: 1 1 280px; /* Adjust feature item base width */ } } @media (max-width: 768px) { header h1 { font-size: 2rem; } nav { flex-direction: column; /* Stack nav items vertically */ padding: 0; } nav a { margin: 0; border-bottom: 1px solid #ccc; border-radius: 0; /* Remove border-radius when stacked */ padding: 0.7rem 1.5rem; } nav a:last-child { border-bottom: none; } .hero { padding: 4rem 1rem; margin-bottom: 2rem; } .hero h2 { font-size: 1.8rem; } .hero p { font-size: 1rem; } section h2 { font-size: 1.8rem; } section h2::after { width: 60px; /* Smaller underline on mobile */ height: 4px; } .features { flex-direction: column; /* Stack features on small screens */ gap: 1.5rem; } .feature-item { flex: 1 1 auto; /* Full width */ } .container { padding: 1.5rem; margin: 1rem auto; } form { padding: 1.5rem; } form input[type="text"], form input[type="email"], form textarea { width: calc(100% - 24px); /* Adjusted for new padding */ padding: 10px; } form button[type="submit"] { width: 100%; /* Full width button on small screens */ padding: 0.9rem; } } @media (max-width: 480px) { header h1 { font-size: 1.5rem; } .hero h2 { font-size: 1.5rem; } .hero p { font-size: 0.9rem; } section h2 { font-size: 1.5rem; } footer { padding: 1.2rem; } } </style> </head> <body> <header> <h1>Carnival Cruise Line Simulator</h1> </header> <nav> <a href="#home">Home</a> <a href="#features">Features</a> <a href="#about">About</a> <a href="#contact">Contact</a> </nav> <!-- Hero Section --> <section class="hero" id="home"> <h2>Experience the Ultimate Cruise Adventure</h2> <p>Join us on Roblox for a one-of-a-kind cruise adventure. Relax, explore, and have fun on the high seas!</p> </section> <!-- Main Content Container --> <div class="container"> <!-- Features Section --> <section id="features"> <h2>Game Features</h2> <div class="features"> <div class="feature-item"> <h3>Realistic Cruise Ship</h3> <p>Explore a detailed cruise ship designed to replicate the real-world Carnival experience.</p> </div> <div class="feature-item"> <h3>Interactive Mini-Games</h3> <p>Participate in onboard activities: trivia, stage shows, and more.</p> </div> <div class="feature-item"> <h3>Scenic Ports of Call</h3> <p>Discover different destinations. Go on shore excursions and earn rewards.</p> </div> </div> </section> <!-- About Section --> <section id="about"> <h2>About Us</h2> <p> We are a team of Roblox enthusiasts who love designing and simulating real-life experiences. Our Carnival Cruise Line Simulator aims to give players the sense of traveling the seas, enjoying onboard activities, and making friends along the way. </p> </section> <!-- Contact Section --> <section id="contact"> <h2>Get in Touch</h2> <p>Have feedback or questions? Send us a message!</p> <form> <label for="name">Name:</label> <input type="text" id="name" name="name" required /> <label for="email">Email:</label> <input type="email" id="email" name="email" required /> <label for="message">Message:</label> <textarea id="message" name="message" rows="5"></textarea> <button type="submit">Submit</button> </form> </section> </div> <footer> <p>© 2025 Carnival Cruise Line Simulator on Roblox</p> </footer> </body> </html>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.