@font-face {
  font-family: "Raleway";
  src: url(../fonts/Raleway-VariableFont_wght.ttf);
}

:root {
  --orange: #ee730f;
  --black: #000000;
  --grey: #EFEFEF;
  --white: #FFFF;
  --dark-grey: #403B3B;
  --primary-font: Raleway;
  --fallback-font: sans-serif;
  --hover: orangered;
  --shadow: rgba(0.5, 0.4, 0.6, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  font-size: 16px;
  font-family: var(--primary-font, var(--fallback-font));
}

body {
  /* background-image: url('../img/pokeball.jpg'); */
  background-size: cover;
  background-position: 15% 75%; /* Przesuwa obraz 10% od lewej i 75% od góry */
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;/*dodalam to oraz flex grow i main contant i w ten spospob footer jest na dole strony*/
 
}
.main-content{
  flex: 1;
}

.search-container {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.search-box {
  display: flex;
  width: 400px;
  border: 2px solid rgb(225, 53, 53);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(225, 53, 53, 0.9);
  position: fixed;
    top: 0;
    right: 0;
    margin-top: 20px;
    margin-right: 50px;
}

.search-box input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 16px;
  color:white;
 
}

.search-box button {
  background: url('../img/suche.png') no-repeat center center;
  background-size: contain;
  width: 50px;
  height: 50px;
  border: none;
  cursor: pointer;
  outline: none;
}


#pokedex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  gap: 100px;
  padding: 20px;
  margin-top: 300px;

}


.pokemon-card {
  background-color: rgba(109, 140, 245, 0.5);
  border-radius: 50%;
  text-align: center;
  width: 200px;
  height: 200px;
  padding: 10px;
  border: 2px solid rgb(225, 53, 53);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 24px rgba(255, 0, 0, 0.9);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

.pokemon-card:hover {
  transform: translateY(-10px) scale(1.9);
  box-shadow: 0 12px 24px rgba(249, 246, 246, 0.9);
}

.pokemon-card img {
  width: 100%;
  height: 200%;
  border-radius: 50%;
}

.pokemon-card h2 {
  font-size: 16px;
  margin: 5px 0;
  color: rgb(210, 210, 222);
  text-shadow: 4px 4px 5px rgba(225, 53, 53, 0.9);
}

input {
  background-color: rgba(77, 109, 212, 0.5);
  border: 2px solid rgb(225, 53, 53);
  box-shadow: 0 12px 50px rgba(225, 53, 53, 0.9);
  padding: 10px;
  border-radius: 5px;
  transition: box-shadow 0.2s;
  color: white !important;/*to nie dzialo*/
}
#search-input::placeholder {
  color: white;/*to tak*/
}
input:focus {
  box-shadow: 0 8px 16px rgba(225, 53, 53, 0.7);
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

.type {
  display: inline-block;
  margin: 2px;
  padding: 2px 5px;
  border-radius: 3px;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 20px;
  border-radius: 50px;
  text-align: center;
  background-color: white;
  overflow-y: auto;
  /*border: 35px solid rgb(244, 241, 241);*/
  box-shadow: 0 190px 190px rgba(225, 53, 53, 0.9);
 
}
.modal img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px; /* Dodanie zaokrąglonych krawędzi, jeśli chcesz */
}


.modal-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 999;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 20px;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
}

.stat-table th,
.stat-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.stat-table th {
  background-color: rgb(212, 89, 89);
  box-shadow: 0 12px 50px rgba(225, 53, 53, 0.9);
  color: white;
  border-radius: 50%;
}

.stat-table td {
  background-color: rgba(77, 109, 212, 0.5);
  color: white;
  border-radius: 50%;
}

.navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
}

.navigation button {
  padding: 10px;
  border: none;
  background-color: #ddd;

  cursor: pointer;
  border-radius: 5px;
  font-size: 20px;
  margin: 20px;
}

h2#modal-title {
  color: rgb(235, 235, 244);
  font-size: 40px;
  text-shadow: 3px 3px 10px rgba(255, 0, 0, 0.8);
 margin-left: 90px;
 
}

#load-more-btn {
  width: 200px;
  height: 100px;
  /*position: fixed;
  top: 0;
  right: 0;
  margin-top: 100px;
  margin-right: 50px;
  z-index: 2;*/
  
}
 
  


button {
  border: none !important;
}



        @keyframes shake {
          0% { transform: translate(1px, 1px) rotate(0deg); }
          10% { transform: translate(-1px, -2px) rotate(-1deg); }
          20% { transform: translate(-3px, 0px) rotate(1deg); }
          30% { transform: translate(3px, 2px) rotate(0deg); }
          40% { transform: translate(1px, -1px) rotate(1deg); }
          50% { transform: translate(-1px, 2px) rotate(-1deg); }
          60% { transform: translate(-3px, 1px) rotate(0deg); }
          70% { transform: translate(3px, 1px) rotate(-1deg); }
          80% { transform: translate(-1px, -1px) rotate(1deg); }
          90% { transform: translate(1px, 2px) rotate(0deg); }
          100% { transform: translate(1px, -2px) rotate(-1deg); }
        }
        
        .shake {
          display: inline-block;
          animation: shake 0.5s;
          animation-iteration-count: infinite;
        
        }
        
        img.shake {
          height: 170px;
          width: 170px; /* Dopasuj wysokość według potrzeb */
          border-radius: 50%;
          background-color: rgb(212, 89, 89);
          box-shadow: 0 60px 30px rgba(225, 53, 53, 0.9);
          border: 10px solid white; /* Białe obramowanie */
          z-index: 2;/*dodalam z-index2 tu i z-index 1 do header i sie udalo*/
          margin-top: 10px;
          margin-left: 50px;
          position: fixed;
    top: 0;
    left: 0;
        }
        .handy {
          display: flex;
       
         
         width: 100%;
        }
        .tab-item,
        .tab-item.active {
            background-color: rgb(211, 94, 94);
            cursor: pointer; /* Set the cursor style */
            border-radius: 50px; /* Apply rounded corners */
            padding: 10px; /* Optional: Add some padding for better visual appearance */
            margin: 5px; /* Optional: Add some margin for spacing */
            color: white; /* Optional: Ensure text color is readable against red background */
            display: inline-block; /* Optional: Ensure the items are displayed inline */
        }
        
        /*.tab-item.active {
            border-bottom: 2px solid white;
        }*/
        
        .tab-list {
          display: flex;
          list-style: none;
          padding: 0;
          margin: 0;
          border-bottom: 2px solid #ddd;
      }

      .tab-item {
          padding: 10px 20px;
          cursor: pointer;
          background-color: #f5f5f5;
          border: 1px solid #ddd;
          border-bottom: none;
          margin-right: 5px;
          color:red;
      }

      /*.tab-item.active {
          background-color: white;
          border-bottom: 2px solid white;
      }*/

      .tab-content {
          display: none;
      }

      .tab-content.active {
          display: block;
      }
   
/*MEDIAQUERY*/
@media(max-width:1400px){
  .logo{
    height: 100px;
    margin-top: 20px;;
  }
}
@media(max-width: 1200px){
.header{
  display: flex;
  flex-direction: column;
}
}
@media(max-width: 1000px){
  img.shake{
    display:none;
  }
}
@media(max-width: 500px){
  .modal{
    padding: 0px;
  }
  .logo{
    height: 150px;
    width: 150px;
  }
  .search-box{
    width: 200px;
    margin-right: 20px;
  }
  .pokemon-card:hover {
    transform: translateY(0.1px) scale(0.8);
}

.modal img {
  width: 100px;
  height: 100px;
}
h2#modal-title {
  font-size: 20px;
  text-align: center;
  margin: 0;
  padding: 10px 0;
}
img.pokedex{
  width: 200px;
  height: 100px;
}
.modal{
  margin-top: 60px;
}
}


#prev-btn, #next-btn {
 

  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;

  cursor: pointer;
}
#prev-btn,
        #next-btn {
            padding: 10px;
            border: none;
            
            cursor: pointer;
            border-radius: 5px;
            font-size: 20px;
            margin: 20px;
            background-color: rgb(209, 69, 69);
            box-shadow: 0 12px 50px rgba(225, 53, 53, 0.9);
            border-radius: 50%;
            height: 50px;
            width: 50px;
        }
        
#prev-btn, #next-btn {
 

  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;

  cursor: pointer;
}
/*-----------dopowiedzialny za usuwanie tla button bialego*/
#load-more-button {
  display: inline-block;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none; /* To remove the outline when the button is focused */
}

#load-more-button img {
  display: block;
  max-width: 100%;
  height: auto;
}


.modal img {
  /*width: 400px;
  height: 400px;*/
  object-fit: cover;
  border-radius: 10px;
  filter: drop-shadow(12px 30px 30px rgba(234, 7, 7, 0.9)); /* Dodaje cień z dopasowaniem do kształtu figury */
  transition: transform 0.3s ease, filter 0.3s ease; /* Płynne przejście */
}

.modal img:hover {
  transform: translateY(-10px); /* Przesuwa obraz w górę przy najechaniu */
  filter: drop-shadow(6px 6px 8px rgba(0, 0, 0, 0.7)); /* Zwiększa cień przy najechaniu */
}


#pokedex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  gap: 100px;
  padding: 20px;
  margin-top: 300px;
  box-sizing: border-box; /* Uwzględnia padding i border wewnątrz szerokości */
  max-width: 100vw; /* Maksymalna szerokość kontenera nie przekracza szerokości ekranu */
}

body {
  overflow-x: hidden; /* Zapobiega przewijaniu w poziomie */
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}


.modal-flip {
  perspective: 1200px;
  width: 100%;
  height: 100%;
  position: relative;
}

.modal-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
}

.modal-front,
.modal-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px;
}

.modal-front {
  background-color: white;
}




