/* --- GLOBALNE --- */
body {
    overflow: auto;
    background-color: #222222;
    font-family: "Tahoma", sans-serif;
    user-select: none;  /* Zapobiega zaznaczaniu tekstu podczas obracania */
}

input, textarea {
    user-select: text;  /* Umożliwia wpisywanie i zaznaczanie w polach formularza */
}

/* --- NAGŁÓWKI I TEKST --- */
h1 {
    text-align: center;
    margin-bottom: 16px;
}

.logoup  {
       position: absolute;
       text-align: left; 
        width: 8%; 
        z-index: 10000;
        margin: 10px auto auto 5%;
}



.logodolne {
	
	bottom: 1%;
	margin-left:45%;
	width: 30%;
	
	z-index: 100;
	display:block;
	color: #fff;
	font-size: 20px;
}

/* --- UKŁAD DWÓCH KOLUMN --- */
.kontener-grid {
    display: flex;
    gap: 25px;
    width: 95%;
    margin: auto;
 
}

/* --- BLOKI (sześcian + rysowanie) --- */
.skrypt {
    flex: 1;
    background-color: #1f1f1f;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
}
.instr {
          font-size: 14px;
          color: #fff;
}


/* --- OKIENKO Z RENDEREREM --- */
#moje-okienko {
    width: 600px;
    height: 500px;
   
    background-color: #111;
    position: relative;
    z-index: 10;
    user-select: none; /* Brak zaznaczania nad renderem */
}

/* --- FORMULARZ --- */
form {
    background: #222;
    padding: 20px;
    border-radius: 12px;
    color: #fefecd;
}

label {
    display: block;
    margin-top: 12px;
    font-size: 18px;
}

/* --- SEGMENT RYSOWANIA --- */
.segment {
    margin-bottom: 20px;
    border: 1px solid #555;
    padding: 15px;
    border-radius: 8px;
    background: #1c1c1c;
}

canvas.drawCanvas {
    border: 1px solid #aaa;
    display: block;
    margin-top: 8px;
    cursor: crosshair;
    touch-action: none;
    user-select: none;
}

/* --- KOLORY --- */
.color-picker {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.25);
    user-select: none;
}

.color-btn.selected {
    border: 2px solid #000;
}

/* --- MINIATURKI --- */
#thumbnailContainer img {
    max-width: 120px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 6px;
}

/* --- PRZYCISKI --- */
.btn {
    padding: 8px 12px;
    margin-top: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-undo {
    background: #e2e8f0;
    color: #1e293b;
    margin-right: 6px;
}

.btn-clear {
    background: #fca5a5;
    color: #fff;
}

/* --- DODATKOWE INFORMACJE --- */
.info {
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

.info3 {
	
        width: 20%;
        margin-left: 10px;
	z-index: 90;
	display:inline-display:block;
	color: #fff;
	font-family: Verdana;
	font-size: 16px;
	color: #ffff00;
	border: 1px solid #aaaaaa;
    border-radius: 8px;
	opacity: 0.45;
	padding: 10px 10px 10px 10px;
	}

.info4 {

	
	left:15%;
	font-family: Verdana;
	z-index: 100;
	color: #00ffff;
	font-size: 16px;
        text-align: left;
        padding: 10px;
}

.info6 {

	
	left:15%;
	font-family: Verdana;
	z-index: 100;
	color: #00ffff;
	font-size: 16px;
        text-align: left;
        padding: 10px;
}

  .img2 {
           display: block;
            padding: 2px;
            left: 15%;
  width: 35%;
           }

p.wstep {
    text-align: center;
    color: #ff99ff;
}

textarea.textInputOverlay {
    position: absolute;
    z-index: 1000;
    border: 1px solid #000;
    font-size: 18px;
    padding: 2px;
    background: rgba(255,255,255,0.9);
}

#rotationSlider {
                    
           left: 5%;
            width: 35%;
            }


  .roz1 {
       position: relative;
	left: 10%;
	top: 40%;
	width: 150px;
	height: 80px;
	 background-image:url("../siatki3d/images/roz1.png");
}
.roz1:hover {
 background-image:url("../siatki3d/images/roz1-h.png");
}
 
 .roz2 {
       position: relative;
	left: 10%;
	top: 40%;
	width: 150px;
	height: 80px;
	 background-image:url("../siatki3d/images/roz2.png");
}
.roz2:hover {
 background-image:url("../siatki3d/images/roz2-h.png");
}


.zloz2 {
       position: relative;
	left: 10%;
	top: 40%;
	width: 150px;
	height: 80px;
	 background-image:url("../siatki3d/images/zloz2.png");
}
.zloz2:hover {
 background-image:url("../siatki3d/images/zloz2-h.png");
}


.zloz1 {
       position: relative;
	left: 10%;
	top: 40%;
	width: 150px;
	height: 80px;
	 background-image:url("../siatki3d/images/zloz1.png");
}
.zloz1:hover {
 background-image:url("../siatki3d/images/zloz1-h.png");
}


    .link3d {
        position: absolute;
	left: 5%;
	top: 62%;
	width: 60px;
	height: 60px;
	 background-image:url("../siatki3d/images/link3d.png");
}