﻿body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #74ebd5, #acb6e5);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 400px;
}

/* Section container styling */
.section {
  background-color: #f5f5dc; /* Neutral beige */
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure selects and buttons are properly sized */
select, button {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

select:disabled {
    background: #ddd;
    color: #777;
}

button {
    background: #74ebd5;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #56cfe1;
}

/* Fix submit button width */
#submitQuiz {
    width: auto;
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
}

/* Ensure result box is centered below */
#result-container {
    margin: 20px auto; /* centers the box horizontally */
    padding: 15px;
    background: #f3f3f3;
    border-radius: 5px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    font-size: 18px;
}

/* Fixing Subskill Container */
.subskill-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Fix Dropdowns */
.subskill-dropdown {
    width: 200px;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
}

/* Custom coloring for dropdown lists */
.option-gold {
    background-color: gold;
    color: black;
}

.option-silver {
    background-color: lightblue;
    color: black;
}

.option-white {
    background-color: white;
    color: black;
}

/* Nature Info Button */
#natureInfoBtn {
    background-color: #56cfe1;
    border: none;
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

#natureInfoBtn:hover {
    background-color: #3aa6c6;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-height: 80%;
  overflow-y: auto;
}
.modal-content {
  position: relative;
  text-align: center;
}
.modal .close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}
.modal .close:hover {
  color: #000;
}

/* Nature container styling */
.nature-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Container for ingredient dropdowns */
.ingredient-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.ingredient-container select {
  flex: 1;
  min-width: 120px;
}

/* Advanced subskills info container */
.advanced-subskills-info {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}

/* Advanced subskill info icon styling */
.advanced-subskill-info-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Advanced option sections within Advanced Options container */
.advanced-option-section {
  background-color: white; /* White background */
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Container for each ingredient group */
.ingredient-group {
  display: flex;
  flex-wrap: wrap;    /* Allow wrapping if needed */
  align-items: center;
  gap: 10px;          /* Space between buttons */
  margin-bottom: 10px;
}

/* Style for the custom ingredient buttons */
.ingredient-btn {
  border: 1px solid #ccc;
  border-radius: 5px;
  background: white;
  cursor: pointer;
  padding: 5px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  min-width: 100px;   /* Adjust as needed */
}

.ingredient-btn img {
  width: 50px;        /* Adjust image size as needed */
  height: auto;
  display: block;
  margin-bottom: 5px;
}

.ingredient-btn.selected {
  border-color: #56cfe1;
  background: #e0f7fa;
}

/* Fixed ingredient buttons (non-selectable) */
.ingredient-btn.fixed {
  cursor: default;
  opacity: 0.8;
}

/* Container for the ingredient dropdowns */
.ingredient-dropdown-container {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Adjust spacing between dropdowns as needed */
}

/* Each ingredient dropdown group gets equal width */
.ingredient-dropdown-group {
  flex: 1;
}

/* (Optional) Adjust label spacing if needed */
.ingredient-dropdown-group label {
  display: block;
  margin-bottom: 5px;
}

#eeveelutionInfoText {
  white-space: pre-line;
}