:root {
  --blue: #859dc6;
  --lightBlue: #abc1e6;
  --darkGray: #5a5a5a;
  --lightGray: #d5d5d5;
}

body {
  box-sizing: border-box;
  background-color: var(--blue);
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

p.title {
  position: relative;
  background-color: var(--darkGray);
  text-align: center;
  font-size: 18px;
  font-family: sans-serif;
  padding: 10px;
  margin-left: 43%;
  margin-right: 43%;
  margin-bottom: -20px;
  z-index: 1;
  color: white;
  box-shadow: 1px 3px 3px var(--darkGray), -1px 3px 3px var(--darkGray);
  font-weight: 100;
  font-family: "Courier New", Courier, monospace;
}

h1 {
  text-align: center;
  font-family: "consolas";
  font-weight: lighter;
  margin-top: 20px;
  color: var(--darkGray);
}

p {
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 5px;
}

div.table {
  background: url("images/cake.png") no-repeat center center;
  background-size: cover;
  width: 80%;
  height: 300px;
  margin-left: 10%;
  position: relative;
}

table {
  position: absolute;
  width: 100%;
  height: 30%;
  background-color: #859dc6b4;
  bottom: 0;
}
th,
td {
  color: white;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
}

th {
  font-size: 18px;
}
td {
  font-size: 16px;
}

div.content {
  background-color: white;
  width: 70vw;
  margin-left: 15vw;
  padding-top: 20px;
  box-sizing: border-box;
  z-index: -1;
  padding-bottom: 10px;
  border-radius: 5px;
  box-shadow: 2px 3px 10px var(--darkGray), -2px 3px 10px var(--darkGray);
  /* margin-bottom: 30px; */
}

h2 {
  font-size: 28px;
  text-align: center;
  font-family: "Trebuchet MS", sans-serif;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--blue);
  color: var(--darkGray);
}

div.ingredients {
  width: 40%;
  box-sizing: border-box;
  margin-right: 5%;
  display: inline-block;
  margin-top: 20px;
  margin-left: 2.5%;
}

p.ingredient {
  font-size: 16px;
  padding: 10px;
  border: 2px solid var(--lightGray);
  color: var(--darkGray);
  border-radius: 3px;
  transition: transform 0.2s, background-color 0.2s;
}

p.ingredient:hover {
  transform: scale(1.1);
  background-color: var(--lightBlue);
  border: none;
}

div.steps {
  width: 50%;
  box-sizing: border-box;
  margin-right: 2.5%;
  float: right;
  margin-top: 20px;
  display: inline-block;
  counter-reset: step;
}

li {
  font-size: 16px;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  margin-bottom: 20px;
  list-style-type: none;
  counter-increment: step;
}

li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 20px;
  background-color: var(--blue);
  display: inline-block;
  text-align: center;
  margin-right: 10px;
  color: white;
}

@media only screen and (min-width: 2400px) {
  p.title {
    font-size: 40px;
  }
  h1 {
    font-size: 80px;
  }
  p {
    font-size: 32px;
    margin-left: 120px;
    margin-right: 120px;
  }
  div.table {
    height: 40vh;
  }

  th,
  td {
    font-size: 36px;
  }

  h2 {
    font-size: 60px;
    font-weight: 500;
  }

  p.ingredient {
    font-size: 32px;
  }

  li {
    font-size: 32px;
  }

  li::before {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-right: 20px;
  }
}

@media only screen and (max-width: 1200px) {
  p.title {
    margin-left: 35%;
    margin-right: 35%;
  }
}

@media only screen and (max-width: 900px) {
  div.table {
    width: 90%;
    margin-left: 5%;
  }
  th,
  td {
    font-size: 16px;
  }
  div.ingredients,
  div.steps {
    width: 90%;
    margin-left: 5%;
    display: block;
  }
  div.steps {
    float: none;
  }
  div.content {
    height: max-content;
  }
}

@media only screen and (max-width: 500px) {
  p.title {
    margin-left: 35%;
    margin-right: 35%;
  }
  div.content {
    width: 100%;
    margin-left: 0;
  }
  th,
  td {
    font-size: 12px;
  }
  table {
    height: 80px;
  }
}
