@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* <- So padding and other stuffs have no effects on width */
}

body {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    background: #f9f9f9;
}

a {
    color: #333;
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: auto; /* <- push to centre */
    
    /* Hide vertical and horizontal scrollbars on container class */
    overflow: hidden;
    
    padding: 0 2rem;
}

.main-header {
    height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.main-header h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.main-header h1 span {
    color: #b50d10;
}

.main-header p {
    font-size: 2rem;
}

img {
    width: 100%;
}

.card {
    display: grid;
    /* Place the text beside the image */
    grid-template-columns: repeat(2, 1fr); /* <- Exactly same as 'grid-template-columns: 1fr 1fr;' */
    
    /* Create space between the image and the text */
    grid-gap: 2rem;

    /* Change the background color of the each card to grey(#f1f1f1) */
    background: #f1f1f1;

    /* Put space between a card and another card */
    margin-bottom: 2rem;
}

.card h3 {
    margin-bottom: 2rem;
}

.card img {
    height: 400px;
}

.card > div {
    padding: 2rem;
}

.card:nth-child(even) img {
    /* Place images in zigzag order from the top of the page */
    order: 2; /* <- This is the magic */
}

.btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.8rem 1.8rem;
    margin-top: 2rem;
    border-radius: 10px;
    cursor: pointer;
}

.btn:hover {
    /* Change button color to pretty light color */
    opacity: 0.8;
}

/* Make the web responsive */
@media (max-width: 600px) {
    .card {
        display: block;
    }
}
