
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: black;
  color: white;
  font-family: "Aldrich", sans-serif;
  display: flex;
  flex-direction: column;
}
#resetButton {
    display: block;
    margin: 15px auto 40px;
    padding: 12px 24px;

    border: 2px solid white;
    border-radius: 15px;

    background-color: black;
    color: white;

    font-family: "Pixelify Sans", sans-serif;
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.2s,
        background-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}

#resetButton:hover {
    background-color: white;
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}
header {
  width: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.rainbow-mode{
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow{
    0%{background:#ff0000;}
    16%{background:#ff8000;}
    33%{background:#ffff00;}
    50%{background:#00ff00;}
    66%{background:#00bfff;}
    83%{background:#8a2be2;}
    100%{background:#ff0000;}
}
h1 {
  width: 100%;
  max-width: 1000px;
  margin: 0 0 30px;
  padding: 20px 22px;

  text-align: center;
  font-size: 30px;
  color: white;

  border: 2px solid white;
  border-radius: 15px;

  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    lime,
    cyan,
    blue,
    magenta,
    red
  );

  background-size: 400% 400%;
  animation: rgbBackground 6s linear infinite;

  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

h1:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  padding: 11px 12px;

  color: white;
  background-color: black;

  border: 2px solid white;
  border-radius: 15px;

  font-family: "Pixelify Sans", sans-serif;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;

  transition: transform 0.2s, background-color 0.2s;
}

nav a:hover {
  text-decoration: underline;
  transform: translateY(-2px);
  background-color: white;
  color: black;
}


main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  flex: 1;
}

h2,
h3 {
  color: white;
  font-family: "Aldrich", sans-serif;
}

h3 {
  margin-top: 35px;
}

p {
  color: white;
}

.price-slider-box {
  padding: 20px;
  border: 2px solid white;
  border-radius: 15px;
  text-align: center;
}

.price-input {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#budget {
  margin: 10px 0;
  font-size: 24px;
  font-weight: bold;
}

input[type="range"] {
  width: 100%;
  max-width: 400px;
  height: 12px;

  appearance: none;
  border-radius: 20px;
  outline: none;

  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    lime,
    cyan,
    blue,
    magenta,
    red
  );

  background-size: 400% 400%;
  animation: rgbBackground 6s linear infinite;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;

  border-radius: 50%;
  background-color: white;
  border: 3px solid black;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;

  border-radius: 50%;
  background-color: white;
  border: 3px solid black;
  cursor: pointer;
}

.buttonwords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  color: white;
  font-family: "Pixelify Sans", sans-serif;
}
.mybutton {
  padding: 11px 12px;
  margin: 0;

  color: white;
  background-color: black;

  border: 2px solid white;
  border-radius: 15px;

  font-family: "Aldrich", sans-serif;
  font-size: 12px;
  font-weight: bold;

  cursor: pointer;

  box-shadow: 0 0 8px rgba(218, 100, 100, 0.1);
  transition:
    transform 0.2s,
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.mybutton:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(231, 227, 227, 0.4);
}


.mybutton.selected {
  background-color: white;
  color: black;
  border-color: white;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

footer {
  width: 100%;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}


@keyframes rgbBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 22px;
  }

  .buttonwords {
    flex-direction: column;
  }

  .mybutton {
    width: 100%;
  }
}
#resultsButton {
    margin-top: 40px;
    padding: 15px 25px;

    border: 2px solid white;
    border-radius: 15px;

    background-color: black;
    color: white;

    font-family: "Aldrich", sans-serif;
    font-size: 18px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.2s;
}

#resultsButton:hover {
    background-color: white;
    color: black;
    border: 2px solid white;
    border-radius: 15px;
    transform: scale(1.05);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
    animation: fadeUp 0.8s ease;
}
@keyframes glow {

    0% {
        box-shadow: 0 0 8px rgba(255,255,255,.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(0,255,255,.4);
    }

    100% {
        box-shadow: 0 0 8px rgba(255,255,255,.1);
    }

}

.feature-card,
.budget-card,
.result-card{
    animation: glow 4s infinite;
}
@keyframes pulse {

    0%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.05);
    }

    100%{
        transform: scale(1);
    }

}

.buy-btn:hover,
.mybutton.selected{
    animation: pulse .7s infinite;
}
@keyframes rainbowBorder {

    0%{
        border-color:red;
    }

    16%{
        border-color:orange;
    }

    33%{
        border-color:yellow;
    }

    50%{
        border-color:lime;
    }

    66%{
        border-color:cyan;
    }

    83%{
        border-color:blue;
    }

    100%{
        border-color:magenta;
    }

}

h1{
    animation:
    rgbBackground 6s linear infinite,
    rainbowBorder 6s linear infinite;
}
.feature-card,
.budget-card,
.result-card{

    opacity:0;
    animation:fadeUp .8s forwards;

}

.feature-card:nth-child(1){
    animation-delay:.2s;
}

.feature-card:nth-child(2){
    animation-delay:.4s;
}

.feature-card:nth-child(3){
    animation-delay:.6s;
}
@keyframes backgroundMove{

    0%{
        background-position:0% 50%;
    }

    50%{
        background-position:100% 50%;
    }

    100%{
        background-position:0% 50%;
    }

}

body{

    background:
    linear-gradient(-45deg,#000,#111,#080808,#000);

    background-size:400% 400%;

    animation:backgroundMove 20s ease infinite;

}
#toast{

position:fixed;

bottom:30px;

right:30px;

background:white;

color:black;

padding:15px 25px;

border-radius:10px;

font-weight:bold;

opacity:0;

transform:translateY(30px);

transition:.3s;

pointer-events:none;

z-index:9999;

}

#toast.show{

opacity:1;

transform:translateY(0);

}
.quiz-intro {
  color: white;
  text-align: center;
  margin-bottom: 35px;
  padding: 25px;
  border: 2px solid white;
  border-radius: 15px;
  background-color: #111;
}

.quiz-intro h2 {
  font-family: "Aldrich", sans-serif;
  margin-top: 0;
}

.question-card {
  color: white;
  background-color: #111;
  border: 2px solid white;
  border-radius: 15px;
  padding: 25px;
  margin: 30px auto;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.question-card h3 {
  font-family: "Aldrich", sans-serif;
  font-size: 24px;
  text-align: center;
  margin-top: 0;
}

.question-help {
  max-width: 750px;
  margin: 0 auto 25px;
  color: #d5d5d5;
  text-align: center;
  line-height: 1.6;
}

.buttonwords {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.mybutton {
  min-height: 105px;
  padding: 18px;

  color: white;
  background-color: black;

  border: 2px solid white;
  border-radius: 15px;

  font-family: "Pixelify Sans", sans-serif;
  font-size: 18px;
  font-weight: bold;

  cursor: pointer;

  transition:
    transform 0.2s,
    color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}

.mybutton span {
  display: block;
  margin-top: 9px;

  color: #bdbdbd;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.4;
}

.mybutton:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px white;
}

.mybutton.selected {
  color: black;
  background-color: white;
  box-shadow: 0 0 20px white;
}

.mybutton.selected span {
  color: #333;
}

.hidden-question,
.conditional-question {
  display: none;
}

.active-question {
  display: block;
  animation: questionAppear 0.4s ease;
}

.continue-button,
#resultsButton,
#resetButton {
  display: block;
  margin: 20px auto 0;
  padding: 15px 25px;

  color: white;
  background-color: black;

  border: 2px solid white;
  border-radius: 15px;

  font-family: "Pixelify Sans", sans-serif;
  font-size: 17px;
  font-weight: bold;

  cursor: pointer;

  transition:
    transform 0.2s,
    color 0.2s,
    background-color 0.2s;
}

.continue-button:hover,
#resultsButton:hover,
#resetButton:hover {
  color: black;
  background-color: white;
  transform: scale(1.05);
}

.price-slider-box {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

#budget {
  font-family: "Aldrich", sans-serif;
  font-size: 32px;
  font-weight: bold;
}

#slider {
  width: 100%;
  cursor: pointer;
}

@keyframes questionAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .buttonwords {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 18px;
  }

  .question-card h3 {
    font-size: 21px;
  }

  .mybutton {
    min-height: 90px;
  }
}
.question-card {
  position: relative;
  z-index: 1;
}

.buttonwords {
  position: relative;
  z-index: 2;
}

.mybutton {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.active-question {
  display: block;
}

.hidden-question {
  display: none;
}