/* Global Styles */

.EVERYTHING {
  background-color: #fff5ee;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  color: #294936;
}

header {
  text-align: center;
  padding: 20px; 
  position: relative;
}

.site-title {
  font-size: 8.5rem;
  font-family: 'Georgia', serif; 
}

.style-guide-title {
  font-size: 1.5rem;
  font-family: 'Verdana', sans-serif;
}

.style-section,
.interactive-section,
.combined-section,
.text-section,
.citations-section,
.description-section {
  padding: 20px;
  margin: 20px;
  color: #294936;
}

.lighterGreen {
  color: #5B8266;
}

.swamp {
  color: #3E6259;
}

.sand {
  color: #fff5ee;
}

.greenBG {
  background-color: #294936;
  width: 150px;
}

h2 {
  font-family: 'Verdana', sans-serif;
  font-size: 2rem;
}

h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.3rem;
}

.firstHeading {
  font-family: "Georgia", serif;
  font-size: 3rem;
}

.secondHeading {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
}

.thirdHeading {
  font-size: 1.5rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.fourthHeading {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 1.3rem;
}

.bold-italic {
  font-weight: bold;
  font-style: italic;
}

.large-title {
  font-size: 1.8rem;
}

.italic-title {
  font-style: italic;
}

.small-title {
  font-size: 1rem;
}

.input-field {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #5B8266;
  border-radius: 5px;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

textarea {
  height: 100px;
}

.button {
  padding: 10px 20px;
  background-color: #3E6259;
  border: none;
  border-radius: 5px;
  color: #FFF;
  cursor: pointer;
  transition: background-color 0.4s ease-in-out;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 600;
}

.button:hover,
.button:focus {
  background-color: #294936;
}

.nav-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #294936;
  border: none;
  border-radius: 6px;
  color: white;
  text-align: center;
  font-size: 1rem;
  margin: 5px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  text-decoration: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.nav-button:hover,
.nav-button:focus {
  background-color: #3E6259;
  color: white;
}

img {
  border-radius: 14px;
  transition: all 0.4s ease-in-out;
}

img:hover,
img:focus {
  opacity: 90%;
  border-radius: 25px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  position: fixed; 
  z-index: 1000;
}

p {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.carLink {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #294936;
  text-decoration: underline;
  transition: all 0.4s ease-in-out;
}

.carLink:hover {
  color: #5B8266;
  cursor: pointer;
}

.product-container {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.product {
  position: relative;
  overflow: hidden;
  width: 470px; 
  height: 400px;
  transition: transform 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: scale(1.05);
}

.listing {
  width: 100%;
  height: 75%;
  object-fit: cover; 
  border-radius: 8px;
}

.action-btn {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #294936;
  color: #fff5ee;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.6s ease; 
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.product:hover .action-btn {
  bottom: 16px;
}

.action-btn:hover {
  background-color: #3E6259;
}

.product-info {
  margin-top: 8px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  color: #294936;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.product-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 16px;
  color: #555; 
}

.year {
  text-align: left;
  color: #3E6259;
  font-weight: 600;
}

.price {
  text-align: right;
  font-weight: bold;
  color: #294936;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic;
}

/* FONTS */

.verdana {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.segoe {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.georgia {
  font-family: "Georgia", serif;
}

.impact {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }

  .site-title {
    font-size: 3rem;
  }

  .style-guide-title {
    font-size: 1.2rem;
  }

  .style-section,
  .interactive-section,
  .combined-section,
  .text-section,
  .citations-section {
    padding: 10px;
    margin: 10px;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .firstHeading {
    font-size: 2rem;
  }

  .secondHeading {
    font-size: 1.2rem;
  }

  .thirdHeading {
    font-size: 1.2rem;
  }

  .fourthHeading {
    font-size: 1.1rem;
  }

  .input-field {
    max-width: 100%;
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
    position: static;
  }

  .nav-button {
    width: auto;
    margin: 5px 0;
  }

  .product-container {
    flex-direction: column;
    align-items: center;
  }

  .product {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .listing {
    height: auto;
  }

  .product-name {
    font-size: 18px;
  }

  .product-details {
    font-size: 14px;
  }

  .action-btn {
    font-size: 16px;
    padding: 6px 12px;
  }
}
