/* General Styling */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

header.main-header {
  background-color: #007bff;
  color: white;
  padding: 20px;
  text-align: center;
}

.section {
  padding: 20px;
  margin: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 1. CSS Properties */
.css-properties {
  width: 150px;
  height: 150px;
  background-color: #28a745;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. CSS Selectors */
.selector-demo {
  color: #ff5722;
  font-weight: bold;
}

/* 3. Text and Font */
.text-font {
  font-size: 1.2rem;
  letter-spacing: 1px;
  line-height: 1.6;
  font-style: italic;
}

/* 4. Images in CSS */
.image-box {
  width: 200px;
  height: 120px;
  background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=200&q=80');
  background-size: cover;
  background-position: center;
}

/* 5. Box Model */
.box-model {
  padding: 20px;
  border: 2px solid #333;
  margin: 20px;
  background-color: #e0e0e0;
}

/* 6. px vs em vs rem */
.px {
  font-size: 16px;
}

.em {
  font-size: 1.5em;
}

.rem {
  font-size: 1.5rem;
}

/* 7. Layout */
.layout-container {
  display: block;
}

.layout-box {
  margin: 10px 0;
  padding: 10px;
  background-color: #ffc107;
}

/* 8. Flexbox */
.flex-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.flex-item {
  flex: 1 1 100px;
  background-color: #17a2b8;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
}

/* 9. Responsiveness */
.responsive-box {
  padding: 20px;
  background-color: #6c757d;
  color: white;
  text-align: center;
}

@media (max-width: 600px) {
  .flex-container {
    flex-direction: column;
  }
  .layout-container {
    display: flex;
    flex-direction: column;
  }
}
