@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

:root {
	--card-bg: rgba(0, 0, 0, 0.5);
	--shadow-color: rgba(0, 0, 0, 0.1);
}

.card-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 2rem;
	max-width: 1200px;
	width: 100%;
	margin-left: auto; /* Зсуває контейнер вправо настільки, наскільки можливо */
  margin-right: auto; /* Зсуває контейнер вліво настільки, наскільки можливо */
  align-items: stretch;
  padding-bottom: 20px;
  
}

.card {
	position: relative;
	height: 70%;
	border-radius: 15px;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	filter: drop-shadow(1px 2px 1px rgba(0, 0, 50, 0.7))
		drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.5));
	animation: fadeIn 0.6s ease-out forwards;
  height: 100%; /* Забезпечує, що картка займає всю висоту рядка */
}

.card:nth-child(2) {
	animation-delay: 0.2s;
}
.card:nth-child(3) {
	animation-delay: 0.4s;
}
.card:nth-child(4) {
	animation-delay: 0.6s;
}
.card:nth-child(5) {
	animation-delay: 0.8s;
}
.card:nth-child(6) {
	animation-delay: 1s;
}
.card:nth-child(7) {
	animation-delay: 1.2s;
}
.card:nth-child(8) {
	animation-delay: 1.4s;
}

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--card-bg);
	z-index: 1;
	filter: url(#turb);
  
}

.card-content {
	position: relative;
	z-index: 2;
	padding: 3rem;
	color: white;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center; /* Додайте цей рядок */
  text-align: center; /* Додайте цей рядок */
  padding-top: 1px;
  padding-right: 1px;
  padding-left: 1px;
        padding-bottom: 3px;
}

.card h2 {
	color: #fff;
	margin-bottom: 0.5rem;
  text-shadow: 0.5px 0.5px 0px grey, 0.5px -0.5px 0px grey, 0.5px -0.5px 0px grey, -0.5px 0.5px 0px grey;
}

.card p {
	color: #f0f0f0;
	line-height: 1.1;
	font-size: 0.8rem;
  text-shadow: 0.5px 0.5px 0px grey, 0.5px -0.5px 0px grey, 0.5px -0.5px 0px grey, -0.5px 0.5px 0px grey;
}

.card:hover {
	box-shadow: 0 0 25px 5px rgba(0, 0, 0, 0.5);
}

.card-container:hover > :not(:hover) {
	filter: url(#colorCycle);
	transition: filter 0.3s ease, background-color 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.7) translateY(20px) rotateZ(10deg);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0) rotateZ(0);
	}
}
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@200;800&display=swap");


.dashboard {
  width: 100%;
  height: auto;
  display: grid;
  position: relative;
  color: #fafafa;
  grid-template-columns: repeat(12, [col-start] 1fr);
  grid-auto-rows: 50px;
  grid-gap: 1em;
  grid-auto-flow: dense;
  padding: 5em;
  box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  font-weight: 200;
  line-height: 1.4;
  grid-auto-rows: min-content;
  padding-top: 5px;
  padding-bottom: 20px;
}
.dashboard::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, black, grey);
  opacity: 0.45;
  border-radius: 10px;
}

.card2 {
  backdrop-filter: blur(8px);
  padding: 1em;
  box-sizing: border-box;
  box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  border-radius: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card2::before {
  position: absolute;
  background: #fefefe;
  background: linear-gradient(329deg, rgba(254, 254, 254, 0.09) 0%, rgba(255, 255, 255, 0.11) 100%);
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 1em;
  filter: blur(0.5px);
}
.card2::after {
  position: absolute;
  content: "";
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  top: 4px;
  left: 4px;
  z-index: -1;
  border-radius: 1em;
  filter: blur(0.2px);
  border: 1px dotted rgba(255, 255, 255, 0.2);
}
.card2 h2 {
  margin: 0.25em 0 1em;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 0 8px #007bff;
}

table {
  width: 100%;
}
table tr > th:not(:last-child),
table tr > td:not(:last-child) {
  text-align: left;
}
table tr > th:last-child,
table tr > td:last-child {
  text-align: right;
}

section {
  width: 100%;
}

ul {
  width: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.profile {
  grid-column: col-start 4/span 6;
  grid-row: 2/span 3;
}
.profile h2 {
  font-size: 1.8rem;
  margin: 0.5em 0 0;
}

.schedule-table {
  grid-column: col-start 1/span 4;
  grid-row: 5/span 5;
}

.exercise-table {
  grid-column: col-start 5/span 4;
  grid-row: 5/span 5;
}

.calories {
  grid-column: col-start 9/span 4;
  grid-row: 5/span 5;
}

.personal-bests {
  grid-column: col-start 1/span 4;
  grid-row: 10/span 5;
}

.challenges {
  grid-column: col-start 5/span 4;
  grid-row: 10/span 5;
}

.activity-feed {
  grid-column: col-start 9/span 4;
  grid-row: 10/span 5;
}

@media screen and (max-width: 1024px) {
  .profile {
    grid-column: col-start 3/span 8;
    grid-row: 2/span 3;
  }

  .schedule-table {
    grid-column: col-start 1/span 6;
    grid-row: 5/span 5;
  }

  .exercise-table {
    grid-column: col-start 7/span 6;
    grid-row: 5/span 5;
  }

  .calories {
    grid-column: col-start 1/span 6;
    grid-row: 10/span 5;
  }

  .personal-bests {
    grid-column: col-start 7/span 6;
    grid-row: 10/span 5;
  }

  .challenges {
    grid-column: col-start 1/span 6;
    grid-row: 15/span 5;
  }

  .activity-feed {
    grid-column: col-start 7/span 6;
    grid-row: 15/span 5;
  }
}
@media screen and (max-width: 860px) {
  .dashboard {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
}
@media screen and (max-width: 400px) {
  .dashboard {
    font-size: 0.8rem;
  }

  .card h2 {
    font-size: 0.8rem;
  }

  .profile h2 {
    font-size: 1.2rem;
    margin: 0.5em 0 0;
  }
}