body {
    margin:0;
    font-family: arial, sans-serif;
}

header {
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding:1rem;
    background-color: #222;
    color:white;
}

.grid {
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
    padding:20px;
}

.flex {
    display:flex;
    justify-content: space-around;
    background-color: #222;
    padding:10px;
}

.flex a {
    color:white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.title {
    grid-column: span 2;
    font-size: 2rem;
}

.image1, .image2 {
    width:100%;
    height:auto;
}

.paragraph {
    background-color: #f4f4f4;
    padding:1rem;
    border-radius: 8px;
}

@media screen and (min-width: 600px) and (max-width: 1199px) {
    .grid {
        grid-template-columns: repeat(2,1fr);
    }

    .title {
        font-size: 1.8rem;
    }

    .flex a {
        font-size: 1rem;
    }

    .image2 {
        display:none;
    }
}

@media screen and (max-width: 599px) {
    .grid{
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .title {
        font-size: 1.5rem;
    }

    .flex {
        flex-direction: column;
        align-items: center;
    }

    .flex a {
        font-size: 0.9rem;
        margin:5px 0;
    }

    .image2 {
        display:none;
    }

    .image1 {
        width:100%;
        height:auto;
    }

    .paragraph {
        padding:10px;
        font-size: 0.9rem;
    }
}

