@font-face {
  font-family: "Vazirmatn";
  src: url(./vazirmatn.ttf);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  min-height: 100vh;
}

body {
  background: #efefef;
  background: linear-gradient(
    135deg,
    #efefef 0%,
    #e3edf4 100%
  );
}

.container {
  width: 90%;
  margin: auto;
  max-width: 1200px;
}

.birthdate-form {
  background-color: #f7f7f7;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  margin: 1rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.birthdate-form .date-inputs {
  display: flex;
  font-size: 1.5rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem;
}

.birthdate-form .date-inputs input[type="number"] {
  width: 60px;
  height: 20px;
  border: 1px solid #ccc;
  background-color: #fefefe;
  border-radius: 5px;
  box-sizing: content-box;
  padding: 0.2rem;
  text-align: center;
  font-size: 1rem;
}

.stats-container {
  margin: 2rem 0;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
}

.life-grid {
  margin: 1rem auto;
  max-width: calc(100% - 20px);
  overflow-x: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5rem;
}

.life-grid .week {
  display: flex;
  gap: 2px;
}

.life-grid .week .life-day {
  width: 14px;
  height: 14px;
  background-color: #aeaeae;
  border-radius: 2px;
}

.life-grid .week .life-day.passed {
  background-color: #4a4aff;
}

@media screen and (max-width: 470px) {
  .birthdate-form {
    flex-direction: column;
  }
}