/* CSS Reset - A more modern and concise version 
* Many thanks to: 
* Josh Comeau - https://www.joshwcomeau.com/css/custom-css-reset/
* Kevin Powell - https://youtu.be/eWmDW4zEXt4?si=S94B0BbGfmo5VZsq/
* Andy Bell - https://piccalil.li/blog/a-more-modern-css-reset/
* Ire Aderinokun - https://bitsofco.de/my-css-reset-base/
*/

/* Remove default margin */
* {
  margin: 0;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Body defaults rules */
body {
  line-height: 1.5;
  min-height: 100vh;
}

/* Typography tweaks */
/* Remove built-in form typography styles */
input, 
button, 
textarea, 
select {
  font: inherit;
}

/* Typography tweaks */
/* Avoid text overflows */
p, 
h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
  overflow-wrap: break-word;
}

/* Typography tweaks */
/* Balance the number of words*/
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* Reset specific element styles */
ol,
ul {
  list-style: none;
  padding: 0;
}

img,
picture, 
video, 
canvas, 
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

a,
a:visited {
  color: inherit;
}

/* Basic styles */
.page {
  background-color: #F7FAFD;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.container {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 100vh;
  padding: 60px 25px;
  width: 100%;
}

/* App */
.app {
  background-color: hsl(0, 0%, 100%);
  border-radius: 15px;
  color: hsl(219, 12%, 42%);
  display: flex;
  filter: drop-shadow(0 20px 60px #c8cfe4);
  flex-direction: column;
  flex-basis: 730px;
  justify-content: center;
  padding: 30px;
}

/* App top section */
.app__top,
.app__top-left {
  align-items: center;
  display: flex;
}

.app__top {
  gap: 15px;
  justify-content: space-between;
}

.app__top-left {
  gap: 10px;
}

.app__top-title {
  color: hsl(224, 21%, 14%);
  font-size: 1.5rem;
}

.app__top-notify {
  align-items: center;
  background-color: hsl(219, 85%, 26%);
  border-radius: 6px;
  color: hsl(0, 0%, 100%);
  display: flex;
  font-weight: bold;
  justify-content: center;
  height: 25px;
  width: 32px;
}

.app__top-right {
  cursor: pointer;
  font-weight: 500;
  transition: color .3s;
}

.app__top-right:hover {
  color: hsl(219, 85%, 26%);
}

/* App main section */
.app__main {
  margin-top: 30px;
}

/* App main box section */
.app__main-box {
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  font-weight: 500;
  gap: 20px;
  padding: 20px;
}

.app__main-box:not(:last-child) {
  margin-bottom: 10px;
}

.app__main-box--unread {
  background-color: #F7FAFD;
}

/* App main box avatar section */
.app__main-box-avatar {
  flex-basis: 45px;
}

/* App main box notofication section */
.app__main-box-notification {
  flex: 1;
}

.oval {
  background-color: hsl(1, 90%, 64%);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-bottom: 1px;
  margin-left: 6px;
  width: 8px;
}

.profile-name {
  color: hsl(224, 21%, 14%);
  font-weight: bold;
  margin-right: 6px;
  transition: color .3s;
}

.profile-name:visited {
  color: hsl(224, 21%, 14%);
}

.post-title {
  color: hsl(219, 12%, 42%);
  font-weight: bold;
  margin-left: 6px;
  transition: color .3s;
}

.post-title:visited {
  color: hsl(219, 12%, 42%);
}

.group-title {
  color: hsl(219, 85%, 26%);
  font-weight: bold;
  margin-left: 6px;
  transition: color .3s;
}

.group-title:visited {
  color: hsl(219, 85%, 26%);
}

.profile-name:hover,
.post-title:hover,
.group-title:hover {
  color: hsl(219, 85%, 26%);
}

.app__main-box-datetime {
  margin-top: 2px;
}

.app__main-box-content-text {
  border: 1px solid hsl(205, 33%, 90%);
  border-radius: 6px;
  margin-top: 14px;
  padding: 15px 20px;
  transition: background-color .3s;
}

.app__main-box-content-text:hover {
  background-color:  hsl(211, 68%, 94%);
}

/* App main box content image section */
.app__main-box-content-img {
  flex-basis: 45px
}

@media (max-width: 767px) {
  .page {
    font-size: .875rem;
  }
  
  .container {
    align-items: stretch;
    padding: 0;
  }
  
  .app {
    border-radius: 0;
    padding: 25px 18px;
    flex: 100%;
  }
  
  .app__main-box {
    padding: 15px;
    gap: 10px;
  }
  
  .app__main-box-content-text {
    padding: 15px;
  }
}