@media screen and (max-width: 768px) {

    .ad-container {
        width: 360px !important; 
        max-width: 360px !important;

        box-sizing: border-box !important;
    }
    
    .adsbygoogle {
        width: 360px !important; 
        max-width: 360px !important;
    }
    
    .rh {
        width: 350px !important; 
        max-width: 350px !important; 
    }
    
}

body {
    font-family: "Lato", sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    padding-top: 56px;
}

.icon-class {
   
    display: flex;
    justify-content: center;

}

.icon-class img {
    width: 150px;
}

.header {
    background-color: #FF0000;
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: margin-left .5s;
}

.main2 {
    margin: auto;
}

.card2 {
    width: 90%;
    margin: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.articles2 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    margin-left: 20px;
    font-weight: normal;
}

.sidenav {
    bottom: 0;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    overflow-y: auto;
    transition: 0.5s;
    padding-top: 60px;
    padding-bottom: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.sidenav hr {
    margin: 8px 25px;
    border-color: #818181;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}

#articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-row-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.article-row-magazine {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media screen and (min-width: 768px) {

    .article-row-card {
        grid-template-columns: 1fr 3fr 1fr;
    }
    
    .ad-container {
        width: 700px !important; 
        max-width: 700px !important;
        margin: 20px auto !important; 
        padding: 10px !important;  
        box-sizing: border-box !important;
    }
    
    .adsbygoogle {
        width: 245px !important; 
        max-width: 700px !important;
    }
    
.card2 {
    width: 60%;
    margin: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.card2 img {
    object-fit: contain !important;
}
    
    .article-row-magazine {
        grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    }
}

.article {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article.magazine {
    flex-direction: row;
}

.article.magazine .article-content {
    order: 1;
}

.article.magazine img {
    order: 2;
    width: 96px;
    height: 96px;
    padding: 12px;
}

.article-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#landing-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 56px);
    text-align: center;
    transition: margin-left .5s;
}

#landing-page img {
    margin-top: 20px;
}

.article h3 {
    font-size: 16px; /* Default font size */
    font-weight: bold;
    margin: 0 0 8px 0;
}

.article.card h3 {
    font-size: 20px; /* Larger font size for card style */
}

.article h3 a {
    color: #000;
    text-decoration: none;
}

.article h3 a:hover {
    text-decoration: underline;
}

.article p {
    font-size: 14px; /* Default font size */
    margin: 0 0 8px 0;
}

.article.card p {
    font-size: 16px; /* Larger font size for card style */
}
.article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
}

.article-age {
    background-color: #FF0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.article img {
    width: 100%;
    height: 140px; /* Default height */
    object-fit: cover;
}

.article.card img {
    height: 200px; /* Taller height for card style */
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

form label {
    font-weight: bold;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #FF0000;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #cc0000;
}
