/* =================================
   GENERAL PAGE
   ================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #e8dfc5;

  /* Polka dot background */
  background-image:
    radial-gradient(#ffffff 3px, transparent 4px);

  background-size: 28px 28px;

  font-family: Arial, sans-serif;
}


/* =================================
   TABLET
   ================================= */

.tablet {
  width: 720px;
  height: 620px;

  background-color: #fff1c9;

  border: 8px solid #d4c79d;

  border-radius: 35px;

  overflow: hidden;

  position: relative;

  box-shadow:
    0 12px 0 #b5a77d,
    0 18px 35px rgba(0, 0, 0, 0.25);
}


/* =================================
   TOP ROW
   ================================= */

.tablet-top {
  height: 68px;

  display: flex;

  justify-content: center;
  align-items: center;

  gap: 5px;

  background-color: #f4df9e;

  border-bottom: 4px solid #d4c79d;

  background-image:
    radial-gradient(#ffffff 4px, transparent 5px);

  background-size: 30px 30px;
}


/* =================================
   BUTTONS
   ================================= */

.nav-button {
  width: 48px;
  height: 40px;

  border: 3px solid #777;

  border-radius: 9px;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0;

  box-shadow:
    inset 2px 2px rgba(255,255,255,0.7),
    inset -2px -2px rgba(0,0,0,0.2);

  transition: transform 0.12s, filter 0.12s;
}


/* Button hover */

.nav-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}


/* Button click */

.nav-button:active {
  transform: translateY(2px);
}


/* =================================
   BUTTON COLORS
   ================================= */

.folder {
  background: #f4d64e;
}

.back {
  background: #e94b4b;
}

.profile {
  background: #4c91df;
}

.heart {
  background: #e9559e;
}

.messages {
  background: #a84bd0;
}

.home {
  background: #54c85b;
}

.favorites {
  background: #d4b532;
}

.download {
  background: #40c8b5;
}


/* =================================
   ICON BASE
   ================================= */

.icon {
  position: relative;

  width: 25px;
  height: 20px;
}


/* =================================
   FOLDER ICON
   ================================= */

.folder-icon {
  background: #ffe36b;

  border: 2px solid #806b18;

  border-radius: 3px;
}

.folder-icon::before {
  content: "";

  position: absolute;

  width: 11px;
  height: 6px;

  left: 2px;
  top: -7px;

  background: #ffe36b;

  border: 2px solid #806b18;

  border-bottom: none;

  border-radius: 3px 3px 0 0;
}


/* =================================
   BACK ARROW
   ================================= */

.back-icon::before {
  content: "";

  position: absolute;

  left: 1px;
  top: 3px;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 18px solid #8d2525;
}

.back-icon::after {
  content: "";

  position: absolute;

  width: 12px;
  height: 7px;

  left: 11px;
  top: 6px;

  background: #8d2525;
}


/* =================================
   PERSON ICON
   ================================= */

.person-icon::before {
  content: "";

  position: absolute;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: #174f91;

  left: 7px;
  top: 0;
}

.person-icon::after {
  content: "";

  position: absolute;

  width: 21px;
  height: 10px;

  border-radius: 12px 12px 4px 4px;

  background: #174f91;

  left: 2px;
  bottom: 0;
}


/* =================================
   HEART ICON
   ================================= */

.heart-icon {
  width: 17px;
  height: 17px;

  background: #a32164;

  transform: rotate(-45deg);

  margin-top: 4px;
}

.heart-icon::before,
.heart-icon::after {
  content: "";

  position: absolute;

  width: 17px;
  height: 17px;

  background: #a32164;

  border-radius: 50%;
}

.heart-icon::before {
  top: -8px;
}

.heart-icon::after {
  left: 8px;
}


/* =================================
   MESSAGE ICON
   ================================= */

.message-icon {
  background: #71348e;

  border-radius: 5px;
}

.message-icon::before {
  content: "...";

  color: white;

  font-size: 13px;
  font-weight: bold;

  position: absolute;

  left: 4px;
  top: -3px;
}

.message-icon::after {
  content: "";

  position: absolute;

  left: 4px;
  bottom: -5px;

  border-top: 7px solid #71348e;
  border-right: 7px solid transparent;
}


/* =================================
   HOME ICON
   ================================= */

.home-icon::before {
  content: "";

  position: absolute;

  width: 20px;
  height: 12px;

  left: 2px;
  bottom: 0;

  background: #23752b;
}

.home-icon::after {
  content: "";

  position: absolute;

  left: 1px;
  top: 0;

  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 12px solid #23752b;
}


/* =================================
   DOWNLOAD ICON
   ================================= */

.download-icon::before {
  content: "";

  position: absolute;

  width: 7px;
  height: 13px;

  left: 9px;
  top: 0;

  background: #176d64;
}

.download-icon::after {
  content: "";

  position: absolute;

  left: 3px;
  top: 9px;

  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #176d64;
}


/* =================================
   SCREEN
   ================================= */

.screen {
  height: calc(100% - 68px);

  background-color: #fff1c9;

  overflow-y: auto;

  padding: 25px;
}


/* =================================
   SCREEN CONTENT
   ================================= */

#page-content {
  min-height: 100%;

  text-align: center;

  color: #5b4619;
}

.page-title {
  font-size: 22px;

  font-weight: bold;

  margin-bottom: 10px;
}


/* =================================
   MOBILE
   ================================= */

@media (max-width: 760px) {

  .tablet {
    width: 94vw;
    height: 80vh;
  }

  .tablet-top {
    gap: 2px;
  }

  .nav-button {
    width: 38px;
    height: 35px;
  }

}
