.calendar_wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.football-calendar {
  border: 1px solid #eaeaea;
  box-shadow: 0 0 5px rgba(0, 0, 27, 0.25);
  border-radius: 16px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #00001b;
  padding: 8px 16px;
}

.calendar-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ff4b44;
  box-shadow: 0 0 5px rgba(0, 0, 27, 0.25);
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
}

.calendar-header button:hover {
  background-color: #e5433d;
  box-shadow: 0 0 25px rgba(0, 0, 27, 0.5);
}

#month-year {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f4f4f4;
  font-size: 16px;
  font-weight: 600;
  color: #00001b;
  text-align: center;
  padding: 8px 16px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #fafafa;
  font-size: 16px;
  font-weight: 500;
  color: #00001b;
  text-align: center;
  gap: 8px;
  padding: 16px;
}

.calendar-days div {
  border-radius: 5px;
  background: #f1f1f1;
  box-shadow: 0 0 5px rgba(0, 0, 27, 0.25);
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.calendar-days div:hover {
  background: #adadb6;
  box-shadow: 0 0 25px rgba(0, 0, 27, 0.5);
}

.calendar-days .match-day {
  background-color: #00000a;
  color: #ffffff;
  transition: all 0.3s ease;
}

.calendar-days .match-day:hover {
  background-color: #e5433d;
}

.calendar-days .today {
  background-color: #ff4b44;
  color: #ffffff;
  transition: all 0.3s ease;
}

.calendar-days .today:hover {
  background-color: #e5433d;
}

.calendar-days div.selected {
  background: #adadb6;
  color: #00001b;
}

#match-card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.match-card {
  display: grid;
  grid-template-columns: 15% 85%;
  border: 1px solid #eaeaea;
  box-shadow: 0 0 5px rgba(0, 0, 27, 0.25);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.match-card:hover {
  box-shadow: 0 0 25px rgba(0, 0, 27, 0.5);
}

.match-date-block {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #00001b;
  padding: 16px;
}

.day {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.month {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
}

.match-vs-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.team-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00001b;
  transition: all 0.3s ease;
}

.team-link:hover {
  color: #ff4b44;
}

.team-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
}

.vs {
  font-size: 26px;
  font-weight: 900;
  color: #00001b;
}

.team-link:first-child {
  justify-content: flex-end;
}

.team-link:last-child {
  justify-content: flex-start;
}

.team-link:last-child .team-logo {
  order: 2;
}

.team-link:last-child .team-name {
  order: 1;
}

.no-matches {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #00001b;
  padding: 40px 0;
}

@media screen and (min-width: 768px) {
  #match-card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .calendar_wrapper {
    grid-template-columns: 38% 60%;
    align-items: flex-start;
    gap: 24px;
  }

  #match-card-container {
    gap: 24px;
  }
}
