/*====================================*/
/* Stylesheet f�r Seite mit HTML5-App */
/* 18.01.2021 - 16.08.2023            */
/*====================================*/

/* Das Stylesheet f�r normale Seiten (page.css) wird nachgeladen. */

@import url(page.css);

/* Schaltknopf */
  
button {
  height: 30px;       
  border-radius: 0px;
  border-style: outset;
  border-width: 2px;
  margin-left: 10px;
  font: bold 12px sans-serif;
  } 

/* Gesamte App */
   
div#total {
  position: relative;
  margin: 0 auto;
  transform-origin: top center;
  -webkit-transform-origin: top center;
  flex-shrink: 0;
  }

/* Knowledge Section Design */
.knowledge-section {
    margin: 30px 15px;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    line-height: 1.8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.knowledge-section h2 {
    color: #1e293b;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-left: 6px solid #3b82f6;
    padding-left: 18px;
    font-weight: 800;
}

.knowledge-section h3 {
    color: #334155;
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.knowledge-section h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    margin-right: 12px;
}

.knowledge-section p {
    color: #475569;
    margin-bottom: 18px;
    text-align: justify;
    font-size: 1.05rem;
}

.operation-guide {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 25px;
}

.operation-guide h3 {
    margin-top: 0;
    color: #0f172a;
}

.operation-guide ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.operation-guide li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #475569;
}

.operation-guide li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* Highlight Box */
.highlight-box {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin: 0;
    color: #0369a1;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .knowledge-section {
        margin: 20px 10px;
        padding: 15px;
    }
}

/* Simulation Wrapper适配 */
.sim-wrapper {
  display: flex !important;
  justify-content: flex-start !important; /* 改为 flex-start，由 JS 控制居中 */
  align-items: flex-start !important;
  width: 100% !important;
  margin: 20px 0 !important;
  overflow: hidden !important; /* 防止缩放时的溢出导致向右隐藏感 */
}

/* 移动端全宽适配 */
@media (max-width: 600px) {
  .container {
    margin: 0 !important;
    padding: 0 !important;
  }
  .card {
    margin: 0 !important;
    padding: 15px 0 !important; /* 顶部保留一点间距，左右0 */
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
  }
  .sim-wrapper {
    margin: 10px 0 !important;
  }
}
  
/* Zeichenfl�che */

div#canvas {
  position: absolute;
  background-color: #ffff00;
  border: 1px solid #000000;
  }
  
/* Schaltfl�che */
  
div#panel, div#panel1, div#panel2 {
  position: absolute;
  background-color: #00ff00;
  border: 1px solid #000000;
  font: bold 12px sans-serif;
  }
  
/* Zeile einer Schaltfl�che */
  
div#panel div , div#panel1 div, div#panel2 div {
  position: absolute;
  }
  
/* Optionsfeld */

input[type="checkbox"] {
  margin-left: 10px;
  border-radius: 0px; 
  }
  
/* Radiobutton */

input[type="radio"] {
  margin-left: 10px;  
  }
  
/* Schieberegler */

input[type="range"] {
  position: absolute;
  left: 10px;
  }
  
/* Eingabefeld */

input[type="text"] {
  position: absolute;
  padding-left: 2px;
  height: 14px;
  border-radius: 0px;
  border-color: #000000;
  border-width: 1px;
  font: bold 12px sans-serif;
  } 
  
/* Text f�r Optionsfeld oder Radiobutton */
  
label {
  margin-left: 5px;
  vertical-align: 2px;  
  }
  
/* Auswahlfeld */

select {
  position: absolute;
  top: -3px;
  left: 10px;
  height: 30px;
  border-radius: 0px;
  font: bold 12px sans-serif;
  background-color: #ffffff;
  } 
  
/* Inline-Element (span) innerhalb einer Schaltfl�che */
  
div#panel span, div#panel1 span, div#panel2 span {
  position: absolute;
  white-space: nowrap;
  font: bold 12px sans-serif;
  }
  
/* Textbereich */

textarea {
  position: absolute;
  padding: 3px;
  left: 10px;
  border-radius: 0px;
  font: bold 12px sans-serif;
  line-height: 1.25;
  }
  

  