/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfdfd;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #003366;
  color: white;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

.subtitle {
  font-style: italic;
  font-size: 1.2em;
  margin-top: 10px;
  color: #cce0ff;
}

/* Navigation */
nav ul {
  display: flex;
  justify-content: center;
  background-color: #e6e6e6;
  padding: 12px 0;
  list-style: none;
  gap: 30px;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  padding: 8px 16px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
}

nav a:hover {
  background-color: #003366;
  color: white;
}

/* Main content */
main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #fafafa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

th {
  background-color: #003366;
  color: white;
}

/* Blockquote */
blockquote {
  background-color: #f0f0f0;
  border-left: 5px solid #003366;
  margin: 20px auto;
  padding: 15px 20px;
  font-style: italic;
  color: #555;
  max-width: 800px;
}

/* Aside */
aside {
  background-color: #ffffcc;
  padding: 20px;
  margin: 20px 0;
  border: 1px dashed #ccc;
  border-radius: 4px;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  margin-top: 40px;
}

/* Images */
img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery {
  display: flex;
  flex-wrap: wrap;        /* Agar ekran kichik bo‘lsa, rasmlar pastga o‘tadi */
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}
