/* Fonts */
/* 500 */
@font-face {
  font-family: plusJakartaSansCustom;
  src: url(../fonts/static/PlusJakartaSans-Medium.ttf);
  font-weight: 500;
}

/* 800 */
@font-face {
  font-family: plusJakartaSansCustom;
  src: url(../fonts/static/PlusJakartaSans-ExtraBold.ttf);
  font-weight: 800;
}

/* Colors */
:root {
  /* PRIMARY */
  --red: hsl(1, 90%, 64%);
  --blue: hsl(219, 85%, 26%);
  /* NEUTRAL */
  --white: hsl(0, 0%, 100%);
  --very-light-grayish-blue: hsl(210, 60%, 98%);
  --light-grayish-blue-1: hsl(211, 68%, 94%);
  --light-grayish-blue-2: hsl(205, 33%, 90%);
  --grayish-blue: hsl(219, 14%, 63%);
  --dark-grayish-blue: hsl(219, 12%, 42%);
  --very-dark-blue: hsl(224, 21%, 14%);
}

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

body {
  font-family: plusJakartaSansCustom, sans-serif;
  line-height: 1;
  font-size: calc((16 / 16) * 1rem);
  font-weight: 500;
  color: var(--very-dark-blue);
  background-color: var(--very-light-grayish-blue);
}

h2 {
  font-size: calc((22 / 16) * 1rem);
  font-weight: 800;
  color: var(--very-dark-blue);
}

p {
  line-height: 1.5;
}

.btn {
  color: inherit;
  background: transparent;
  padding: calc((2 / 16) * 1rem) 0;
  border: none;
  border-bottom: calc((1.7 / 16) * 1rem) solid transparent;
  transition: border-bottom 0.2s ease-in-out;
}

.btn.active {
  cursor: pointer;
  color: var(--blue);
}

.btn.active:hover {
  border-bottom: calc((1.7 / 16) * 1rem) solid var(--blue);
}

.btn:focus {
  outline: calc((2 / 16) * 1rem) dotted var(--blue);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* Main */
main {
  min-height: calc(100vh - (calc((50 / 16) * 1rem)));
  min-width: calc((330 / 16) * 1rem);
}

/* card */
.card {
  background-color: var(--white);
  color: var(--dark-grayish-blue);
  box-shadow: 0 0 calc((20 / 16) * 1rem) calc((16 / 16) * 1rem) #00000011;
  width: 100%;
  max-width: calc((700 / 16) * 1rem);
  padding: calc((20 / 16) * 1rem) calc((10 / 16) * 1rem);
  margin: auto;
}

.top-bar {
  margin-bottom: calc((20 / 16) * 1rem);

  display: flex;
  align-items: center;
  gap: calc((10 / 16) * 1rem);
}

.unread-number {
  font-weight: 800;
  color: var(--white);
  background-color: var(--blue);
  width: calc((30 / 16) * 1rem);
  height: calc((25 / 16) * 1rem);
  padding: calc((1 / 16) * 1rem);
  border-radius: calc((5 / 16) * 1rem);
}

.mark-read {
  margin-left: auto;
}

/* notification */
.notification {
  padding: calc((10 / 16) * 1rem);
  border-radius: calc((7 / 16) * 1rem);
  margin-bottom: calc((10 / 16) * 1rem);

  display: flex;
  gap: calc((20 / 16) * 1rem);
}

.notification img {
  height: calc((40 / 16) * 1rem);
  width: auto;
}

.notification-image {
  margin-left: auto;
  flex-shrink: 0;
  height: fit-content;
  border: calc((2 / 16) * 1rem) solid transparent;
  border-radius: calc((7 / 16) * 1rem);
}

.notification-image:hover {
  border: calc((2 / 16) * 1rem) solid var(--light-grayish-blue-1);
}

.notification-image img {
  pointer-events: none;
}

.notification-name,
.notification-post,
.notification-group {
  text-decoration: none;
  font-weight: 800;
  border-bottom: calc((1.7 / 16) * 1rem) solid transparent;
  transition: color 0.2s ease-in-out;
  transition: border-bottom 0.2s ease-in-out;
}

.notification-name:hover,
.notification-post:hover,
.notification-group:hover {
  color: var(--blue);
  border-bottom: calc((1.7 / 16) * 1rem) solid var(--blue);
}

.notification-name:focus,
.notification-post:focus,
.notification-group:focus,
.notification-message:focus,
.notification-image:focus {
  outline: calc((2 / 16) * 1rem) dotted var(--blue);
}

.notification-name {
  color: var(--very-dark-blue);
}

.notification-post {
  color: inherit;
}

.notification-group {
  color: var(--blue);
}

.notification-time {
  color: var(--grayish-blue);
}

.notification-message {
  text-decoration: none;
  color: inherit;
  border: calc((1 / 16) * 1rem) solid var(--light-grayish-blue-2);
  border-radius: calc((3 / 16) * 1rem);
  margin: calc((10 / 16) * 1rem) 0;
  padding: calc((10 / 16) * 1rem);
  transition: background-color 0.2s ease-in-out;

  display: inline-block;
}

.notification-message:hover {
  background-color: var(--light-grayish-blue-1);
}

.notification-message p {
  pointer-events: none;
}

/* unread notification */
.notification.unread {
  background-color: var(--very-light-grayish-blue);
}

.notification.unread .red-dot {
  height: calc((10 / 16) * 1rem);
  width: calc((10 / 16) * 1rem);
  border-radius: 50%;
  background-color: var(--red);
  margin-left: calc((5 / 16) * 1rem);

  display: inline-block;
}

/* Footer */
footer {
  height: calc((50 / 16) * 1rem);
  min-width: calc((170 / 16) * 1rem);
  color: var(--dark-grayish-blue);
  background-color: transparent;
  font-size: calc((13 / 16) * 1rem);
  line-height: 1.3;

  flex-direction: column;
  gap: calc((5 / 16) * 1rem);
}

.boxv {
  display: none;
}

.attribution {
  font-size: calc((11 / 16) * 1rem);
}

.attribution a:link,
.attribution a:visited {
  color: var(--blue);
  padding: calc((1 / 16) * 1rem);
  text-decoration: none;
}

.attribution a:hover,
.attribution a:active {
  color: var(--blue);
  border-bottom: calc((1 / 16) * 1rem) solid var(--blue);
}

.attribution a:focus {
  outline: calc((2 / 16) * 1rem) dotted var(--blue);
}
