/* Styles for the entire body */
body {
    font-family: Arial, sans-serif;
}

/* Container styles */
.container2 {

    max-width: 85%;
    
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items horizontally */
}

/* Image styles */
.image {
    flex: 1;
    margin-top:4%;
    margin-right: 20px;
    margin-bottom: 20px; /* Add margin at the bottom for spacing on smaller screens */
}

.image img {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Content styles */
.content {
    flex: 2;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    width: 100%; /* Make sure the content takes full width on smaller screens */
}

.content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.content p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Details initially hidden */
#details {
    display: none;
}

/* Button styles */
button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Media Query for smaller screens */
@media screen and (max-width: 600px) {
    .container2 {
        flex-direction: column; /* Stack items vertically on smaller screens */
    }

    .image {
        margin-right: 0;
    }
}
