@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,14..32,400;0,14..32,500;1,14..32,400;1,14..32,500&display=swap');

* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    background-color: hsl(0, 0%, 100%);
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

.container {
    display: grid;
    margin: 0 auto;
    padding: 20px 15px;
    max-width: 1200px;
    min-height: 100vh;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 8px;
    grid-template-areas: 
        "main_body main_body2 main_body2 main_body3"
        "main_body main_body2 main_body2 main_body3"
        "main_body main_body2 main_body2 main_body3"
        "main_body main_body2 main_body2 main_body3"
        "main_body main_body5 main_body6 main_body3"
        "main_body4 main_body5 main_body6 main_body3"
        "main_body4 main_body5 main_body6 main_body3"
        "main_body4 main_body7 main_body8 main_body8"
        "main_body4 main_body7 main_body8 main_body8"
        "main_body4 main_body7 main_body8 main_body8";
}

.main_body {
    background-color: hsl(31, 66%, 93%);
    grid-area: main_body;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main_body h1 {
    font-size: 24px;
    font-weight: 500;
    color: hsl(0, 0%, 7%);
    margin: 0 0 15px 0;
}

.main_body img {
    max-width: 100%;
    height: auto;
}

.main_body2 {
    background-color: hsl(256, 67%, 59%);
    grid-area: main_body2;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: hsl(0, 0%, 100%);
}

.main_body2 h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.main_body2 p {
    font-size: 18px;
    margin: 0;
}

.main_body2 img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.main_body3 {
    background-color: hsl(254, 88%, 90%);
    grid-area: main_body3;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main_body3 h3 {
    font-size: 20px;
    font-weight: 500;
    color: hsl(0, 0%, 7%);
    margin: 0 0 15px 0;
}

.main_body3 p {
    font-size: 16px;
    color: hsl(0, 0%, 7%);
    margin: 0;
}

.main_body3 img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.main_body4 {
    background-color: hsl(39, 100%, 71%);
    grid-area: main_body4;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main_body4 h4 {
    font-size: 20px;
    font-weight: 500;
    color: hsl(0, 0%, 7%);
    margin: 0 0 15px 0;
}

.main_body4 img {
    max-width: 100%;
    height: auto;
}

.main_body5 {
    background-color: hsl(0, 0%, 100%);
    grid-area: main_body5;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid hsl(0, 0%, 93%);
}

.main_body5 p {
    font-size: 18px;
    font-weight: 500;
    color: hsl(0, 0%, 7%);
    margin: 15px 0 0 0;
}

.main_body5 img {
    max-width: 100%;
    height: auto;
}

.main_body6 {
    background-color: hsl(39, 100%, 71%);
    grid-area: main_body6;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main_body6 p {
    font-size: 18px;
    font-weight: 500;
    color: hsl(0, 0%, 7%);
    margin: 0 0 15px 0;
}

.main_body6 img {
    max-width: 100%;
    height: auto;
}

.main_body7 {
    background-color: hsl(0, 0%, 100%);
    grid-area: main_body7;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid hsl(0, 0%, 93%);
}

.main_body7 h6 {
    font-size: 18px;
    font-weight: 500;
    color: hsl(0, 0%, 7%);
    margin: 0 0 15px 0;
}

.main_body7 p {
    font-size: 32px;
    font-weight: 500;
    color: hsl(0, 0%, 7%);
    margin: 0;
}

.main_body7 img {
    max-width: 100%;
    height: auto;
}

.main_body8 {
    background-color: hsl(256, 67%, 59%);
    grid-area: main_body8;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: hsl(0, 0%, 100%);
}

.main_body8 span {
    font-size: 20px;
    font-weight: 500;
    flex: 1;
}

.main_body8 img {
    max-width: 50%;
    height: auto;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: 
            "main_body2"
            "main_body2"
            "main_body3"
            "main_body3"
            "main_body4"
            "main_body4"
            "main_body5"
            "main_body5"
            "main_body6"
            "main_body6"
            "main_body7"
            "main_body7"
            "main_body8"
            "main_body8"
            "main_body"
            "main_body";
        gap: 12px;
        padding: 15px 12px;
    }
    
    .main_body,
    .main_body2,
    .main_body3,
    .main_body4,
    .main_body5,
    .main_body6,
    .main_body7,
    .main_body8 {
        padding: 20px 12px;
        min-height: 150px;
    }
    
    .main_body8 {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .main_body8 img {
        max-width: 100%;
    }
}

/* Attribution styles */
.attribution {
    font-size: 11px;
    text-align: center;
    padding: 20px;
    background-color: hsl(0, 0%, 100%);
}

.attribution a {
    color: hsl(228, 45%, 44%);
}
