body {
  font-family: system-ui, sans-serif;
  padding: 1rem;
  margin: 0;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /*opacity: 0;
  transition: opacity 0.5s ease-in;*/
}

body.loaded {
  opacity: 1;
}

.page-container {
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.banner {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections - glassmorphism style */
section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow-x: auto;       /* Allow horizontal scrolling */
}

/* Headings with accent line */
h1, h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  border-bottom: 2px solid #f6c252;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* Table redesign */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  min-width: 800px;       /* Ensure content fits; scrolls if smaller screen */
}

thead {
  background-color: #0067a0;
  color: white;
  text-align: left;
}

th, td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
}

tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Plot styling */
.plot-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.plot-column {
  flex: 1 1 0;
  min-width: 300px;
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.plot {
  width: 95%;
  height: auto;
  display: block;
}

/* Limit scaling of T vs Energy plot */
#plotMem {
  max-width: 500px;     /* cap size for desktops */
  margin: 0 auto;       /* center it horizontally */
  display: block;
}

/* Adjust size for very small screens (portrait mobile) */
@media (max-width: 600px) {
  #plotMem {
    max-width: 90%;     /* allow more width on small screens */
  }
}

/* Adjust size for medium screens (tablets, tilted phone) */
@media (min-width: 601px) and (max-width: 1000px) {
  #plotMem {
    max-width: 70%;
  }
}

/* Inputs and buttons transitions */
button, input, select {
  transition: all 0.2s ease-in-out;
}

button:hover, select:hover, input:focus {
  transform: scale(1.02);
}

/* Floating quotation button (image-based) */
.quotation-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 180px;
  height: auto;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
}

.quotation-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.quotation-btn:hover {
  transform: scale(1.05);
}

.param-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.param-label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: block;
}

.param-inputs label {
  display: block;
  margin: 0.3rem 0;
}

.param-row {
  margin-bottom: 1rem;
}

.param-inputs input[type="number"] {
  width: 5rem;
}