* {
  --main-bg: #082029;
  --secendary-bg: rgba(58, 58, 58, 0.8);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.d-none {
  display: none !important;
}

body {
  background-image: url(./assets/images/globe.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Roboto", sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#scrollArea {
  overflow: auto;
  width: 100%;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.containerMaxWitdh {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.centerOfView {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 40px;
}

.loaderMain {
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.loader {
  height: 70%;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-load {
  background-color: var(--secendary-bg);
  width: 200px;
  min-height: 60px;
  border-radius: 8px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  transition: all 250ms ease-in-out;
}

.btn-load:hover {
  transform: scale(1.1);
}

/*#region Header */

header {
  height: 100px;
  width: 100%;
  background-color: var(--secendary-bg);
}

.containerHeader {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
}

.header-left {
  height: 70%;
  display: flex;
  align-items: center;
  color: white;
}

.header-left img {
  height: 100%;
  margin-right: 16px;
}

.inputFilter {
  font-size: 20px;
  width: 150px;
}

@media (max-width: 480px) {
  .header-left h1 {
    display: none;
  }
}

/*#endregion  */

/*#region Card  */

.card {
  width: 250px;
  height: 320px;
  border-radius: 8px;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--secendary-bg);
  transition: all 250ms ease-in-out;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.1);
}

.card-header {
  font-size: 24px;
  padding: 8px 16px;
}

.card-img {
  height: 150px;
  padding: 8px;
  object-fit: contain;
  aspect-ratio: 1/1;
}

.card-icons {
  width: 100%;
  flex: 1;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.type-icon {
  height: 20px;
}

/*#endregion  */

/*#region Types  */

.typeBg_grass {
  background-color: #63bc5a;
}

.typeBg_fire {
  background-color: #ff9d55;
}

.typeBg_water {
  background-color: #5090d6;
}

.typeBg_bug {
  background-color: #91c12f;
}

.typeBg_normal {
  background-color: #919aa2;
}

.typeBg_poison {
  background-color: #aa6bc8;
}

.typeBg_electric {
  background-color: #f4d23c;
}

.typeBg_ground {
  background-color: #d97845;
}

.typeBg_fairy {
  background-color: #ec8fe6;
}

.typeBg_fighting {
  background-color: #ce416b;
}

.typeBg_psychic {
  background-color: #f87178;
}

.typeBg_rock {
  background-color: #c5b78c;
}

.typeBg_ghost {
  background-color: #5269ad;
}

.typeBg_ice {
  background-color: #73cec0;
}

.typeBg_dragon {
  background-color: #0b6dc3;
}

.typeBg_dark {
  background-color: #5a5465;
}

.typeBg_steel {
  background-color: #5a8ea2;
}

.typeBg_flying {
  background-color: #8fa9de;
}

/*#endregion  */

/*#region Dialog  */
dialog {
  margin: 0;
  height: 500px;
  width: 320px;
  background-color: var(--secendary-bg);
  border-color: black;
  border-radius: 16px;
  overflow: hidden;
  color: white;
  transition: all 0.5s ease-in-out;
  position: fixed;
}

dialog:focus-visible {
  outline: none;
}

.d-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

dialog::backdrop {
  backdrop-filter: blur(10px);
}

.dialog-card-header {
  font-size: 24px;
  padding: 8px 16px;
}

.dialog-card-img {
  height: 200px;
  display: flex;
  justify-content: center;
}

.dialog-card-img img {
  height: 100%;
}

.dialog-card-menue {
  width: 100%;
}

.dialog-card-menue table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.dialog-card-menuepoint {
  text-align: center;
  font-size: 20px;
  height: 30px;
  background-color: var(--main-bg);
  border: 2px solid var(--secendary-bg);
  cursor: pointer;
}
.dialog-card-menuepoint:hover {
  border-bottom-color: white;
}

.active-menuepoint {
  border-bottom-color: #fc5c4f !important;
}

.dialog-card-content {
  margin-top: 16px;
  margin-left: 16px;
  margin-right: 16px;
  font-size: 16px;
  flex: 1;
}

.dialog-card-content table {
  border-spacing: 10px 8px;
}

.dialog-card-content-first {
  white-space: nowrap;
  vertical-align: top;
}

.dialog-card-content-second {
  white-space: nowrap;
  vertical-align: top;
}

.dialog-card-content-third {
  text-wrap: balance;
}

progress {
  border: 5px solid black;
  border-radius: 10px;
  overflow: hidden;
}

progress::-webkit-progress-value {
  background-color: #fc5c4f;
}

@media (max-width: 330px) {
  .dialog-card-content {
    margin-left: 8px;
    margin-right: 8px;
  }
}

/*#endregion  */

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  background-color: #fc5c4f;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
}

.d-block {
  display: block !important;
}

#scrollArea {
  scrollbar-width: thin;
  scrollbar-color: #ffffff var(--secendary-bg);
}

#scrollArea::-webkit-scrollbar {
  width: 16px;
}

#scrollArea::-webkit-scrollbar-track {
  background: var(--secendary-bg);
}

#scrollArea::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 10px;
  border: 3px solid #ffffff;
}
