@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap");

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

:root {
  --withe: #fefefe;
  --cream: #fffefd;
  --light-pink: #f9f4f2;
  --pink: #f5dddc;
  --dark-pink: #d6bab9;
}

body {
  min-height: 100vh;
  background-image: url("/images/bg-inner.jpg");
  background-size: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  font-family: "Comic Neue", cursive;
  font-size: 11px;
  color: var(--dark-pink);
}

a {
  text-decoration: none;
  color: var(--dark-pink);
  font-weight: 600;
}

li {
  list-style: none;
}


/* Main page wrapper */

.main-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* Header */

header {
  width: 100%;
  height: 400px;
  background-image: url("/images/girl.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border-style: solid;
  border-width: 7px;
  border-image: url("/images/border-mini.png") 7 fill round;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}


/* Navigation */

nav {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav li {
  width: 100px;
  padding: 5px;
  font-size: 14px;
  text-align: center;
  background-color: var(--withe);
  border-style: solid;
  border-width: 7px;
  border-image: url("/images/border-mini.png") 7 fill round;
  transition: transform 0.4s ease;
}

nav li:hover {
  transform: scale(1.03);
}


/* Main three-column layout */

main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sidebar {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-content {
  grid-column: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-sidebar {
  grid-column: 4 / 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* Images */

.avatar {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--dark-pink);
}


/* Content boxes */

.box-border {
  width: 100%;
  padding: 10px;
  background-color: var(--withe);
  border-style: solid;
  border-width: 7px;
  border-image: url("/images/border-mini.png") 7 fill round;
  display: flex;
  flex-direction: column;
  gap: 5px;
}


/* Headings */

h2 {
  font-family: "Lobster Two", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--dark-pink);
  font-size: 20px;
}


/* Paragraphs */

p {
  font-size: 11px;
  color: var(--dark-pink);
  text-align: justify;
}

.line-dashed {
  border: none;
  border-top: 1px dashed var(--dark-pink);
}


/* Sidebar list */

.sidebar-list {
  font-size: 14px;
  line-height: 35px;
}

.sidebar-list img {
  width: 12px;
}


/* Footer */

footer {
  width: 100%;
  padding: 10px;
  text-align: center;
  background-color: var(--withe);
  border-style: solid;
  border-width: 7px;
  border-image: url("/images/border-mini.png") 7 fill round;
}


/* Two-column sections */

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}


/* --------------------------------
   Tablet
   -------------------------------- */

@media (max-width: 800px) {

  body {
    padding: 30px 15px;
  }

  header {
    height: 320px;
  }

  /* Everything stacks into one column */
  main {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .main-content,
  .right-sidebar {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .box-border {
    align-items: center;
    text-align: center;
  }

  p {
    text-align: center;
  }

  /* Keep inner sections stacked on tablet too */
  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar-list {
    text-align: center;
  }
}


/* --------------------------------
   Mobile
   -------------------------------- */

@media (max-width: 550px) {

  body {
    padding: 15px 10px;
  }

  .main-container {
    width: 100%;
  }

  header {
    height: 250px;
    padding: 12px;
  }

  nav {
    min-height: auto;
    padding: 5px 0;
  }

  nav ul {
    width: 100%;
    gap: 6px;
  }

  nav li {
    width: calc(50% - 3px);
    font-size: 13px;
  }

  main {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .main-content,
  .right-sidebar {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .box-border {
    align-items: center;
    text-align: center;
  }

  h2 {
    font-size: 22px;
    text-align: center;
  }

  p {
    text-align: center;
  }

  .avatar {
    height: 220px;
  }

  .sidebar-list {
    text-align: center;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  footer {
    text-align: center;
  }
}