/* ---------- Fonts ---------- */
@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Bold.ttf");
  font-weight: 700;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Page ---------- */
body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: hsl(234, 29%, 20%);
  background-color: hsl(234, 29%, 20%);
  min-height: 100vh;

  /* flex centers the card in the middle of the page */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

/* ---------- Card: text on the left, image on the right ---------- */
.card {
  background-color: white;
  max-width: 928px;
  padding: 24px;
  border-radius: 36px;
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.2);

  display: flex;
  align-items: center;
  gap: 64px;
}

.content {
  flex: 1;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.illustration {
  display: flex;
}

.illustration img {
  width: 400px;
}

/* ---------- Text ---------- */
h1 {
  font-size: 40px;
  line-height: 1.1;
}

p {
  line-height: 1.5;
}

/* ---------- List ---------- */
.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Form ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 12px;
  font-weight: 700;
}

input {
  font-family: inherit;
  font-size: 16px;
  padding: 16px 24px;
  border: 1px solid hsl(0, 0%, 58%);
  border-radius: 8px;
}

/* ---------- Buttons ---------- */
button,
.button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background-color: hsl(234, 29%, 20%);
  padding: 16px;
  margin-top: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* The dismiss link looks like a button */
.button {
  text-align: center;
  text-decoration: none;
}

button:hover,
.button:hover {
  background-image: linear-gradient(to right, hsl(4, 100%, 67%), hsl(15, 100%, 60%));
}

/* ---------- Success card: small and centered ---------- */
.success {
  width: 504px;
  padding: 48px 64px;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.success-icon {
  width: 64px;
  height: 64px;
}

.success h1 {
  margin-top: 24px;
}

.success .button {
  margin-top: 0;
}

/* ---------- Download starter files button ---------- */
.download {
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px;
  background-image: linear-gradient(to right, hsl(4, 100%, 67%), hsl(15, 100%, 60%));
}
