Загрузка данных


* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

header {
height: 30%;
width: 100%;
background-color: pink;
}

#logo {
width: 10%;
float: left;
}

#text1 {
float: left;
font-family: 'Arial';
padding-top: 40px;
font-size: 28px;
width: 90%;
text-align: center;
font-weight: bold;
}

nav {
float: left;
background-color: gray;
width: 100%;
height: 50px;
text-align: center;
padding-top: 15px;
}

nav a {
text-decoration: none;
padding: 30px;
color: black;
font-weight: bold;
}

nav a:hover {
color: yellow;
background-color: darkgray;
transition: 0.3s;
}

nav a.active {
color: red;
background-color: lightgray;
}

main {
height: auto;
width: 100%;
font-family: 'Book Antiqua', Georgia, serif;
padding-top: 20px;
padding-bottom: 40px;
background-color: #f9f9f9;
}

h1 {
text-align: center;
font-size: 28px;
color: #684d4d;
margin-bottom: 30px;
}

.articles-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
gap: 20px;
}

article {
width: 300px;
background-color: white;
border-radius: 15px;
padding: 15px;
text-align: center;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}

article:hover {
transform: scale(1.05);
transition: 0.5s;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

article h2 {
color: #684d4d;
font-size: 22px;
margin-bottom: 10px;
}

article img {
border-radius: 10px;
margin-bottom: 10px;
}

.text2 {
font-size: 16px;
color: #333;
display: inline-block;
margin-top: 10px;
}

#block1 {
height: 60%;
width: 100%;
background-color: #f2cece;
padding: 40px;
text-align: center;
}

#block2 {
height: 60%;
width: 100%;
background-color: #fff0e0;
padding: 40px;
text-align: center;
}

#block3 {
height: 60%;
width: 100%;
background-color: #f2cece;
padding: 40px;
text-align: center;
}

#block4 {
height: 60%;
width: 100%;
background-color: #fff0e0;
padding: 40px;
text-align: center;
}

#block1 h1, #block2 h1, #block3 h1, #block4 h1 {
color: #333;
font-size: 32px;
}

#block1 p, #block2 p, #block3 p, #block4 p {
font-size: 18px;
margin-top: 15px;
}

footer {
height: 20%;
width: 100%;
background-color: gray;
text-align: center;
padding: 30px;
font-size: 18px;
color: white;
clear: both;
}