body {
      font-family: Arial, sans-serif;
      max-width: 100%;
      margin: 40px auto;
      
    }
    #product-name {
      font-size: 2.5rem;
      margin-bottom: 10px;
    }
    #product-price {
      font-size: 1.5rem;
      color: green;
      margin-bottom: 20px;
    }
    #product-image {
      max-width: 100%;
      max-height: 300px;
      margin-bottom: 30px;
      object-fit: contain;
    }
    #buy-buttons a {
      display: inline-block;
      background: #9500ff;
      color: white;
      text-decoration: none;
      padding: 15px 25px;
      border-radius: 6px;
      font-weight: bold;
      margin: 0 5px 10px 5px;
      transition: background 0.3s ease;
    }
    #buy-buttons a:hover {
      background: #540095;
    }
    #product-container {
      text-align: center;
    }
    button {
      display: inline-block;
      background: #8c00ff;
      color: white; 
      text-decoration: none;
      padding: 15px 25px;
      border-radius: 6px;
      font-weight: bold;
      margin: 0 5px 10px 5px;
      transition: background 0.3s ease;
    }
    button:hover {
      background: #560093;
    }
    a {
        color: #aa00ff
    }
    
 #header {
  border-bottom: 1px solid black;
  padding: 10px 20px 10px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;

  align-items: center;
  background: linear-gradient(to right, rgb(236, 236, 236), rgb(231, 231, 231));
 }
 footer {
  border-top: 1px solid black;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, rgb(236, 236, 236), rgb(231, 231, 231));
  padding: 15px;
  font-size: 90%;
  text-align: center;
 }
 nav a {
  color: rgb(33, 32, 32);
  text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.15);
  text-decoration: none;
}
nav#navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
* {
  font-family: helvetica, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('icons8-mouse-cursor-24.png') 0 0, default;
}
#wrepslogo {
  content: url(wreps3.png);
}
a:hover {
  cursor: url('icons8-hand-cursor-64.png') 0 0, pointer;
}

body, a {
  color: rgb(33, 32, 32);
  text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.15);
}

#header {
  border-bottom: 1px solid black;
  padding: 10px 20px 10px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, rgb(236, 236, 236), rgb(231, 231, 231));
}
#footer {
  border-top: 1px solid black;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, rgb(236, 236, 236), rgb(231, 231, 231));
  padding: 15px;
  font-size: 90%;
  text-align: center;
}

h3#laksasheetsnapis {
  margin: 0;
  line-height: 40px;
  transform: scale(1.5);
  white-space: nowrap;
  color: rgb(33, 32, 32);
}

nav#navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav#navlinks a {
  font-weight: 500;
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.15rem;
  white-space: nowrap;
}

nav#navlinks a:hover {
  color: rgb(179, 179, 179);
}

nav#navlinks a#fit,nav#navlinks #favorites {
  font-weight: bold;
  color: red;
}

nav#navlinks a#fit:hover,nav#navlinks #favorites:hover {
  color: rgb(209, 0, 0);
}

.mode:hover {
  transform: scale(1.1);
}

h1 {
  font-size: 4rem;
  margin: 20px 0;
  text-align: center;
  color: rgb(33, 32, 32);
}

html, body {
  height: 100%;
  margin: 0;
}

main#main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 10px 10px;
  font-size: 0;
  justify-content: center;
}

main#main a {
  display: block;
  width: calc(25% - 10px);
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  font-size: initial;
  position: relative;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

main#main a > div.item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  box-shadow: 0 0 0 1px black;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10%;
  padding-bottom: 10%;
}

div.item > img {
  width: 50%;
  height: auto;
  transform: scale(1.5);
  transition: transform 0.3s ease;
  margin-bottom: 10px;
  cursor: url('icons8-hand-cursor-64.png') 0 0, pointer;
}

.name {
  transform: scale(1.5);
  transition: transform 0.5s ease;
  font-weight: 600;
  margin-bottom: 5px;
  text-align: center;
  color: rgb(33, 32, 32);
}

.price {
  transform: scale(1.1);
  transition: transform 0.5s ease, color 0.3s ease;
  color: black;
  text-align: center;
}

main#main a:hover > div.item {
  background-color: #ffffff;
  cursor: url('icons8-hand-cursor-64.png') 0 0, pointer;
  box-shadow: 0 0 20px 20px rgba(90, 90, 90, 0.3);
  z-index: 10;
}

main#main a:hover > div.item > img {
  transform: rotate(-10deg) scale(1.2);
  animation: rotateBackAndForth 6s ease-in-out 0.3s infinite;
}

main#main a:hover > div.item > .name {
  transform: scale(1.75);
}

main#main a:hover > div.item > .price {
  transform: scale(1.75) translateY(15%);
  color: green;
}

p {
  transition: all 0.3s ease;
  margin: 0;
}

@keyframes rotateBackAndForth {
  0% { transform: rotate(-10deg) scale(1.2); }
  50% { transform: rotate(10deg) scale(1.2); }
  100% { transform: rotate(-10deg) scale(1.2); }
}


@media (max-width: 1400px) {
  main#main a {
    width: calc(100% - 10px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 1100px) {
  main#main a {
    width: calc(100% - 10px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 900px) {
  main#main a {
    width: calc(100% - 10px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  #header {
    flex-wrap: wrap;
    padding: 10px 15px;
  }
  h3#laksasheetsnapis {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 10px;
    transform: scale(1.2);
  }
  nav#navlinks {
    flex: 1 1 100%;
    justify-content: center;
    gap: 8px;
  }
  nav#navlinks a {
    font-size: 1rem;
    padding: 4px 6px;
  }
  main#main a {
    width: calc(50% - 10px);
    aspect-ratio: 3 / 4;
  }
  div.item {
    padding-top: 5%;
    padding-bottom: 10%;
  }
  div.item > img {
    width: 70%;
    transform: scale(1);
  }
  .name {
    transform: scale(1);
    white-space: normal;
    font-size: 1rem;
  }
  .price {
    transform: scale(1);
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  main#main a {
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  nav#navlinks {
    gap: 5px;
  }
  nav#navlinks a {
    font-size: 0.9rem;
    padding: 3px 5px;
  }
  h1 {
    font-size: 2.5rem;
  }
  div.item > img {
    width: 80%;
  }
  .name, .price {
    transform: scale(1);
    font-size: 0.9rem;
    white-space: normal;
  }
}
#theme-buttons {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}



@media (hover: hover) and (pointer: fine) {
  #theme-buttons {
    display: inline-flex;
  }
}
@media (hover: none) and (pointer: coarse) {
  #theme-buttons {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px;
    flex-basis: 100%;
    margin-top: 10px;
  }
  #theme-buttons > a {
    flex-basis: 50%;
    text-align: center;
  }
}
@media (hover: none) and (pointer: coarse) {
  #theme-buttons {
    flex-direction: column;
  }
  #theme-buttons > a {
    flex-basis: 100%;
  }
}
@media (min-width: 1900px) {
  nav#navlinks {
    margin-right: 110px;
  }
}
h3 img {
     transform: translateY(5px);
}
@media (max-width: 1600px) {
  #buy-link-hoobuy {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}
body {
  background-color: white;
}
#bypass {
  color:#8c00ff
}
@media (max-width: 1600px) {
  #theme-buttons {
    width: 100%;
    justify-content: center;
  }
}
#search-block {
  display: flex;
  align-items: center;
  background-color: white;
  width: 13rem;
  height: 2rem;
  border-radius: 20px;
  border: 1px solid rgb(95, 95, 95);
  padding: 0 0.5rem;
  gap: 0.5rem;
  margin-right: 10px;
position: relative;
}

#search-block > input {
  border-style: none;
  height: 1.8rem;
  margin: 1px;
  width: 90%;
}
#searchimg {
  width: 20px;
}
#search-block > input:focus {
  border-style: none;
  height: 1.8rem;
  margin: 1px;

}
@media (min-width: 1900px) {
  .mode {
    margin-top: 4px
  }


}

#search-block:hover, #search-block > input:hover, #search-block > img:hover {
  cursor: url(icons8-hand-cursor-64.png), auto;
}
#search-block input:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid white; /* albo inny kolor, np. black */
}