/* Style for the h1 */
h1 {

    grid-column: 1 / -1; 
    text-align: center; 
    margin: 10px 0; 
    font-size: 24px; 
    font-family: Arial, sans-serif; 
    color: white; 
    background-color: rgb(150, 22, 22); 
    padding: 20px 40px; 
    border: 2px solid #ffffff; 
    border-radius: 0; 
}



p {

    text-align: center;

}



/* Grid container setup */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: auto repeat(2, 1fr); 
    gap: 10px; 
    width: 100%;
    min-height: 100vh; 
    padding: 10px;
    box-sizing: border-box;
    position: relative; /* Ensure the container is the reference for the button */

}



/* Grid item (HelloWorld component) */
.grid-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}


/* Overlay text on each grid item */
.text-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    font-size: 18px;
    border-radius: 5px;
}



/* Button container */
.button-container {
    grid-column: 1 / -1; 
    text-align: center; 
    margin-top: 20px; 
}



/* Styling the button */
button {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px 40px;
    font-size: 24px;
    border: 2px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}



/* Media query for smaller screens */

@media (max-width: 768px) {

    .grid-container {
        grid-template-columns: 1fr; 
        grid-template-rows: auto repeat(6, 1fr); 
    }

    h1 {
        margin: 5px 0; 
    }

    .grid-item {
        padding-bottom: 100%; 
    }

}