
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f8ff; /* Light ocean blue */
    color: #333;
}

.site-header {
    background-color: #ff9900; /* Sunny orange */
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* scalable image */
.responsive-img {
    max-width: 100%; /* The image will scale down if the container shrinks... */
    height: auto;    /* ...while maintaining its aspect ratio. */
    display: block;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* mobile layout */
/* By default, the grid sets a single column for smartphones */
.grid-container {
    display: grid;
    gap: 20px; /* Space between grid items */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    
    /* 1 Column Layout */
    grid-template-columns: 1fr; 
}

/* tablet */
/* When the screen is 600px or wider, switch to a 2-column layout */
@media (min-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Let the main ship card span across both columns to feature it */
    .ship-card {
        grid-column: span 2;
    }
}

/* desktop*/
/* When the screen is 900px or wider, switch to a 3-column layout */
@media (min-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Reset the ship card to only take up one column so all 3 sit side-by-side */
    .ship-card {
        grid-column: span 1;
    }
}