body {
    font-family: Cabin, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}

header {
    background-color: rgba(52, 152, 219, 0.7); 
    color: #fff;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: inline-block;
    margin: 10px;
    font-size: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    position: relative;
}

nav a:hover {
    color: #666; 
    text-decoration: none;
}

main {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

section {
    margin: 10px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    flex-basis: 100%; /* Default to full width */
}

section h3 {
    color: #333;
}

section p {
    color: #344;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* Media query for screens wider than 768px */
@media (min-width: 768px) {
    main {
        flex-direction: row;
        justify-content: space-between; /* Space between columns */
    }
    
    section {
        flex-basis: 100%; /* Two-column layout */
    }
}
