body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #050108, #33275c);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    overflow: auto;
    width: 100%;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Add some space between boxes */
    margin: 20px 0;
    width: 100%;
    max-width: 1200px; /* Limit the width for large screens */
}

section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    flex-wrap: wrap;
}

h1 {
    text-align: center;
    width: 100%;
}

.box1, .box2, .box3, .box4, .box5 {
    height: 160px;
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: rgb(221, 221, 231);
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.box1 {
    background-color: rgb(193, 130, 235);
}

.box2 {
    background-color: rgb(54, 68, 158);
    color: rgb(29, 4, 74);
}

.box3 {
    background-color: rgb(115, 247, 124);
    color: rgb(1, 27, 5);
}

.box4 {
    background-color: rgb(152, 234, 218);
    color: rgb(21, 67, 68);
}

.box5 {
    position: relative;
    background-image: url(https://c.tenor.com/OBrsGpqRejwAAAAC/how-you-doin-joey.gif);
    background-size: cover;
    background-position: center;
    color: transparent; /* Make text transparent to show the image */
    text-align: center;
}

.btn {
    background-color: rgb(243, 224, 255);
    color: rgb(0, 0, 0);
    border-radius: 10px;
    border-style: hidden;
    margin: 10px;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: rgb(193, 130, 235);
}

footer {
    text-align: center;
    margin-top: auto;
    color: #fff;
    width: 100%;
}

footer p {
    margin: 0;
    line-height: 60px;
    font-size: 18px;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        gap: 10px;
    }

    .box1, .box2, .box3, .box4, .box5 {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    section {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }
}
