/*--main-container--*/

.main-banner-container {
  width: 100%;
  height: 100vh;
  background-image: url('/img/stern_main_banner.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: left;
  align-items: center;
  position: relative;
  font-size: 1.3rem;
  overflow-x: hidden;
}

.banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 128, 0, 0.6);
  color: white;
  height: 100vh;
  justify-content: center;
  padding: 0 1em;
  text-align: center;
  width: 50%;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-in-out forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.banner-text h2 {
  font-size: 3em;
  margin-bottom: 0.5em;
  font-family: 'Industry', monospace;
}

/*--main-container--*/

.main-container {
  padding: 3em 2em 0 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
}

.main-container p {
  box-shadow: inset 0 0 1.6em -0.6em #284104;
  background-color: var(--dark-green);
  border-radius: 35px;
  color: white;
  font-size: 1.5em;
  padding: 1.5em;
}

/*--description-container--*/

.description-container-stern {
  font-size: 1.3rem;
  display: flex;
  flex-direction: column;
}

.description-variant {
  font-size: 1.5em;
  margin: 0 2em;
}

.description-variant h2 {
  font-family: 'Industry', monospace;
  color: var(--dark-blue);
  margin: 1em 0 0.5em 0;
}

.description-variant ul li {
  margin: 0.5em 0;
  padding: 0 0.8em;
  position: relative;
  text-align: justify;
}

.description-variant ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--dark-blue);
  font-size: 1.5em;
  line-height: 1;
}

.for-container {
  font-size: 1.3rem;
  display: flex;
  flex-direction: column;
  margin: 3em;
}

.for-container h2 {
  font-family: 'Industry', monospace;
  font-size: 2.3em;
  text-align: left;
  color: var(--dark-blue);
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.image-block {
  position: relative;
  flex: 1;
  overflow: hidden;
  border: 3px solid var(--dark-green);
  border-radius: 10px;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease-in-out;
}

.image-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  transition: 0.3s ease-in-out;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5em;
  text-align: center;
  z-index: 1;
}

.image-block:hover img {
  transform: scale(1.1);
}

.image-block:hover::after {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-size: 1.3rem;
}

.modal-content {
  background: white;
  padding: 2em;
  border-radius: 10px;
  width: 80%;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  font-size: 3em;
  color: #333;
  cursor: pointer;
}

#modal-title {
  margin-bottom: 1em;
  font-family: 'Industry', monospace;
  font-size: 2.3em;
  color: var(--dark-blue);
}

#modal-description {
  font-size: 1.5em;
  line-height: 1.5;
  text-align: justify;
}

/*--fits-container--*/

.fits-container {
  display: flex;
  flex-direction: column;
  font-size: 1.3rem;
  margin: 3em;
}

.fits-container h2 {
  font-family: 'Industry', monospace;
  font-size: 2.3em;
  color: var(--dark-blue);
  text-align: left;
}

.fits-container .content {
  display: flex;
  align-items: center;
  text-align: justify;
}

.fits-container img {
  margin-right: 2em;
  width: 20em;
  border-radius: 35px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fits-container p {
  font-size: 1.5em;
  margin-right: 2em;
}

/*--choose-container--*/

.choose-container {
  font-size: 1.3em;
  margin: 3em;
}

.choose-container h2 {
  font-family: 'Industry', monospace;
  font-size: 2.5em;
  color: var(--dark-blue);
}

.quality-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
}

.quality-item {
  box-shadow: inset 0 0 1.6em -0.6em #284104;
  border-radius: 25px;
  background-color: var(--dark-green);
  color: white;
  padding: 1em;
  font-size: 1.5em;
  flex: 1;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.quality-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.quality-item h3 {
  margin-bottom: 10px;
}

.quality-item p {
  line-height: 1.6;
}

/*--card-pellets-container--*/

.card-pellets-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-size: 1.3rem;
  padding: 0 0 5em 0;
}

.card-pellets-container h2 {
  font-family: 'Industry', monospace;
  font-size: 2.3em;
  color: var(--dark-blue);
  margin-left: 1.3em;
  text-align: left;
}

.card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4em;
}

.card {
  text-decoration: none;
  border-radius: 15px;
  width: 20em;
  height: 14em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(5px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.440);
  border-left: 2px rgba(255, 255, 255, 0.545) outset;
  box-shadow: -40px 50px 30px rgba(0, 0, 0, 0.280);
  transform: skewX(10deg);
  transition: .4s;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: brightness(85%);
}

.card:hover {
  transform: skew(0deg) translateY(-15px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  filter: brightness(100%);
}

.card:hover .label {
  color: white;
}

.card .label {
  font-size: 2em;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 5px black;
}

.alfa-pellets {
  background-image: url('../img/alfalfa_pellets.webp');
}


.corn-pellets {
  background-image: url('../img/corn_pellets.webp');
}


.barn-pellets {
  background-image: url('../img/barn_pellets.webp');
}

.individual-pellets {
  background-image: url('../img/individual_pellets.webp');
}


.modal {
  font-size: 1.3rem;
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  overflow: hidden;
  color: black;
}

.modal-content {
  background-color: #fefefe;
  margin: 7% auto;
  padding: 2em;
  border: 1px solid #888;
  width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.4s ease-out;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 3em;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  margin-bottom: 1em;
  font-size: 2em;
  color: #333;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  font-size: 1.5em;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.5em;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0;
  border-bottom: 1px solid #ecf0f1;
}

.spec-title {
  font-weight: bold;
  color: var(--dark-blue);
  margin-right: 1em;
  flex-basis: 50%;
  text-align: left;
}

.spec-value {
  flex-basis: 50%;
  text-align: right;
  color: var(--bright-blue);
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.individual-pellets-text {
  font-size: 1.5em;
}

.order-list {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  color: white;
}

.order-list li {
  background-color: var(--dark-green);
  margin: 10px;
  padding: 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  flex: 1 1 auto;
  text-align: center;
  box-shadow: inset 0 0 1.6em -0.6em #284104;
}

.order-list li:hover {
  background-color: var(--bright-green);
}

/*--description-container--*/

.description-container {
  box-shadow: inset 0 0 1.6em -0.6em var(--dark-green);
  background-color: var(--bright-green);
  padding: 2em;
  border-radius: 35px;
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
  width: 60%;
  margin: 2em auto;
  font-size: 1.3rem;
}

.description-container h2 {
  font-family: Industry, monospace;
  text-align: center;
  font-size: 2em;
  color: var(--dark-blue);
  margin-bottom: 1.5em;
  border-bottom: 2px solid var(--dark-green);
  padding-bottom: 0.5em;
}

.info-block {
  margin-bottom: 0;
}

.info-block h3 {
  font-size: 1.5em;
  color: var(--dark-blue);
  margin-bottom: 0;
}

.info-block p {
  font-size: 1.5em;
  color: black;
  line-height: 1.5;
  margin: 0.2em 0;
}

.description-container p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .card-pellets-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 4rem;
    padding: 5em 0;
  }

  .card-pellets-container h2 {
    font-family: 'Industry', monospace;
    margin: 0.5em 0;
    padding: 0.5em;
    font-size: 3em;
    border-radius: 15px;
  }

  .card-container {
    display: flex;
    flex-direction: column;
    gap: 3em;
  }

  .card {
    text-decoration: none;
    border-radius: 15px;
    width: 20em;
    height: 10em;

    filter: brightness(85%);
  }

  .card .label {
    font-size: 2em;
    font-weight: bold;
  }


  .modal {
    font-size: 4rem;
  }

  .modal-content {
    margin: 6em auto;
    padding: 2em;
    width: 80%;
  }

  .individual-pellets-text {
    margin: 0;
  }

  .order-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    color: white;
  }

  .order-list li {
    background-color: var(--dark-green);
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    flex: 1 1 auto;
    text-align: center;
    box-shadow: inset 0 0 1.6em -0.6em #284104;
  }


  .description-container {
    padding: 0.5em 0;
    border-radius: 0;
    width: 100%;
    margin: 2em auto;
    font-size: 4rem;
  }

  .description-container h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
  }

  .info-block {
    margin-bottom: 0;
    padding: 0 1em;
  }

  .info-block h3 {
    font-size: 1.5em;
    margin-bottom: 0;
  }

  .info-block p {
    font-size: 1.5em;
    line-height: 1.5;
    margin: 0.2em 0;
  }

  .description-container p:last-child {
    margin-bottom: 0;
  }
}


@media (max-width: 768px) {

  /*--main-banner-container--*/

  .main-banner-container {
    font-size: 2.5rem;
    height: 100vw;
  }

  .banner-text {
    height: 100vw;
    font-size: 1em;
    width: 70%;
  }

  .main-container {
    padding: 3em 0 0 0;
    font-size: 4rem;
  }

  .main-container p {
    box-shadow: inset 0 0 1.6em -0.6em #284104;
    background-color: var(--dark-green);
    border-radius: 0;
    color: white;
    font-size: 1.5em;
    padding: 1.5em;
  }

  /*--description-container--*/
  .description-container-stern {
    font-size: 4rem;
  }

  .description-main-text {
    font-size: 1.5em;
    margin: 0 0.8em;
  }

  .description-variant {
    font-size: 1.5em;
    margin: 0 0.8em;
  }

  .description-variant h2 {
    text-align: center;
    margin: 1em 0 0.5em 0;
  }

  .description-variant ul li {
    margin: 0.5em 0;
    padding: 0 0 0 0.8em;
  }

  .description-variant ul li::before {
    font-size: 1.5em;
  }

  .for-container {
    font-size: 4rem;
    margin: 3em;
  }

  .for-container h2 {
    text-align: center;
    font-size: 2.3em;
  }

  .image-container {
    flex-direction: column;
    gap: 2em;
  }

  .image-block {
    border-radius: 10px;
  }

  .image-block img {
    width: 100%;
    height: 15em;
  }

  .image-text {
    font-size: 2.5em;
  }

  .image-block:hover img {
    transform: scale(1.1);
  }

  .image-block:hover::after {
    background-color: rgba(0, 0, 0, 0.7);
  }

  .modal {
    font-size: 4rem;
  }

  .modal-content {
    padding: 1.5em;
    border-radius: 10px;
    width: 90%;
    height: auto;
  }

  .close-btn {
    top: 0.5em;
    right: 0.5em;
    font-size: 3em;
  }

  #modal-title {
    margin-bottom: 1em;
    font-size: 2.3em;
  }

  #modal-description {
    font-size: 1.5em;
    line-height: 1.5;
  }

  /*--fits-container--*/
  .fits-container {
    font-size: 4rem;
    margin: 3em 0.8em;
  }

  .fits-container h2 {
    text-align: center;
    font-size: 2.3em;
  }

  .fits-container .content {
    display: flex;
    align-items: center;
    flex-direction: column-reverse;
  }

  .fits-container img {
    margin-right: 0;
    width: 25em;
    border-radius: 35px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .fits-container p {
    font-size: 1.5em;
    margin-right: 0;
  }

  /*--choose-container--*/
  .choose-container {
    font-size: 4em;
    margin: 0 0.8em;
  }

  .choose-container h2 {
    text-align: center;
    font-size: 2.5em;
  }

  .quality-block {
    display: flex;
    flex-direction: column-reverse;
    gap: 1em;
    padding: 0;
    border-radius: 10px;
  }

  .quality-item {
    width: 90%;
    border-radius: 25px;
    padding: 0 1em;
    font-size: 1.5em;
    flex: 1;
    text-align: left;
  }

  .quality-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .quality-item h3 {
    margin-bottom: 10px;
  }

  .quality-item p {
    line-height: 1.6;
  }
}
