body {
  padding: 0;
  margin: 0;
  background-color: #516e96;
  font-family: "Iran-Round";
  font-size: larger;
}
@font-face {
  font-family: "Iran-Round";
  src: url("font/IRAN\ Rounded/IRAN-Rounded.ttf") format("truetype");
}
select {
  outline: none;
  cursor: pointer;
}

header {
  display: flex;
  justify-content: space-between;
}
.header {
  width: 50%;
  color: rgb(216, 207, 207);
}
.site-name h2 {
  margin-right: 3%;
  font-size: clamp(2.5vw, 3vw, 5vw);
}
#dark-mode {
  cursor: pointer;
}
.theme {
  display: flex;
  justify-content: end;
  align-items: center;
}
.container-theme {
  margin-left: 3%;
  font-size: clamp(1vw, 2vw, 4vw);
}

main {
  display: flex;
  justify-content: center;
  container: main-c / inline-size;
}
.main-container {
  width: 40vw;
  display: flex;
  justify-content: center;
}

body,
.option {
  transition: background-color 0.5s ease;
}

.option {
  width: 100%;
  background-color: rgb(30, 80, 109);
  color: rgba(255, 255, 255, 0.87);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 2%;
  border-radius: 10px;
  font-size: clamp(0.5vw, 1.5vw, 2vw);
}
.option select option {
  font-family: "Iran-Round";
}
.option select {
  width: 70%;
  height: 30px;
  border-radius: 10px;
  background-color: rgb(30, 80, 109);
  color: rgba(255, 255, 255, 0.87);
  font-size: larger;
  border-color: rgb(54, 128, 128);
}

fieldset {
  margin-top: 1rem;
  border-radius: 10px;
  border-color: #516e96;
}

.part {
  margin: 10px;
  display: flex;
  justify-content: space-between;
}
.part div {
  width: 30%;
  text-align: center;
}
.month select {
  width: 80%;
}
.year-one {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.year {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.year input {
  width: 40%;
  height: 25px;
  border-radius: 10px;
  background-color: rgb(30, 80, 109);
  color: rgba(255, 255, 255, 0.87);
  font-size: larger;
  border: solid 1px rgb(54, 128, 128);
  outline: none;
}

.main-button {
  width: 30%;
  margin: 10%;
  font-family: "Iran-Round";
  cursor: pointer;
  background-color: #516e96;
  border: none;
  color: aliceblue;
  transition: all 0.5s ease;
  font-size: large;
  border-radius: 10px;
  outline: none;
  font-size: 1.5vw;
}
.main-button:hover {
  background-color: rgb(5, 96, 148);
  transition: all 0.5s ease;
}
input::placeholder {
  color: white;
  opacity: 0.5;
}
.result-container {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: 10;
  width: 30vw;
  top: 15vw;
  right: 33vw;
  padding: 2vw;
  color: rgb(216, 207, 207);
}
.result-box {
  padding: 2%;
  background-color: #516e96;
  width: 75%;
  border-radius: 10px;
  border: 1px solid #516e96;
}
.cancel {
  position: absolute;
  top: 0;
  left: 0;
  width: 3vw;
  height: 3vw;
  font-size: 2vw;
  border: 2px solid rgb(216, 207, 207);
  border-radius: 49%;
  background-color: red;
  color: rgb(216, 207, 207);
  cursor: pointer;
  padding: 0;
}
.blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 9;
}
.text-container {
  display: flex;
  justify-content: center;
}

footer {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.863);
  margin-top: 3%;
  font-weight: lighter;
  font-size: clamp(0.5vw, 2vw, 4vw);
}

@container main-c (width <1000px ) {
  .main-container {
    width: 95vw;
  }
}
@media (width < 540px) {
  .container-theme {
    display: flex;
    align-items: center;
  }
}

@media (width < 1000px) {
  .site-name h2 {
    font-size: 4vw;
  }
  .container-theme label {
    font-size: 4vw;
  }
  fieldset {
    padding: 0;
  }
  .main-button {
    font-size: 4vw;
  }
  .result-container {
    width: 70vw;
    top: 40vw;
    right: 14vw;
  }
  fieldset {
    width: 90vw;
  }
  footer {
    font-size: clamp(0.5vw, 4vw, 5vw);
  }
  .result-box {
    font-size: 5vw;
  }
  .cancel {
    width: 8vw;
    height: 8vw;
    font-size: 6vw;
  }
  .one.part div {
    display: flex;
    flex-direction: column;
  }
  .one.part div select {
    margin: auto;
  }
  .option {
    font-size: 4.2vw;
  }
  .year input {
    width: 50%;
  }
  .month select {
    width: 100%;
  }
}
