/* === GLOBAL STYLES === */
body {
  margin: 0;
  font-family: sans-serif;
  background: #fdf2fa;
  display: flex;
  justify-content: center;
  padding: 30px;
}

.container {
  display: flex;
  gap: 30px; /* space between the 3 layouts */
  align-items: stretch;
  flex-wrap: wrap; /* allows them to stack on small screens */
  justify-content: center;
}

/* === COMMON BOX STYLING === */
.layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  min-height: 450px;
  border: 2px solid #bf8d8e;
  border-radius: 12px;
  padding: 10px;
  background: white;
  box-sizing: border-box;
}

.layout > div,
.layout .middle > div,
.layout .right > div,
.layout .bottom > div {
  border-radius: 8px;
}

.header, .banner, .footer, .left, .right, .center, .sidebar {
  background: #fceaf8;
}

/* === LAYOUT 1 === */
.layout1 .header {
  background: #f7d6e1;
  height: 50px;
}

.layout1 .middle {
  display: flex;
  gap: 10px;
  flex: 1;
}

.layout1 .sidebar {
  background: #f8bdc3;
  width: 60px;
}

.layout1 .right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.layout1 .banner {
  background: #bf8d8e;
  height: 40px;
}

.layout1 .content {
  background: #fceaf8;
  flex: 1;
}

.layout1 .footer {
  background: #fdf2fa;
  height: 40px;
}

/* === LAYOUT 2 === */
.layout2 .header {
  background: #f7d6e1;
  height: 50px;
}

.layout2 .middle {
  display: flex;
  gap: 10px;
  flex: 1;
}

.layout2 .left {
  background: #fceaf8;
  flex: 1;
}

.layout2 .center {
  background: #f8bdc3;
  flex: 1;
}

.layout2 .right {
  background: #bf8d8e;
  width: 50px;
}

.layout2 .footer {
  background: #fdf2fa;
  height: 40px;
}

/* === LAYOUT 3 === */
.layout3 .top-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.layout3 .circle {
  background: #f8bdc3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.layout3 .header {
  flex: 1;
  background: #f7d6e1;
  height: 50px;
}

.layout3 .banner {
  background: #bf8d8e;
  height: 30px;
}

.layout3 .middle {
  display: flex;
  gap: 10px;
  flex: 1;
}

.layout3 .left {
  background: #fceaf8;
  flex: 1;
}

.layout3 .right {
  background: #f7d6e1;
  flex: 1;
}

.layout3 .bottom {
  display: flex;
  gap: 10px;
  align-items: center;
}

.layout3 .footer {
  flex: 1;
  background: #fdf2fa;
  height: 40px;
}

.layout3 .circle.small {
  width: 40px;
  height: 40px;
}

/* === RESPONSIVENESS === */
@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .layout {
    width: 90%; /* full width on small screens */
    max-width: 400px;
  }
}
