/*table{*/
/*    width: 50%;*/
/*    border-collapse: collapse;*/
/*    border: 1px solid gray;*/
/*}*/

/* --- Global Page Layout --- */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: whitesmoke;
  color: black;
  display: flex;
  flex-direction: column; /* stack tables vertically */
  align-items: center;
  gap: 50px; /* space between the two tables */
  padding: 40px 10px;
  min-height: 100vh;
  box-sizing: border-box;
}

h1 {
  color: black;
  text-align: center;
  margin-bottom: 15px;
}

/* --- Shared Table Design --- */
table {
  background: white;
  border-radius: 12px;
  padding: 20px 30px;
  border-collapse: separate;
  border-spacing: 15px;
  min-width: 320px;
}

td {
  vertical-align: top;
}

/* --- Buttons --- */
input[type="button"] {
  background-color: blue;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
input[type="button"]:hover {
  background-color: navy;
}

select,
input[type="number"] {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
select:focus,
input[type="number"]:focus {
  border-color: blue;
  outline: none;
}

img {
  display: block;
  margin-top: 15px;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid whitesmoke;
  background-color: white;
}

/* --- Result and Price Texts --- */
#vastus,
#bonusMessage {
  font-weight: bold;
  color: blue;
  text-align: center;
}
#summa,
#totalPrice {
  font-weight: bold;
  color: #28a745;
}

/* --- Radio Labels (for Emojicon) --- */
label {
  cursor: pointer;
  display: inline-block;
  padding: 5px 10px;
  margin: 4px 0;
  border-radius: 6px;
  transition: all 0.2s ease;
}
label:hover {
  background-color: #e6f2ff;
}
input[type="radio"] {
  display: none;
}
input[type="radio"]:checked + label {
  background-color: blue;
  color: white;
  font-weight: bold;
}

/* --- Responsive Adjustments --- */
@media (max-width: 700px) {
  table {
    width: 100%;
    font-size: 14px;
    padding: 15px;
  }
  img {
    width: 100px;
    height: 100px;
  }
}
