* {
  margin: 0;
  padding: 0;
  font-family: "Merienda", cursive;
  background-color: #ffebcd;
}

header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 50px 100px 60px 100px;
}

h1 {
  font-size: 2.5rem;
  padding-bottom: 15px;
  text-decoration: underline black wavy;
}

.score {
  text-align: center;
  border: 2px dashed black;
  padding: 10px;
}

h3 {
  text-decoration: underline black solid;
}

.board {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  height: 300px;
  width: 300px;
  margin: 10px 100px;
  padding: 10px;
  background-color: blanchedalmond;
  border-radius: 8px;
}

.sqr {
  width: 40px;
  aspect-ratio: 1/1;
  border: 2px double black;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.first-sqr {
  background-color: #106100;
}

.final-sqr {
  background-color: #B9441D;
}

.sticks {
  display: flex;
  width: 200px;
  justify-content: space-evenly;
}

.stick {
  display: flex;
  width: 30px;
  height: 100px;
  background-image: url(https://images.unsplash.com/photo-1620671716215-b2c6609996fe?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fHdvb2QlMjB0ZXh0dXJlfGVufDB8fDB8fHww);
  border-radius: 7px;
  transition: background 0.4s ease-in-out;
  justify-content: center;
  align-items: center;
  font-size: x-large;
}

#stick-one {
  border: 3px solid black;
}

.flat {
  background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRYSMxbcnEDAYwPwZHjut4pfrr83Py7Jxhlzw&s);
  color: rgba(255, 255, 255, 0);
}

button {
  display: block;
  margin: 50px auto;
  padding: 5px 20px;
  font-family: "Merienda", cursive;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid black;
  border-radius: 6px;
  background-color: rgb(255 206 138);
}

button:hover {
  background-color: #ffe680;
}

.messages {
  font-size: 1.25rem;
  text-align: center;
}

.left-side,
.right-side {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.top-side,
.bottom-side {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-side {
  transform: translate(0, -128px);
}

.bottom-side {
  margin-top: 533px;
  transform: translate(-317px, -245px);
  flex-direction: row-reverse;
}

.right-side {
  margin-top: 268px;
  transform: translate(0, -268px);
}

.left-side {
  margin-top: 321px;
  transform: translate(-581px, -65px);
  display: flex;
  flex-direction: column-reverse;
}

.roll {
  width: 140px;
}

.roll-message {
  width: 540px;
}

dialog {
  text-align: center;
  margin: auto;
  width: 700px;
  background-color: antiquewhite;
}

h4 {
  padding: 30px;
  background-color: antiquewhite;
  text-decoration: underline 1px black;
  font-size: larger;
}

dialog p {
  padding: 10px 20px;
  background-color: antiquewhite;
}

#dialog-btn-open {
  height: 40px;
}

#dialog-btn-close {
  margin: 10px auto 20px auto;
}

img {
  width: 30rem;
  height: 15rem;
}

.right-middle-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.middle-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------- iPhone 16s ----------- */
@media only screen and (min-width: 393px) and (max-width: 852px) {
  * {
    margin: 0;
    padding: 0;
    font-family: "Merienda", cursive;
    background-color: #ffebcd;
    color: black;
  }

  header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 50px 100px 0px 100px;
    margin: 0 auto 110px auto;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2.5rem;
    padding: 20px;
    text-decoration: underline black wavy;
  }

  .score {
    text-align: center;
    border: 2px dashed black;
    padding: 10px;
  }

  h3 {
    text-decoration: underline black solid;
  }

  .board {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    height: 300px;
    width: 300px;
    margin: 10px 100px;
    padding: 10px;
    background-color: blanchedalmond;
    border-radius: 8px;
  }

  .sqr {
    width: 40px;
    aspect-ratio: 1/1;
    border: 2px double black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 5px;
  }

  .first-sqr {
    background-color: #106100;
  }

  .final-sqr {
    background-color: #B9441D;
  }

  .sticks {
    display: flex;
    width: 200px;
    justify-content: space-evenly;
  }

  .stick {
    display: flex;
    width: 30px;
    height: 100px;
    background-image: url(https://images.unsplash.com/photo-1620671716215-b2c6609996fe?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fHdvb2QlMjB0ZXh0dXJlfGVufDB8fDB8fHww);
    border-radius: 7px;
    transition: background 0.4s ease-in-out;
    justify-content: center;
    align-items: center;
    font-size: x-large;
    margin-top: 10px;
  }

  #stick-one {
    border: 3px solid black;
  }

  .flat {
    background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRYSMxbcnEDAYwPwZHjut4pfrr83Py7Jxhlzw&s);
    color: rgba(255, 255, 255, 0);
  }

  button {
    display: block;
    margin: 20px auto;
    padding: 5px 20px;
    font-family: "Merienda", cursive;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid black;
    border-radius: 6px;
    background-color: rgb(255 206 138);
  }

  button:focus {
    background-color: rgb(255 206 138);
  }

  .messages {
    font-size: 1.25rem;
    text-align: center;
    padding: 10px 0;
    margin: 15px auto;
  }

  .left-side,
  .right-side {
    display: flex;
    gap: 10px;
    flex-direction: column;
  }

  .top-side,
  .bottom-side {
    display: flex;
    gap: 10px;
    align-items: center;
    transform: translate(0, -128px);
  }

  .bottom-side {
    margin-top: 533px;
    transform: translate(-317px, -241px);
    flex-direction: row-reverse;
  }

  .right-side {
    margin-top: 268px;
    transform: translate(0, -268px);
  }

  .left-side {
    margin-top: 321px;
    transform: translate(-587px, -62px);
    display: flex;
    flex-direction: column-reverse;
  }

  .roll {
    width: 140px;
  }

  .roll-message {
    width: 350px;
  }

  dialog {
    text-align: center;
    margin: auto;
    width: 700px;
    background-color: antiquewhite;
  }

  h4 {
    padding: 30px;
    background-color: antiquewhite;
    text-decoration: underline 1px black;
    font-size: larger;
  }

  dialog p {
    padding: 10px 20px;
    background-color: antiquewhite;
  }

  #dialog-btn-open {
    height: 40px;
    width: 150px;
  }

  #dialog-btn-close {
    margin: 10px auto 20px auto;
  }

  img {
    width: 30rem;
    height: 15rem;
    max-width: fit-content;
  }

  .right-middle-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .middle-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .reset {
    margin: 50px auto;
  }
}


