/* Used to control grid layout to have each corner be treated as boxes as template in a way */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333333;
}

header, footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
}

header p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #bdc3c7;
}

/* Sets up the main container using CSS Grid to hold the four corners and keep them responsive */
.four-corner-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Customizations and styling for the corner box */
.corner-box {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
}

/* Customizations and styling for the headings inside the corner boxes */
.corner-box h2 {
    color: #2980b9;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* Styling for descriptive text paragraphs inside each corner box */
.corner-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Making the image scalbale in the scalable images corner*/
.top-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Inner text for the grid and there spacing between eachother*/
.flex-inner {
    display: flex;
    gap: 0.5rem;
}

/* Styles the individual text items inside the flexbox corner */
.flex-item {
    background: none;
    padding: 0;
    flex: 1;
    text-align: left;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Layout for the inner parts of the grid */
.grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.5rem;
}

/* Each texts styling css done here*/
.grid-item {
    background: none;
    text-align: left;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Media querey to show when to switch from four corners to columns*/
@media screen and (min-width: 600px) {
    .four-corner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Adjustment for larger desktop screens to apply changes to the text */
@media screen and (min-width: 992px) {
    .four-corner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .top-left {
        background-color: #fbfcfc;
        border-color: #3498db;
    }
}