/* ==================================================================================== */
/* start set-up roles */
:root {
  --primary-color: #d0604c;
  --secondary-color: #87ceeb;
  --font-color: #333;
  --global-font-size: 1rem;
}

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

body {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  color: var(--font-color);
  font-size: var(--global-font-size);
  background-color: #f2f2f2;
}

ul {
  list-style: none;
}

.container {
  width: 80%;
  margin: 0 auto;
}

/* end set-up roles */
/* ==================================================================================== */
/* header */

.image-background {
  background-image: url(./assests/background.png);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  max-height: 250px;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

header h1 {
  text-shadow: 0px 1px 1px white;
  color: var(--primary-color);
  font-size: calc(var(--global-font-size) * 3);
}

header img {
  width: 100px;
  height: 100px;
}

/* End Header */
/* ==================================================================================== */
/* nav */

nav {
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

nav ul {
  display: flex;
  justify-content: space-around;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    align-items: center;
    height: 100px;
    padding: 10px;
  }
}

ul li a {
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--font-color);
  font-size: calc(var(--global-font-size) * 1.5);
  cursor: pointer;
}

ul li a:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transition: 0.3s;
}

/* End nav */
/* ==================================================================================== */
/* Start main */

main {
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

main::before {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  top: 70%;
  left: 50%;
  border-radius: 50%;
  background-color: var(--primary-color);
  transform: translateX(-50%) skew(0, -10deg);
  z-index: -3;
  animation: waves 6s ease-in-out infinite alternate-reverse;
}

@keyframes waves {
  from {
    transform: translateX(-50%) skew(0, -10deg);
  }
  to {
    transform: translateX(-50%) skew(0, 10deg);
  }
}

main .promotions {
  padding: 20px;
}

/* Base styles for the typing animation */
main .promotions h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  width: 100%;
  overflow: hidden;
  text-align: center;
}

/* Media query for screens smaller than 768px */
@media (min-width: 768px) {
  main .promotions h2 {
    width: 800px;
    text-align: start;
    text-wrap: nowrap;
    border-right: 2px solid black;
    animation: typing 4s steps(10000) infinite alternate-reverse;
  }
}

/* Keyframes for the typing animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 800px;
    border-right: none;
  }
}

main .products {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

main .products .card {
  width: 250px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}

main .products .card img {
  width: 100%;
  border-bottom: 1px solid var(--primary-color);
}

main .products .card h3 {
  color: var(--primary-color);
  padding: 10px;
}

main .products .card p {
  padding: 0 10px;
  color: #333;
}

main .products .card .price {
  font-size: 1.25rem;
  color: var(--primary-color);
}

main .products .card button {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

main .products .card button:hover {
  background-color: var(--secondary-color);
}

main .products .card:hover {
  transform: scale(1.05);
}

/* End main */
/* ==================================================================================== */
/* Start Footer */

footer {
  position: relative;
  z-index: 3;
}

footer .container {
  color: white;
  display: flex;
  padding: 40px;
  justify-content: space-between;
}

footer img {
  width: 100px;
}

/* End Footer */
/* ==================================================================================== */
