body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('background.png') no-repeat center center fixed;
    background-attachment: scroll;
    background-size: cover;
    color: #000;
}

.header {
    text-align: center;
    background: url('ADPBkgnd.jpg') no-repeat center;
    width: 758px;  /* Set the width of the header to match the background image */
    height: 171px; /* Set the height of the header to match the background image */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto; /* Center the header horizontally */
}

.header h1 {
    margin: 0;
    color: #000;
    font-size: 2em;
    position: absolute;
    top: 33%; /* Adjusted vertical position */
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
}

.header h2 {
    margin: 0;
    color: #000;
    font-size: 1.5em;
    position: absolute;
    top: 50%; /* Position the subtitle below the main title */
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
}

.header-image {
    width: 227px;
    height: 71px;
    position: absolute;
    bottom: 0; /* Positioned to the bottom */
    left: 0;  /* Positioned to the left */
    margin: 10px; /* Optional margin for better spacing */
}

.content {
    display: flex;
}

.sidebar {
    width: 148px;
    padding: 20px;
    background-color: grey; /* Added background color */
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar img {
    width: 148px;
    height: 28px;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Two columns for thumbnails and one for ads */
    grid-gap: 20px;
}

.grid-item {
    background: #fff;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.grid-item p {
    margin: 0;
}

.adsense {
    grid-column: span 3; /* Span across 3 columns for smaller screens */
}

@media screen and (max-width: 800px) {
    .grid-container {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
}

button[disabled] {
    background-color