body {
  background: url('/img/calc-hero.jpg') no-repeat center center;
  background-size: 100%;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  /* Center the content both vertically and horizontally */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color:#111;
}


.card {
  background: #000;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,.12);
  margin: auto;
  max-width: 400px;
  width: 100%;
  height: 400px; /* Set a fixed height to prevent resizing */
  padding: 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute space evenly */
}

.card:hover {
  cursor: pointer;
}

.card h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 25px;
}

/* Ensure all SVG elements are visible */
.card svg {
  display: block;
  margin: auto;
}

.card svg g text.score {
  font-size: 225px;
  font-weight: bold;
  fill: #fff;
  text-anchor: middle; 
}

.card svg g text.range {
  font-size: 70px;
  font-weight: bold;
  fill: #fff;
  text-anchor: middle; 
}

.card svg g text.improve {
  font-size: 48px;
  fill: #fff;
  text-anchor: middle; 
}

.card p {font-size:15px; line-height:19px;}

p.question-text {font-size:18px;line-height:26px;}

.question {
  margin-top: 0px;
  flex-grow: 1; 
}

.question p {
  font-size: 18px;
  color: #fff;
  min-height: 45px; 
}

.buttons {
  margin-top: 20px;
}

.buttons button {
  background-color: #c73636;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .3s ease;
}

.buttons button:hover {
  background-color: #3cb982;
}

.no-button {
  background-color: #fc6265;
}

.no-button:hover {
  background-color: #e55558;
}


.hidden {
  visibility: hidden; 
}

.card svg text,
.card svg .g,
.card svg .k,
.card svg .j {
  opacity: 1;
}

.card svg:hover text,
.card svg:hover .g {
  opacity: 1;
}

.cta-button {
  text-decoration: none; 
  display: inline-block; 
  background-color: #c73636;
  margin-top:10px;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  font-weight:bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #3cb982;
}

.question-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.question-text {
  font-size: 20px;
  color: #eee;
  margin-bottom: 20px;
  text-align: center;
}

.user-input {
  width: 90%; /* Full width with a small margin on either side */
  padding: 15px;
  font-size: 18px;
  border-radius: 5px;
  border: 1px solid #000;
  margin-bottom: 20px;
  box-sizing: border-box; /* Ensures padding is included in the width */
  background:#eee;
}

#nextButton {
  background-color: #c73636;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  margin: 0 auto; /* Center the button */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#nextButton:hover {
  background-color: #3cb982;
}

input:focus {
  outline: none;
  box-shadow: none;
  border: 2px solid #000;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

@media only screen and (max-width: 768px) {
  body {
    background-image: none;
  }

}


