body {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
  "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.title {
  background-color: #3f4390;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 8px;
  margin-bottom: 20px;
}

.title i {
  font-size: 20px;
  margin-right: 8px;
}

.calendar-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.calendar-container,
.events-info {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1;
  min-width: 280px;
  margin: 10px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header button {
  background-color: #3f4390;
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.header button:hover {
  background-color: #202256;
}

.header #currentMonth {
  font-size: 16px;
  font-weight: bold;
  text-transform: capitalize;
}

.days,
.cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.days {
  font-weight: bold;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  background-color: #e9ecef;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cell:hover {
  background-color: #d4d4d8;
}

.cell.empty {
  background-color: transparent;
  cursor: default;
}

.cell.selected {
  background-color: #007bff;
  color: #ffffff;
}

.events-info h1 {
  font-size: 18px;
  line-height: 1.4;
}

@media (min-width: 200px) and (max-width:1000px) {
  main {
    min-height: 100vh;
  }
 
    
  .calendar-wrapper {
      flex-direction: column;
      align-items: center;
  }

  .calendar-container{
      margin: 10px 0;
      width: 100%;
      max-width: 700px;
      min-height: 500px;
      align-content: center;
  }

  .events-info {
    margin: 10px 0;
    width: 100%;
    max-width: 700px;
    align-content: center;

  }

  .header button {
      font-size: 12px;
      padding: 6px 10px;
  }

  .days {
      font-size: 10px;
  }

  .cell {
      height: 35px;
      font-size: 12px;
  }

  .events-info h1 {
      font-size: 16px;
      text-align: center;
  }
}

@media (max-width: 480px) {
  
  .title {
      font-size: 20px;
      padding: 10px;
  }

  .cell {
      height: 30px;
      font-size: 10px;
  }

  .events-info h1 {
      font-size: 14px;
  }

  .header #currentMonth {
      font-size: 14px;
      text-transform: capitalize;
  }

}
