/*
 * ===========================
 * Global Styles
 * ===========================
 */

/* Light button overrides */
.btn-light,
.btn-light:hover,
.btn-light:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from body */
}


body.main-page {
    text-shadow: 0 .1rem .2rem rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 0 15rem rgba(0, 0, 0, 0.8);
  }
  
  /* Optional: make vignette fade in smoothly */
  body.main-page {
    transition: box-shadow 0.5s ease-in-out;
  }

/* Restrict main container width */
.cover-container {
  max-width: 42em;
}

html, body {
    min-height: 100%;
    margin: 0;
  }
  
  body.vignette-simulator::before {
    content: "";
    position: fixed; /* stays in place while scrolling */
    top: 0;
    left: 0;
    width: 100vw; /* full viewport width */
    height: 100vh; /* full viewport height */
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(
      ellipse at center,
      transparent 80%,       /* middle is clear */
      rgba(0, 0, 0, 0.25) 90% /* edges dark */
    );
  }


.explanation-text {
  text-align: center;
  margin: 20px auto 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid white;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.5;
  max-width: 700px;
  color: #fff;
}

.explanation-text a {
  color: #fff;
  text-decoration: underline;
}

/* Headings */
h1,
h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
}

h2 {
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
  margin-top: 30px;
  font-size: 1.8em;
}

/*
 * ===========================
 * Form Styles
 * ===========================
 */

form {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid white;
  max-width: 900px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

label {
  display: inline-block;
  width: 250px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  margin-right: 15px;
}

input[type="text"],
input[type="date"],
select {
  flex-grow: 1;
  max-width: 250px;
  padding: 10px;
  border: 1px solid #fff;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

input[type="text"]::placeholder,
input[type="date"]::placeholder,
select::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.explanation {
  font-size: 0.85em;
  color: #ccc;
  margin-left: 20px;
  flex-basis: 300px;
  min-width: 200px;
}

button[type="submit"] {
  display: block;
  width: 200px;
  padding: 12px 25px;
  margin: 30px auto 0;
  background-color: #fff;
  color: #000;
  border: 1px solid #fff;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
}

button[type="submit"]:hover {
  background-color: #333;
  color: #fff;
}

.error {
  color: #fff;
  background-color: #880000;
  border: 1px solid #ff0000;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
}



.nav-masthead .nav-link {
  color: rgba(255, 255, 255, .5);
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}



header {
  position: fixed; /* Keep from first version */
  top: 0;
  left: 0;
  width: 100%;
  background-color: #212529;
  z-index: 1030;
  padding: 1rem 3rem 10px; /* merged padding-bottom */
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  display: flex;
  justify-content: center;
  align-items: center;
}

header h3.float-md-start {
  float: none !important;
  margin-right: 15px;
  flex-shrink: 0;
}

header nav.nav-masthead {
  float: none !important;
  display: flex;
  align-items: center;
}

/* From second version */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}


main {
  margin-top: 130px;
}

/*
 * ===========================
 * Options Frame (Product Boxes)
 * ===========================
 */

.options-frame {
  padding: 20px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.options-frame div[class*="col"] {
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.options-frame div[class*="col"]:hover {
  transform: translate(-8px, -16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.options-frame div[class*="col"] .btn {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.options-frame div[class*="col"] .btn:hover {
  background-color: #712cf9;
  color: white;
}

.summary-container p {
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  
  .summary-container p:last-child {
    margin-bottom: 0;
  }

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  label {
    width: 100%;
    margin-bottom: 5px;
  }

  input[type="text"],
  input[type="date"],
  select {
    max-width: 100%;
  }

  .explanation {
    margin-left: 0;
    margin-top: 5px;
  }

  .options-frame div[class*="col"] {
    margin: 15px 0;
  }
  .summary-container,
  .plot-container {
    max-width: 100%;
    padding: 15px;
  }

  .plot-container img {
    transform: scale(1); /* Remove scale on small devices for better fit */
  }
}

.summary-container,
.plot-container {
  background-color: #1a1a1a; /* Dark grey background instead of pure black */
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #fff;
  margin-bottom: 35px;
  max-width: 1100px; /* wider max width */
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* Images inside plot container */
.plot-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  border: 1px solid #fff;
  transform: scale(1.05); /* Slightly bigger */
  transition: transform 0.3s ease;
}