:root {
  --main-color: #d70000;
  --secondary-color: #000000;
}

html {
  scroll-behavior: smooth;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: var(--main-color);
  width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

/* Small screens */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

/* Medium screens */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .container {
    width: 1100px;
  }
}

/* Header Section */
.header {
  background-color: #ffffff;
  font-weight: 900;
  padding: 10px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header img {
  width: 110px;
  margin: 0;
  padding: 0;
  animation: thebest 2s infinite;
}

@keyframes thebest {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Animation preference for accessibility */
@media (prefers-reduced-motion: reduce) {
  .header img {
    animation: none;
  }
}

.header .container .name {
  color: #ff0000;
  font-size: 18px;
}



@media (max-width: 768px) {
  .header {
    background-color: #fff;
    height: auto;
    padding: 10px 0;
  }

  .header img {
    width: 40px;
  }

  .header .container .name {
    font-size: 14px;
    color: var(--main-color);
  }
}

/* Title Section */
.title {
  margin-top: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.title .text {
  font-size: 50px;
  color: #ffe100;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(111, 1, 1, 0.7) 0%, rgb(228, 13, 13) 100%);
  padding: 15px 40px;
  border-radius: 15px;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 4px solid #ffe100;
  font-weight: bold;
}

.title .text:hover {
  color: #ffffff;
  font-size: 55px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 0, 0.3);
}

@media (max-width: 768px) {
  .title .text {
    font-size: 30px;
    padding: 12px 30px;
  }

  .title .text:hover {
    font-size: 35px;
  }
}

/* Offer Section */
.offer {
  padding-bottom: 60px;
  margin-bottom: 60px;
  position: relative;
}

.offer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 15%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.3) 85%,
    transparent 100%);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.offer:last-of-type::after {
  display: none;
}

.offer .container {
  margin: auto;
  margin-top: 50px;
  width: 100%;
  padding-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

@media (max-width: 500px) {
  .offer {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .offer::after {
    width: 90%;
  }

  .offer .container {
    width: 99%;
    padding-bottom: 10px;
    margin: auto;
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.offer .container img {
  margin: auto;
  width: 100%;
  border: #ffe100 solid 5px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.offer .container img:hover {
  transform: scale(1.02);
}

/* Click Section */
.click .containerClick {
  margin: auto;
  margin-top: 50px;
  width: 100%;
  padding-bottom: 50px;
  text-align: center;
}

.click .containerClick form {
  margin-bottom: 30px;
  text-align: center;
}

.containerClick form .text {
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;
  line-height: 2;
}

.containerClick form a {
  font-size: 40px;
  font-weight: bold;
  background-color: rgba(120, 56, 56, 0.447);
  color: #ffe100;
  border: 2px solid #ffe100;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: all 0.3s ease;
}

.containerClick form a:hover {
  color: var(--secondary-color);
  font-size: 45px;
  background-color: rgba(120, 56, 56, 0.7);
  transform: translateY(-2px);
}
