:root {
  --dmdm-red: rgb(153, 56, 23);
  --dmdm-red-light: rgba(153, 55, 23, 0.15);
}

body {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  padding: 20px;
  margin: 0px;
  font-size: 87.5%;
}

body.transcluding {
  visibility: hidden;
}
body.transcluded {
  visibility: visible;
  transition: visibility 0s;
}

main {
  max-width: 750px;
  margin: 40px auto;
  padding: 20px 0px;
  font-size: 1rem;
}

section {
  margin-bottom: 0px;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  display: block;
  padding-top: 20px;
  margin-top: 0px;
}

hr {
  border: none;
  border-bottom: 1px dotted darkgray;
  margin: 60px 0px;
}

side-by-side {
  display: flex;
  gap: 40px;
}

one-side {
  width: 50%;
}

one-side.side-30 {
  width: 30%; 
}

one-side.side-70 {
  width: 70%; 
}

.full-image {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.05);
}

.half-image {
  float: right;
  margin: 0px 0px 20px 20px;
  max-width: 50%
  
}
.full-image img, .half-image img {
  width: 100%;
  height: auto;
}
.half-image:after {
  content: "";
  display: block;
  clear: both;
}

figure#paramedic-image {
  margin: 0px;
  float:right
}
figure#paramedic-image img {
  float: right;
  margin-left: 20px;
  margin-top: -40px;
  width: 275px;
}
figure#paramedic-image::after {
  content: "";
  display: block;
  clear: both;
}

figure#paramedic-image figcaption {
  font-size: 0.8rem;
  color: gray;
  text-align: center;
  margin-bottom: 20px
}

p {
  padding: 0px;
  margin: 0px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.35rem;
}

a {
  color: gray;
}

a:hover {
  color: var(--dmdm-red);
}

#top {
  text-align: center;
}

#top #home-link {
  text-decoration: none;
}
#top #home-link h2{
  color:black;
}

#top #logo {
  /* max-width: 150px; */
  /* margin-bottom: 40px; */
  max-width: 200px;
  margin-bottom: 20px;
}

#top #logo.after-dark {
  max-width: 400px;
  margin-bottom: 20px;
}

#top h1, #top h2, #top h3, #top h4, #top h5 {
  margin: 0px;
}

#top h2 {
  font-size: 1.5rem;
}

#top h5 {
  font-size: 1rem;
  color: var(--dmdm-red);
}

nav {
  text-align: center;
  margin-top: 20px;
}

.about nav a[href="about.html"], 
.shop nav a[href="shop.html"], 
.quality nav a[href="quality.html"],
.home nav a[href="index.html"],
.contact nav a[href="contact.html"] {
  color: var(--dmdm-red);
  text-decoration: none;
  font-weight: bold;
}

nav separator-dot {
  margin: 0px 10px;
  color: lightgray;
}

#main {
  margin-top: -60px
}

#support {
  margin: 60px auto 30px auto;
}

#campaign-pitch {
  font-size: 2.6rem;
  margin-top: -30px;
  margin-bottom: 0px;
}

#buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.red-button {
  background-color: var(--dmdm-red-light);
  color: black;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-size: 14px;
}

/* .red-button::after {
  content: "→";
  margin-left: 10px;
} */
 .red-button.filled {
  color: white;
  background-color: var(--dmdm-red);
}

.red-button:hover, .red-button.filled:hover {
  background-color: white;
  color: var(--dmdm-red);
  border: 1px solid var(--dmdm-red);
}
.red-button.centered {
  justify-content: center;
}
.red-button.big {
  font-size: 1.3rem;
  font-weight: bold;
}

#contact ul {
  padding-left: 0px;
  margin: 0px;
}

#contact li {
  list-style: none;
  margin-bottom: 5px;
}

#contact li#e i {
  display: none;
}

@media (max-width: 800px) {
  side-by-side {
    display: block;
    gap: 40px;
  }
  
  one-side {
    width: 100%;
    margin-top: 20px;
  }

  one-side p {
    margin-top: 20px;
  }
  
  figure#paramedic-image {
    margin: 0px;
    width: 100%;
    
  }
  figure#paramedic-image img {
    width: 100% !important;
    margin:0px
  }
  
  .half-image {
    max-width: 100%;
    float: none;
    margin: 0px;
  }

  #campaign-pitch {
    font-size: 1.8rem;
  }
}

.price-selector {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* padding: 30px; */
  /* background: #f9f9f9; */
  border-radius: 5px;
}

.price-selector label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.quantity-selector select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.price-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-input input[type="range"] {
  width: 100%;
  margin: 10px 0;
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.price-input-group::before {
  content: "$";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  pointer-events: none;
}

.price-input-group input {
  padding-left: 1.5rem;
}

.price-input-group span {
  font-size: 1.2rem;
}

.price-input-group input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.2rem;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: gray;
  margin: 10px 0;
}

.impact-message {
  text-align: center;
  font-weight: bold;
  color: var(--dmdm-red);
  padding: 10px;
  background: rgba(153, 56, 23, 0.1);
  border-radius: 4px;
}

.additional-cost {
  margin-top: 1rem;
  font-weight: bold;
  color: var(--dmdm-red);
}

.total-section {
  text-align: center;
}

.total-cost {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

#purchase-button {
  background-color: var(--dmdm-red);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.2s ease;
  display: block;
  width: 100%;
}

#purchase-button:hover {
  background-color: black;
  color: white;
}

#purchase-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.button-group button {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--dmdm-red);
  background: white;
  color: black;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  font-weight: bold;
}

.button-group button:hover {
  background: var(--dmdm-red);
  color: white;
}

.number-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.number-input-group input[type="number"] {
  width: 4rem;
  padding: 0.5rem;
  border: 1px solid darkgray;
  text-align: center;
  font-size: 1.0rem;
}

.number-input-group span {
  color: black;
}

.quantity-selector,
.additional-selector {
  padding:20px;
  background: #f9f9f9;
}

.quantity-selector,
.additional-selector,
.price-input {
  margin-bottom: 1.5rem;
}

.quantity-selector label,
.additional-selector label,
.price-input label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.quantity-content {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.quantity-content img {
  width: 100px;
  height: auto;
  margin: 0;
}

.quantity-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  margin: 0;
}

.input-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.input-row .number-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-row .number-input-group:first-child {
  width: 5rem;
}

.input-row .number-input-group:last-child {
  flex: 1;
}

.price-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 18px;
}

.suggested-price {
  font-size: 0.8rem;
  color: gray;
  text-align: center;
}

.additional-content {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.additional-content img {
  width: 100px;
  height: auto;
  margin: 0;
}

nav a.active {
  font-weight: bold;
  color: var(--dmdm-red);
}

over-top {
  position: relative;
  display: block;
  width: 100%;
}

on-top {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
}

on-bottom {
  position: relative;
  width: 100%;
}