body {
    background-color: rgb(45, 136, 221);
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    text-align: center;
    color:rgb(53, 52, 52);
}

.toy-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
}

.toy-item {
    flex: 0 0 calc(33.33% - 20px);
    margin: 10px;
    position: relative;
}

.toy-image {
    width: 100%;
    height: 100%;
    border: 2px solid #ccc;
    transition: opacity 0.3s;
}

.toy-image:hover {
    opacity: 0.7;
}

.toy-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.toy-item:hover .toy-details {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .toy-item {
        flex: 0 0 100%; 
        margin: 10px 0; 
    }

    .toy-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s;
    }

    .toy-details {
        padding: 10px; 
    }

    .toy-item:hover .toy-details {
        opacity: 1;
    }
}
