* {
  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(59, 57, 57);
}

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:not(.heart) {
  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(33.33% - 10px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 1100px) {
  main#main a {
    width: calc(50% - 10px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 900px) {
  main#main a {
    width: 100%;
    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-left: 80px;
  }
}
h3 img {
     transform: translateY(5px);
}
@media (max-width: 1600px) {
  #theme-buttons {
    width: 100%;
    justify-content: center;
  }
}
body {
  background-color: white;
}
.heart {
  scale: 20%;
} 
.heart {
  position: absolute;
  bottom: 57.5%;
  right: 70%;


  z-index: 20;
}
@media (max-width: 1200px) {
  .heart {
    position: absolute;
  bottom: 61.5%;
  left: 52%;
  scale: 20%;

  z-index: 20;
  }
}
@media (max-width: 1600px) {
  .heart {
    position: absolute;
  bottom: 63%;
  left: 53.5%;
  scale: 25%;

  z-index: 20;
  }
}
.heart {
  pointer-events: auto;
}
.item {
  position: relative;
}
#added-notification {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#added-notification.show {
  display: block;
  opacity: 1;
}

#added {
  scale: 100%;
}
@media (max-width: 2000px) {
  #added {
  scale: 80%;
}
}


/* efekt hover tylko na szerokich ekranach powyżej 1920px */
@media (min-width: 1920px) {
  .heart {
  transition: all 0.5s ease;
  transform: scale(0.2);
} }
::selection {
  background: rgb(255, 0, 0);   /* kolor tła zaznaczenia */
  color: white;         /* kolor tekstu zaznaczonego */
}
#signupto {
  text-align: center;
  width: 100%;
}
#here {
  color: red;
  
}
#here:hover {
  cursor: url('icons8-hand-cursor-64.png') 0 0, pointer;
}
@media (max-width: 1900px) {
  main#main a:hover > div.item > .name {
    transform: scale(1);
    font-size: 1.2rem;
    white-space: normal;
  }
  main#main a:hover > div.item > .price {
    transform: scale(1);
    font-size: 1.2rem;
    white-space: normal;
  }
}
#best {
  color: rgb(255, 0, 0);
  text-shadow: 0 0 100px #ffc8c8, 0 0 20px #ffb5b5, 0 0 30px #ff0000, 0 0 80px #ff0000, 0 0 0px #ff0000, 0 0 1px #ff0000, 0 0 5px #ff0000;
}




#wrepsphoto {
  scale: 75%;
  content: url(wreps3.png);
}
@media (max-width: 1900px) {#h1home {
  font-size: 1.3rem;
}
}

@media (max-width: 1900px) {
.main2 a > div.item > .name:not(#signup) {
  transform: scale(150%);
  padding-top: 1.1rem;
}
.main2 a > div.item > img:not(#wrepsphoto) {
  transform: scale(150%);
  padding-top: 1.1rem;
}
}
main {
  user-select: none;
  
}
#youcanadd {
  color: rgb(209, 209, 209)
}
@keyframes heartClick {
  0% {
    scale: 0.2;
  }
  30% {
    scale: 0.17;
  }
  60% {
    scale: 0.24;
  }
  100% {
    scale: 0.2;
  }
}

.heart.animate {
  animation: heartClick 0.35s ease-in-out;
}
.heart:hover {
  filter: brightness(0.85);
  transition: filter 0.2s ease;
}
#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 > img:hover, #search-block:hover {
  cursor: url(icons8-hand-cursor-64.png), auto;
}
#search-block > input:hover {
  cursor: text;
}
#search-block input:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid white; /* albo inny kolor, np. black */
}
.heart {
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
}