/* Placeholder colors: swap these later */
:root {
  --pink:   #E8C9C7;
  --orange: #D96738;
  --yellow: #EBCD51;
  --teal:   #48B0C7;
  --slate:  #527186;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, serif;
}

/* ---------- The frame layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 200px 1fr;   /* buttons column | content */
  grid-template-rows: 130px 1fr 60px; /* banner | content | footer */
  grid-template-areas:
    "banner  banner"
    "sidebar main"
    "footer  footer";
  gap: 12px;
  padding: 12px;
  height: 100vh;
}

/* ---------- Banner: round image | title | round image ---------- */
.banner {
  grid-area: banner;
  display: flex;
  align-items: center;
  gap: 16px;
}

.round {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--teal);  /* shows while you have no image yet */
  flex-shrink: 0;
}

.title-box {
  flex: 1;                  /* stretches to fill the space between images */
  height: 90px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-box h1 { margin: 0; font-size: 2.5rem; }

/* ---------- Left buttons ---------- */
.sidebar {
  grid-area: sidebar;
  background: var(--slate);
  padding: 12px;
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar a {
  display: block;
  padding: 14px 0;
  text-align: center;
  background: var(--yellow);
  color: black;
  text-decoration: none;
  border-radius: 50%;       /* oval shape; a 2:1 box makes it a true oval */
}

.sidebar a:hover,
.sidebar a:focus { background: var(--pink); outline: 2px solid black; }

/* ---------- Content frame ---------- */
.main {
  grid-area: main;
  background: var(--yellow);
  padding: 8px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--pink);
}

/* ---------- Footer ---------- */
.footer {
  grid-area: footer;
  background: var(--teal);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p { margin: 0; }

/* ---------- Pages shown inside the frame ---------- */
body.page { padding: 20px; background: var(--pink); }

/* ---------- Basic small-screen fallback ---------- */
@media (max-width: 700px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 75vh auto;
    grid-template-areas: "banner" "sidebar" "main" "footer";
    height: auto;
  }
  .round { width: 60px; height: 60px; }
  .title-box h1 { font-size: 1.4rem; }
  .sidebar ul { flex-direction: row; flex-wrap: wrap; }
  .sidebar li { flex: 1 1 40%; }
}
