@media only screen and (max-width: 1427px) {
  :root {
    --large: 3rem;
    --big: 2.2rem;
    --medium: 1.4rem;
    --small: 1.1rem;

    --bigHeight: 20rem;
    --bigWidth: 15rem;
  }
  #about .left img {
    width: 75%;
  }

  .slider {
    height: 20rem;
    margin-top: 1.5rem;
  }

  #formular input,
  #formular textarea {
    width: 60%;
  }
  #formular button {
    width: 30%;
  }
}

@media only screen and (max-width: 1164px) {
  :root {
    --large: 2.7rem;
    --big: 2rem;
    --medium: 1.4rem;
    --small: 1.1rem;

    --bigHeight: 20rem;
    --bigWidth: 15rem;
  }

  #about .left img {
    height: 55%;
  }

  #welcome {
    height: 25rem;
  }
  #welcome .right img {
    transition: 0.2s;
    height: 100%;
    object-fit: cover;
  }
  section {
    margin: 3rem 0 3rem 0;
  }

  #products .left {
    text-align: end;
  }
  #products .left img {
    width: 80%;
  }
}

@media only screen and (max-width: 1059px) {
  :root {
    --large: 2.5rem;
    --big: 1.7rem;
    --medium: 1.3rem;
    --small: 1rem;

    --bigHeight: 20rem;
    --bigWidth: 15rem;
  }

  #about .left img {
    height: 70%;
  }

  #welcome {
    height: 20rem;
  }
  #welcome .right img {
    height: 100%;
    object-fit: cover;
  }
  section {
    margin: 2rem 0 2rem 0;
  }

  #products .left img {
    width: 70%;
  }

  .slider {
    height: 15rem;
    margin-top: 1.5rem;
  }

  button {
    padding: 1rem 1.5rem 1rem 1.5rem;

    border: 0.225rem solid var(--black);
  }
  button:hover {
    border: 0.225rem solid var(--red);
  }
  button p {
    font-size: var(--small);
  }

  #about {
    flex-direction: column-reverse;
  }
  #about .right {
    margin: auto 1rem auto 1rem;
  }
  #about .left,
  .right {
    width: 100%;
  }
  #about .left img {
    width: 40%;
  }
  #about,
  #products {
    margin-right: 1rem;
  }

  #welcome .right {
    width: 50%;
    margin-left: auto;
  }

  #products {
    flex-direction: column;
  }
  #products .left,
  .right {
    width: 100%;
    text-align: justify;
  }
  #products .left {
    margin-top: 1rem;
  }
  #products .right div {
    justify-content: center;
  }
  #products .left img {
    height: 20rem;
    width: 100%;
    border-radius: 0.5rem;
  }
  #products {
    padding: 0 1rem 0 1rem;
  }
  #about .right div {
    justify-content: center;
  }
  #about .right div h2 {
    width: 75%;
  }
  #about .right img {
    width: 3.5rem;
    margin-right: 0.5rem;
  }
  #products .right #stack {
    font-size: 2rem;
  }
  #welcome {
    padding-left: 0;
  }
  #welcome .right {
    position: absolute;
    width: 100%;
    height: 20rem;
    z-index: -3;
  }
  #welcome .right img {
    opacity: 0.3;
  }
  #welcome .left {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  #welcome .left h2 {
    font-size: var(--big);
  }
  #welcome .left button {
    margin: 0 auto 0 auto;
  }
  #welcome .left button p,
  #welcome .left button i {
    font-size: var(--small);
  }
  #cookiesAlert p {
    max-width: 80%;
  }
  #about {
    margin-bottom: 0;
  }
  #about .right div h2 {
    width: 100%;
  }
  #products button i {
    font-size: var(--small);
  }
}

@media only screen and (max-width: 658px) {
  .headertext {
    display: none;
  }
  .headericon {
    display: block;
  }
  .photoBackground p {
    width: 50%;
  }
  footer h3 {
    font-size: var(--medium);
  }
  footer li {
    font-size: var(--small);
  }
  #products .left img {
    height: 10rem;
  }
  #cookiesAlert p {
    max-width: 90%;
  }
}

@media only screen and (max-width: 589px) {
  :root {
    --large: 2rem;
    --big: 1.5rem;
    --medium: 1.1rem;
    --small: 0.8rem;

    --bigHeight: 15rem;
    --bigWidth: 10rem;
  }

  #welcome button a p,
  #welcome button a i {
    font-size: var(--medium) !important;
  }
  .photoBackground p {
    width: 60%;
  }
  .slider {
    height: 10rem;
    margin-top: 1.5rem;
  }
  #gallery #products {
    padding: 0;
  }
  button p {
    font-size: var(--medium);
  }
  .menu i{
    font-size: var(--medium);
  }
}

@media only screen and (max-width: 490px) {
  :root {
    --large: 1.8rem;
    --big: 1.3rem;
    --medium: 1rem;
    --small: 0.7rem;

    --bigHeight: 15rem;
    --bigWidth: 10rem;
  }

  button a i {
    font-size: var(--big);
  }
  #products button {
    gap: 1rem;
  }
}
@media only screen and (max-width: 387px) {
  :root {
    --large: 1.2rem;
    --big: 1.3rem;
    --medium: 1rem;
    --small: 0.7rem;

    --bigHeight: 15rem;
    --bigWidth: 10rem;
  }

  button p {
    font-size: var(--small);
  }
  button a i {
    font-size: var(--small) !important;
  }
}
