css {
  margin: 0;
  padding: 0;
}
body {
  background: brown;
  color: black;
}
header {
  display: flex;
  justify-content: center;
}
.Logo,
.Top_menu {
  margin-right: 20px;
  display: inline-block;
  vertical-align: middle;
}

.Top_menu li {
  margin-right: 20px;
  display: inline-block;
  vertical-align: middle;
}
.Top_menu a {
  font-family: Arial;
  font: size 25px;
  color: black;
  vertical-align: middle;
}
.Top_menu a:hover {
  color: aliceblue;
}

.Logo {
  font-family: Arial;
  font: size 40 px;
  color: black;
  vertical-align: middle;
}

.It_by {
  font-family: Arial;
  font: size 40 px;
}
.converter-button {
  margin-top: 20px;
}

.web-button {
  margin-top: 30px;
}

.converter-button a {
  display: inline-block;
  padding: 10px;
  border: 1px solid #ccc;
  color: black;
  margin-right: 20px;
  font-family: Arial;
  text-decoration: none;
}

.web-button a {
  display: inline-block;
  padding: 10px;
  border: 2px solid #ffdd00;
  color: black;
  margin-right: 20px;
  font-family: Arial;
  text-decoration: none;
}

.converter-button a::before {
  content: none;
}

.tasks {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding: 50px;
}
.task-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 22px;
  font-weight: bold;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pill {
  width: 280px;
  height: 90px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;

  border-radius: 999px; /* капсула */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* FRONT END */
.frontend {
  background: linear-gradient(90deg, #cbb3d6, #38bdf8);
  color: rgb(0, 0, 0);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35);
}

/* BACK END */
.backend {
  background: linear-gradient(90deg, #200cf8, #b1b3d9);
  color: #000000;
  box-shadow: 0 15px 30px rgba(52, 211, 153, 0.35);
}

/* hover-эффект */
.pill:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.container {
  background: white;
  padding: 30px;
  width: 500px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

h1 {
  margin-bottom: 20px;
}

/* вывод текста */
#demo {
  min-height: 80px;
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
}

/* кнопки */
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;

  background: #4f46e5;
  color: white;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}
.form-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

input {
  width: 100px;
  padding: 6px;
  font-size: 16px;
  border: 1px solid #999;
  border-radius: 4px;
}

button {
  padding: 6px 12px;
  font-size: 16px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #e0e0e0;
  cursor: pointer;
}

button:hover {
  background: #000000;
}

/* результат */
#result {
  font-size: 16px;
  font-weight: bold;
}
#dateDisplay {
  font-size: 20px;
  margin-bottom: 15px;
  min-height: 24px;
}
select {
  padding: 6px 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #555;
}
#hello {
  font-size: 28px;
  margin-bottom: 15px;
}

.output {
  margin: 15px auto;
  padding: 10px;
  width: 70%;
  min-height: 40px;

  border: 2px #ccc;
  border-radius: 8px;
  background: #a88888;
}

/* одна задача */
.task {
  padding: 8px 12px;
  margin: 6px 0;

  background: #eaeaea;
  border-radius: 6px;
  text-align: left;
}
.box {
  width: 420px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

label {
  font-size: 16px;
}
input[type="number"] {
  width: 110px;
  padding: 6px 8px;
  font-size: 16px;
  border: 1px solid #999;
  border-radius: 4px;
}
.result {
  text-align: left;
  border: 1px dashed #bbb;
  border-radius: 6px;
  padding: 10px;
  min-height: 70px;
  background: #fafafa;
  font-size: 15px;
  line-height: 1.5;
}

.red-text {
  color: red;
  font-weight: 700;
}
.note {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}
.error {
  color: red;
  margin-top: 10px;
}

/* защищённый блок */
#protected {
  display: none;
  margin-top: 20px;
  font-weight: bold;
}
