@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* Primary colors */
  --purple: hsl(246, 80%, 60%);
  --orange: hsl(15, 100%, 70%);
  --blue: hsl(195, 74%, 62%);
  --pink: hsl(348, 100%, 68%);
  --lime-green-exercise: hsl(145, 58%, 55%);
  --purple-dark: hsl(264, 64%, 52%);
  --yellow: hsl(43, 84%, 65%);

  /* Neutral colors */
  --very-dark-blue: hsl(226, 43%, 10%);
  --dark-blue: hsl(235, 46%, 20%);
  --desaturated-blue: hsl(235, 45%, 61%);
  --pale-blue: hsl(236, 100%, 87%);
}

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

body {
  height: 100vh;
  max-width: 100vw;
  font-family: "Rubik", sans-serif;
  background-color: var(--very-dark-blue);
  color: var(--pale-blue);
  /* line-height: 1.5; */
  letter-spacing: 1.5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 1440px;
  height: 750px;
  margin: 0 auto;
  padding: 2rem;
  /* background-color: white; */
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
}

/* This is the main card that contains the user details and the time tracking cards */

.user-details {
  background-color: var(--dark-blue);
  border-radius: 20px;
  grid-row: 1 / span 2; /* Make user-details span from row 1 to row 2 */
  grid-column: 1 / 2; /* Position in the first column */
}

.user-details .user img {
  width: 40%;
  border-radius: 50%;
}

.user-details .user p {
  margin-top: 2rem;
  font-size: 18px;
  font-weight: 400;
}

.user-details .user h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 100px;
}

.user {
  background-color: var(--purple);
  padding: 2rem;
  border-radius: 20px;
}
.user-details .timeframe {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

button {
  width: 100%;
  background: none;
  padding: 10px 0 20px 30px;
  font-size: 18px;
  text-align: left;
  border: none;
  font-weight: 500;
  color: var(--desaturated-blue);
}

button:hover {
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--pale-blue);
  cursor: pointer;
}

/* Active button styling */
button.active {
  color: white;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* work card */

.work-card {
  background-color: var(--orange);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 45px; /* Add padding to create space for the image */
}

.work-card img {
  position: absolute;
  top: -10px;
  right: 20px;
  z-index: 1; /* Lower z-index to keep it behind the details */
  height: 70px; /* Control the size of the image */
}

.work-card .work-details {
  padding: 30px 40px;
  background-color: var(--dark-blue);
  border-radius: 20px;
  position: relative;
  z-index: 2; /* Higher z-index to keep details above the image */
}

.work-card .work-details h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.work-card h1 {
  font-size: 4rem;
  font-weight: 300;
}

.work-card p {
  font-size: 18px;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* play card */

.play-card {
  background-color: var(--blue);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 45px; /* Add padding to create space for the image */
}

.play-card img {
  position: absolute;
  top: -10px;
  right: 20px;
  z-index: 1; /* Lower z-index to keep it behind the details */
  height: 70px; /* Control the size of the image */
}

.play-card .play-details {
  padding: 30px 40px;
  background-color: var(--dark-blue);
  border-radius: 20px;
  position: relative;
  z-index: 2; /* Higher z-index to keep details above the image */
}

.play-card .play-details h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.play-card h1 {
  font-size: 4rem;
  font-weight: 300;
}

.play-card p {
  font-size: 18px;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* study card */
.study-card {
  background-color: var(--pink);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 45px; /* Add padding to create space for the image */
}

.study-card img {
  position: absolute;
  top: -10px;
  right: 20px;
  z-index: 1; /* Lower z-index to keep it behind the details */
  height: 70px; /* Control the size of the image */
}

.study-card .study-details {
  padding: 30px 40px;
  background-color: var(--dark-blue);
  border-radius: 20px;
  position: relative;
  z-index: 2; /* Higher z-index to keep details above the image */
}

.study-card .study-details h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.study-card h1 {
  font-size: 4rem;
  font-weight: 300;
}

.study-card p {
  font-size: 18px;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* exercise card */
.exercise-card {
  background-color: var(--lime-green-exercise);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 45px; /* Add padding to create space for the image */
}

.exercise-card img {
  position: absolute;
  top: -10px;
  right: 20px;
  z-index: 1; /* Lower z-index to keep it behind the details */
  height: 70px; /* Control the size of the image */
}

.exercise-card .exercise-details {
  padding: 30px 40px;
  background-color: var(--dark-blue);
  border-radius: 20px;
  position: relative;
  z-index: 2; /* Higher z-index to keep details above the image */
}

.exercise-card .exercise-details h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.exercise-card h1 {
  font-size: 4rem;
  font-weight: 300;
}

.exercise-card p {
  font-size: 18px;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* social card */
.social-card {
  background-color: var(--purple-dark);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 45px; /* Add padding to create space for the image */
}

.social-card img {
  position: absolute;
  top: -10px;
  right: 20px;
  z-index: 1; /* Lower z-index to keep it behind the details */
  height: 70px; /* Control the size of the image */
}

.social-card .social-details {
  padding: 30px 40px;
  background-color: var(--dark-blue);
  border-radius: 20px;
  position: relative;
  z-index: 2; /* Higher z-index to keep details above the image */
}

.social-card .social-details h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.social-card h1 {
  font-size: 4rem;
  font-weight: 300;
}

.social-card p {
  font-size: 18px;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* self care card */
.self-care-card {
  background-color: var(--yellow);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 45px; /* Add padding to create space for the image */
}

.self-care-card img {
  position: absolute;
  top: -10px;
  right: 20px;
  z-index: 1; /* Lower z-index to keep it behind the details */
  height: 70px; /* Control the size of the image */
}

.self-care-card .self-care-details {
  padding: 30px 40px;
  background-color: var(--dark-blue);
  border-radius: 20px;
  position: relative;
  z-index: 2; /* Higher z-index to keep details above the image */
}

.self-care-card .self-care-details h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.self-care-card h1 {
  font-size: 4rem;
  font-weight: 300;
}

.self-care-card p {
  font-size: 18px;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Transitions and hover effects */

/* Common transitions for all cards */
.work-card .work-details,
.play-card .play-details,
.study-card .study-details,
.exercise-card .exercise-details,
.social-card .social-details,
.self-care-card .self-care-details,
.user-details .user {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effects for all card details */
.work-card .work-details:hover,
.play-card .play-details:hover,
.study-card .study-details:hover,
.exercise-card .exercise-details:hover,
.social-card .social-details:hover,
.self-care-card .self-care-details:hover,
.user-details .user:hover {
  background-color: hsl(235, 41%, 30%);
  cursor: pointer;
  transform: translateY(-15px);
}

/* Special hover style for user details section */
.user-details .user:hover {
  background-color: hsl(246, 80%, 65%); /* Slightly lighter purple */
}

/* Active button styling */
button.active {
  color: white;
  font-weight: 700;
}

/* Make card content text white on hover */
.work-card .work-details:hover h2,
.play-card .play-details:hover h2,
.study-card .study-details:hover h2,
.exercise-card .exercise-details:hover h2,
.social-card .social-details:hover h2,
.self-care-card .self-care-details:hover h2,
.work-card .work-details:hover p,
.play-card .play-details:hover p,
.study-card .study-details:hover p,
.exercise-card .exercise-details:hover p,
.social-card .social-details:hover p,
.self-care-card .self-care-details:hover p {
  color: white;
}
