@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(ellipse at bottom, #0b0f19 0%, #020409 100%);
  color: #e0e6ff;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  min-height: 100vh;
  background-attachment: fixed;
  background-size: cover;
}

a[href^="mailto:"] {
  color: #00d0ff;   /* sama turkoosi kuin muualla */
  text-decoration: none;  /* halutessasi poistaa alleviivauksen */
  transition: color 0.2s ease;
}

a[href^="mailto:"]:hover {
  color: #ffffff;  /* vaalea hover-efekti */
}

a {
  color: #c80000;
}
a:hover {
  color: #a00000;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* logo-otsikko */
.header-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.header-logo img {
  max-width: 200px;
  width: 80%;
  height: auto;
  display: inline-block;
}

.lista {
  text-align: left;
}

/* tuotteet rinnakkain, allekkain pienillä näytöillä */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product {
  position: relative; /* tarvitaan pseudoelementille */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Pseudoelementti isoa kirjainta varten */
.product::before {
  content: attr(data-label); /* Haetaan kirjain HTML:stä attribuutista */
  position: absolute;
  top: -20px; /* nostettu 15px ylös */
  left: -12px; /* vähän laatikon vasemmalla puolella */
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Audiowide', sans-serif;
  color: #00d0ff;
  text-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
  z-index: 2;
}

.product:hover {
  border-color: #00d0ff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  transform: translateY(-4px);
}

.product img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.product-option img {
  height: 300px;
  width: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px; /* valinnainen tyylikeino */
}

.product h2 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-family: 'Audiowide', sans-serif;
  color: #9cdfff;
}

.product p {
  color: #c7d7ff;
  font-size: 0.95rem;
  line-height: 1.4;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #b7caff;
  margin-top: 0.8rem;
}

input[type="radio"] {
  margin-top: 0.5rem;
  transform: scale(1.3);
  accent-color: #00d0ff;
}

.select-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #00b8ff;
  border-radius: 6px;
  color: #00d0ff;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}

/* Hover */
.select-button:hover {
  background-color: rgba(0, 184, 255, 0.15);
  color: #fff;
}

/* Valittu / painettu tila */
.select-button.selected {
  background-color: rgba(0, 184, 255, 0.35);
  color: #fff;
  transform: scale(0.97);
  border-color: #00a8ff;
}

}


/* Tämä koskee vain tuotevalintanappeja */
.product button {
  all: unset;
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #00b8ff;
  border-radius: 6px;
  color: #00d0ff;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.product button:hover {
  background-color: rgba(0, 184, 255, 0.15);
  color: #fff;
  border-color: #00d0ff;
}

.product button:focus {
  outline: none;
}

/* korjattu napin glow */
button {
  position: relative;
  display: block;
  margin: 2rem auto;
  padding: 0.9rem 1.8rem;
  border: 1px solid #00b8ff;
  background: rgba(0, 184, 255, 0.1);
  color: #00d0ff;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: rgba(0, 184, 255, 0.25);
  color: #fff;
  transform: scale(1.03);
  border-color: #00d0ff;
}

/* Neon-kehän animaatio */
button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, transparent, #00d0ff, transparent) no-repeat;
  background-size: 200% 100%;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

button:hover::before {
  opacity: 1;
  animation: borderMove 1.5s linear infinite;
}

/* Viivan liike napin reunalla */
@keyframes borderMove {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Poistaa fokuksen sinisen korostuksen */
button:focus {
  outline: none;
}




form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label input,
label textarea {
  margin-top: 0.4rem;
  padding: 0.6rem;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(0, 0, 20, 0.6);
  color: #e0e6ff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

label input:focus,
label textarea:focus {
  border-color: #00d0ff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  outline: none;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

#summary-section {
  margin-top: 2rem;
}

#summary p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #d0e3ff;
}

p {
  line-height: 1.5;
}

/* --- Piilota elementit aluksi --- */
.hidden {
  display: none !important;
}

/* Container, joka pitää osoitetietolaatikot vierekkäin */
#address-section {
  display: flex;
  flex-wrap: wrap;   /* pienillä näytöillä laatikot allekkain */
  gap: 1.5rem;       /* tilaa laatikoiden välillä */
  margin-top: 1.5rem;
}

#address-section h2 {
  width: 100%;      /* pakottaa otsikon omalle riville */
  margin-bottom: 1.5rem; /* tyhjä tila otsikon ja laatikoiden väliin */
  text-align: center;
}

/* Jokainen laatikko */
.address-option {
  flex: 1 1 300px;   /* skaalautuu, min 300px leveys */
  max-width: 48%;    /* kaksi laatikkoa vierekkäin leveällä näytöllä */
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Suuret kirjaimet A/B vasemmassa yläkulmassa */
.address-option::before {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: -12px;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Audiowide', sans-serif;
  color: #00d0ff;
  text-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
  z-index: 2;
}

/* Hover-efekti */
.address-option:hover {
  box-shadow: 0 0 15px rgba(0, 208, 255, 0.3);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Kun laatikko valitaan (selected) */
.address-option .select-button.selected {
  background-color: rgba(0, 184, 255, 0.35);
  color: #fff;
  transform: scale(0.97);
  border-color: #00a8ff;
  box-shadow: 0 0 15px rgba(0, 208, 255, 0.5);
}

/* Kenttäalue */
.address-fields {
  margin-top: 1rem;
  text-align: left;
}

/* Piilota kentät aluksi */
.address-fields.hidden {
  display: none;
}

/* Valintanappi tyyli kuten tuotevalinnoissa */
.address-option .select-button {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #00b8ff;
  border-radius: 6px;
  color: #00d0ff;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.address-option .select-button:hover {
  background-color: rgba(0, 184, 255, 0.15);
  color: #fff;
}

.address-option .select-button.selected {
  background-color: rgba(0, 184, 255, 0.35);
  color: #fff;
  transform: scale(0.97);
  border-color: #00a8ff;
}

/* Pienemmillä näytöillä kaksi laatikkoa allekkain */
@media (max-width: 700px) {
  .address-option {
    max-width: 100%;
  }
}

/* Container tuotteille */
#product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Jokainen tuotelaatikko */
.product-option {
  position: relative; /* tarvitaan pseudoelementille */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Iso kirjain vasempaan yläkulmaan */
.product-option::before {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: -12px;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Audiowide', sans-serif;
  color: #00d0ff;
  text-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
  z-index: 2;
}

.thankyou-section {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05); /* sama kuin tuote- ja osoitelaatikot */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 208, 255, 0.3); /* samanlainen neon-varjo kuin myyntisivulla */
}

.thankyou-section h2 {
  margin-bottom: 1rem;
  color: #9cdfff; /* kuten myyntisivun otsikot */
  font-family: 'Audiowide', sans-serif;
}

.thankyou-section button {
  margin-top: 2rem;
  border: 1px solid #00b8ff;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  color: #00d0ff;
  background: rgba(0, 184, 255, 0.1);
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.thankyou-section button:hover {
  background-color: rgba(0, 184, 255, 0.25);
  color: #fff;
  transform: scale(1.03);
  border-color: #00d0ff;
}


/* Tuotteen valintanappi */
.product-option .select-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #00b8ff;
  border-radius: 6px;
  color: #00d0ff;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.product-option .select-button:hover {
  background-color: rgba(0, 184, 255, 0.15);
  color: #fff;
}

.product-option .select-button.selected {
  background-color: rgba(0, 184, 255, 0.35);
  color: #fff;
  transform: scale(0.97);
  border-color: #00a8ff;
  box-shadow: 0 0 25px rgba(0, 208, 255, 0.6);
}

/* Hover-efekti laatikolle */
.product-option:hover {
  box-shadow: 0 0 20px rgba(0, 208, 255, 0.5);
  transform: translateY(-3px);
  transition: all 0.2s ease;
}

/* Pienemmillä näytöillä allekkain */
@media (max-width: 700px) {
  .product-option {
    max-width: 100%;
  }
  


  
}

/* loppuunmyyty-planssi */
.product-option {
   position: relative;
}

.soldout-banner{
    position: absolute;
    top: 300px;
    left: 150px;
    width: 250px !important;
    height: auto !important;
    pointer-events: none;
	transform: rotate(-15deg); /* vinottaa kuvaa */
    transform-origin: top left; /* halutessasi voit säätää kiertopisteen */
}

.soldout-banner img{
    width: 100px;
    height: auto;
}


.notify-box {
  background: #eef7ff;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* 2. painoksen ilmoituslaatikko */
.notify-box {
  background: rgba(255, 255, 255, 0.05); /* sama kuin muut laatikot */
  border-radius: 14px;
  padding: 1.8rem;
  margin-top: 40px;      /* siirtää laatikon alaspäin */
  margin-left: auto;
  margin-right: auto;    /* keskitys */
  max-width: 650px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  border: 0;             /* poistetaan valkoinen reunus */
}


.notify-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.notify-box label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.notify-box input[type="text"],
.notify-box input[type="email"] {
  width: 100%;
  padding: .6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: .3rem;
  font-size: 1rem;
}

.notify-box button {
  margin-top: 1.5rem;
  padding: .8rem 1.6rem;
  background: #009fb7; /* sama turkoosi */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.notify-box button:hover {
  background: #007a8c;
}
