/* Background for the webpage */
body {
    background: radial-gradient(blue,white);
    padding: 20px;
}

/* Main heading style */
h1 {

    font-family: cursive;
    font-size: 67px;
    text-align: center;
}

/* Subtitle style */
.title {
    color: white;
    font-family: cursive;
    font-size: 25px;
    text-align: center;
}

/* Responsive Grid Layout */
.grid-container {

    /* Turns on CSS Grid */
    display: grid;

    /* Creates responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 20px;

    width: 90%;

    margin: auto;

    margin-bottom: 40px;
}

/* Grid boxes */
.box {

    background: skyblue;

    padding: 30px;

    border-radius: 15px;

    text-align: center;

    font-family: cursive;

    font-size: 25px;

    color: white;

    transition: 0.3s;
}

/* Hover effect for boxes */
.box:hover {

    background: navy;

    transform: scale(1.05);
}

/* Main paragraph section */
.main {
    display: grid;

    font-family: cursive;
    font-size: 25px;
    color: black;

    margin-left: auto;
    margin-right: auto;

    width: 52%;
    padding: 20px;
    line-height: 1.5;
}

/* Centers image  */
.whole {
    display: flex;
    justify-content: center;
}

/* Porsche image styling */
.car {
    display: block;
    width: 50%;
    height: auto;

    border: 3px solid white;

    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
}

/* Hover effect for image */
.car:hover {
    width: 55%;
    transform: rotate(1deg);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {

    body {
        background: radial-gradient(blue, white);
    }

    h1 {
        color: navy;
    }

    .main {
        width: 90%;
        font-size: 20px;
    }

    .car {
        width: 90%;
    }

}