@charset "utf-8";

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

.header {
  background: linear-gradient(-135deg, #ffe47a, #3d7eaa);
  font-family: 'Montserrat', sans-serif;
}

.header h1 {
  font-size: 70px;
  font-weight: bold;
  color: #ffffff;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.description {
  font-size: 18px;
  color: #ffffff;
  height: 50px;
  display: flex;
  justify-content: center;
}

.main {
  font-family: 'Montserrat', sans-serif;
}

.language {
  text-align: right;
}

.language a {
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  display: inline-block;
  margin-top: 10px;
  margin-right: 30px;
}

[class*="input-"] {
  display: flex;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 30px;
}

.input-4 {
  margin-top: 50px;
}

input {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

select {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 14px;
  }

.input_terastype {
  font-size: 16px;
}

.button {
  display: flex;
  margin-top: 12px;
  margin-bottom: 12px;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.input-button {
  font-size: 22px;
  font-weight: bold;
  background-color: #f4dd64;
  cursor: pointer;
  display: inline-block;
  min-width: 150px;
  line-height: 46px;
  border-radius: 24px;
}

.reset-button {
  font-size: 14px;
  font-weight: bold;
  background-color: #d3d3d3;
  cursor: pointer;
  display: inline-block;
  min-width: 90px;
  line-height: 36px;
  height: 36px;
  border-radius: 24px;
  margin-top: auto;
  margin-bottom: auto;
}

.share-button {
  font-size: 14px;
  font-weight: bold;
  color: #FFFFFF;
  background-color: #1da1f2;
  cursor: pointer;
  display: inline-block;
  min-width: 90px;
  line-height: 36px;
  height: 36px;
  border-radius: 24px;
  margin-top: auto;
  margin-bottom: auto;
}

.animation_area {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 370px;
  width: 100%;
}

.animation {
  height: 30px;
}

.number1_area {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  /* margin-left: calc(50vw - 308px); */
  margin-top: 10px;
  margin-bottom: 16px;
  gap: 20px;
}

.number1 {
  text-align: center;
  color: #ffffff;
  background: linear-gradient(-135deg, #ffe47a, #3d7eaa);
  min-width: 60px;
  line-height: 60px;
  border-radius: 12px;
}

.pokemon_area {
  display: flex;
  align-items: center;
  width: 882.44px;
  gap: 20px;
}

.pokemon_img {
  width: 62px;
}

.terastype_img {
  width: 30px;
}

.item_img {
  width: 30px;
}

.result {
  margin-bottom: 30px;
}

.footer {
  color: #ffffff;
  background-color: #24211b;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.copyright {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}


@media (max-width: 800px){
  *,
  ::before,
  ::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
  }

  .header {
    background: linear-gradient(-135deg, #ffe47a, #3d7eaa);
    font-family: 'Montserrat', sans-serif;
  }

  .header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .description {
    font-size: 12px;
    color: #ffffff;
    height: 30px;
    display: flex;
    justify-content: center;
  }


  .main {
    font-family: 'Montserrat', sans-serif;
  }

  .language a {
    font-size: 16px;
    margin-top: 6px;
    margin-right: 20px;
  }

  [class*="input-"] {
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
  }

  .input-4 {
    margin-top: 30px;
  }

  input {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
  }

  select {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;
    }

    .input_terastype {
      font-size: 14px;
    }

  .button {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
  }

  .input-button {
    font-size: 18px;
    font-weight: bold;
    background-color: #f4dd64;
    cursor: pointer;
    display: inline-block;
    min-width: 120px;
    line-height: 44px;
    border-radius: 24px;
  }

  .reset-button {
    font-size: 14px;
    font-weight: bold;
    background-color: #d3d3d3;
    cursor: pointer;
    display: inline-block;
    min-width: 86px;
    line-height: 36px;
    height: 36px;
    border-radius: 24px;
    margin-top: auto;
    margin-bottom: auto;
  }

  .share-button {
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #1da1f2;
    cursor: pointer;
    display: inline-block;
    min-width: 86px;
    line-height: 36px;
    height: 36px;
    border-radius: 24px;
    margin-top: auto;
    margin-bottom: auto;
  }

  .animation_area {
    height: 672px;
  }

  .animation {
    height: 24px;
  }

  .number1_area {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 18px;
    height: 120px;
    gap: 6px;
  }

  .number1 {
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(-135deg, #ffe47a, #3d7eaa);
    min-width: 44px;
    line-height: 44px;
    border-radius: 8px;
  }

  .pokemon_area {
    display: grid;
    grid-template-columns: 115px 115px 115px;
    column-gap: 0;
    row-gap: 0;
  }

  .pokemon_img {
    width: 52px;
  }

  .terastype_img {
    width: 24px;
  }

  .item_img {
    width: 24px;
  }

  .result {
    margin-bottom: 30px;
  }

  .footer {
    color: #ffffff;
    background-color: #24211b;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
  }
}
