/* General Styles */
body {
    background-color: #fcf;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100svh; /* Ensure full viewport height */
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #444;
    padding: 10px;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #555;
}

/* Main Container */
.container {
    display: flex;
    flex-flow: row wrap;
    min-height: 100svh;
    padding: 16px;
    gap: 16px; /* Add spacing between boxes */
    position: relative;
}

/* Boxes Styles */
.box1 {
    background-color: #ffcccc; /* Light red */
    height: 25svh;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
}

.box2 {
    background-color: #cce5ff; /* Light blue */
    height: 50svh;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
}

.box3 {
    background-color: #d4edda; /* Light green */
    height: 50svh;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
}

.box4 {
    background-color: #f8d7da; /* Light pink */
    height: 50svh;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
}

.box5 {
    background-color: #fff3cd; /* Light yellow */
    height: 25vh;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
}

/* Responsive Design */
@media screen and (min-width: 600px) {
    .box2, .box3, .box4 {
        flex: 1 0 33%; /* Boxes side-by-side for medium screens */
    }
}

@media screen and (min-width: 800px) {
    .container {
        padding: 32px;
        gap: 20px; /* Increase spacing for larger screens */
    }

    .box1, .box5 {
        height: 20svh; /* Adjust height for larger screens */
    }

    h2 {
        font-size: 2.5em; /* Larger font size for headings */
    }

    p {
        font-size: 1.2em; /* Adjust paragraph font size */
    }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}
