﻿body {
	margin: 0;
	padding: 20px;
	background-color: #f5f5f0;
	font-family: Arial, sans-serif;
}
	
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffdd10;
    color: #ed3a26;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.content {
    margin-top: 70px;
    padding: 20px;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-text {
    margin-right: 40px;
    font-size: 16px; /* Rozmiar tekstu */
}

.container { 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.eb-h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #adad85;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0.1, 0.1);
}

.controls {
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0.1, 0.1);
}

.equations {
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0.1, 0.1);
}

.remarks {
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: left;
	justify-content: left;
	font-style: italic;
	font-size: smaller;
	box-shadow: 0 4px 6px rgba(0, 0, 0.1, 0.1);
}

.remarks-sub {
	font-size: 0.75em;
    position: relative;
    top: 0.3em;
}

.control-group_base {
	display: flex;
    flex-direction: column;
}

.control-group {
    .control-group_base;
    width: 200px;
}

.control-group-300 {
    .control-group_base;
    width: 300px;
}

.control-group-400 {
    .control-group_base;
    width: 400px;
}

.control-group-500 {
    .control-group_base;
    width: 500px;
}

.control-group-600 {
    .control-group_base;
    width: 600px;
}

.control-group-double {    
    width: 45%;
}

.scene-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.scene {
    width: 32%;
    height: 300px;
    border: 1px solid #ccc;
}

.scene-buttons {
    width: 32%;
    height: 30px;
    /*border: 1px solid #ccc;*/
}
.scene-2d {
    width: 32%;
    height: 150px;
    background: black;
    border: 1px solid #ccc;
}

canvas { width: 100% !important; height: 100% !important; }

input[type="range"] { width: 100%; }

.button {
    width: 23%;
    height: 100%;
    background: linear-gradient(135deg, #bf8a0d, #edc15a);
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 5px;
}
.button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4);
}
.button:active {
    transform: scale(0.95);
}

.tabview-container {
    width: 97%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.tab-buttons {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    background-color: #f1f1f1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #ccc;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

.tab-content.active {
    display: block;
}

.tab-nav-wrapper {
    position: relative;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE i Edge */
    scrollbar-width: none; /* Firefox */
    white-space: nowrap;
}

.tab-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari i Opera */
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.nav-arrow.left {
    left: 0;
}

.nav-arrow.right {
    right: 0;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

math {
	/*font-size: 24px;*/
	math-style: normal;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

* {box-sizing:border-box}

.slideshow-container {
  max-width: 400px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.btable {
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    margin-left: auto;
	margin-right: auto;
}
.btable_h1 {
    border: 2px solid black;
    border-collapse: collapse;
    text-align: center;
    background-color: #b0b0b0;
}
.btable_h2 {
    border: 2px solid black;
    border-collapse: collapse;
    text-align: center;
    background-color: #d0d0d0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #c7c5c1;
    margin: 15% auto;
    padding: 20px;
    width: 600px;
    border-radius: 5px;
}

.close-btn {
    margin-left: 10px;
}

.list-container {
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
    overflow-y: auto;
    margin: 20px;
    padding: 10px;
}
.list-item { margin: 5px 0; }
.list-level-0 { padding-left: 0px; font-weight: bold; }
.list-level-1 { padding-left: 20px; }
.list-level-2 { padding-left: 40px; }
.list-level-3 { padding-left: 60px; }
/*button { margin-left: 10px; }*/
.list-toggle-btn { 
    margin-right: 5px; 
    cursor: pointer; 
    display: inline-block; 
    width: 15px; 
}
.list-hidden { display: none; }

#str2-subwindow {
    width: 800px;
    height: 600px;
    border: 2px solid #333;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#str2-container { 
    flex: 1; 
    display: flex; 
}
#str2-views { 
    flex: 3; 
    display: flex; 
    flex-direction: column; 
}
#str2-view3d, #str2-view2d { 
    flex: 1; 
    position: relative; 
    border: 1px solid #ccc; 
}
#str2-controls { 
    width: 200px; 
    padding: 10px; 
    overflow-y: auto; 
    border-left: 1px solid #ccc;
}
#str2-objectList { 
    max-height: 50%; 
    overflow-y: auto; 
}
#str2-objectList div {
    padding: 5px;
    cursor: pointer;
    border: 1px solid transparent; /* Domyślna niewidoczna obwódka */
}
#str2-objectList .selected { 
    background-color: #e0e0e0;
    border: 2px solid #ff0000; /* Wyraźna czerwona obwódka dla wybranego */
    font-weight: bold; /* Pogrubiona czcionka */
}

.str2-button { 
    margin: 5px; 
    padding: 5px 10px; 
    width: 100%; 
}

#house-container {
    width: 800px;
    height: 400px;
    position: relative;
}

#house-additional-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    width: 180px;
    z-index: 1
}
#house-additional-controls label {
    display: block;
    margin: 10px 0;
    font-size: 75%;
}

#house-additional-controls input {
    font-size: 75%;
}

.modal-footer {
    margin-top: 20px;
    text-align: right;
}