
* {
    box-sizing: border-box; /* Ensures padding/borders don't affect width */
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    margin-top: 80px;
}

header {
    position: fixed; /* Stays at the top of the screen */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px; 
    border-bottom: 5px solid #e74c3c;
    z-index: 1000;
}

.flex-container {
    display: flex;
    justify-content: space-around; /* Distributes space evenly */
    align-items: center; /* Vertically aligns items */
    background-color: #ecf0f1;
    padding: 20px;
    margin: 20px;
    border: 2px dashed #3498db;
}

.flex-item {
    background-color: #3498db;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 30%; /* Keeps items appropriately sized */
}

.float-section {
    margin: 20px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
}

.float-img {
    float: left;
    width: 200px;
    /* Margin, Padding, and Border on an image */
    margin: 0 20px 10px 0; 
    padding: 5px;
    border: 3px solid #2c3e50; 
}

/* Clearfix to prevent the float from breaking the layout */
.float-section::after {
    content: "";
    display: table;
    clear: both;
}

.position-section {
    margin: 20px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    text-align: center;
}

.image-wrapper {
    position: relative; /* Container is relative */
    display: inline-block;
}

.image-wrapper img {
    display: block;
    width: 400px;
    max-width: 100%;
    border: 4px solid #e74c3c;
}

.absolute-text {
    position: absolute; /* Text is over the image */
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
}