body {
    margin:0;
    font-family: Verdana, Arial, sans-serif;
    background-image: url("tlo1.gif");
    background-attachment: fixed;
}

h1 {
    color: red;
    text-align: center;
    font-size: 22px;
}

h2 {
    color: red;
    text-align: center;
    font-size: 18px;
}

h3 {
    color: black;
    text-align: left;
    font-size: 16px;
}
p {
  color: black;
  font-family: verdana;
  font-size: medium;
}

.center {
  text-align: center;	
}

.left {
  text-align: left;	
}

.red {
  color: red;
}

.white {
  color: white;
}

.bold {
    font-weight: bold;
}

/* ===== LAYOUT ===== */
.container {
    display:flex;
    flex-wrap:nowrap;
}

.leftdiv {
    flex:0 0 20%;
    background:#0000FF;
    color:#fff;
    padding:15px;
}

.centerdiv {
    flex:0 0 60%;
    padding:20px;
    margin:0px;
}

.rightdiv {
    flex:0 0 20%;
    background:#E11140;
    color:#fff;
    padding:15px;
}

.leftdiv, .centerdiv, .rightdiv {
    box-sizing:border-box;
}

/* ===== TYPO ===== */
h1, h2 {
    text-align:center;
}

a {
    color:inherit;
    text-decoration:none;
}

/* ===== SEKCJE Z OBRAZAMI ===== */
.section {
    display:blok;
    align-items:stretch;
    gap:30px;
    margin:50px 0;
    opacity:0;
    transform: translateY(30px) scale(0.80);
    transition: all 2.1s ease;
}

.section.visible {
    opacity:1;
    transform: translateY(0) scale(1);
}

.section.reverse {
    flex-direction:row-reverse;
}

.section .text {
    display:blok;
    flex-direction:column;
    justify-content:center;
    line-height:1.4;
}

/*
.section .image {
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

.section img {
    float: left;
    margin: 0px 10px 0px 0px;
    height:60%;
    border-radius:10px;
}
*/

.img-right {
    float: right;
    margin: 0px 0px 0px 10px;
    max-width: 28%;
    border-radius:10px;
}

.img-left {
    float: left;
    margin: 0px 10px 0px 0px;
    max-width: 28%;
    border-radius:10px;
}

.btn {
    display: inline-block;
    padding: 3px 6px;
    margin: 10px;
    background: #2563EB;
    font-size: 14px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.6s ease;
 }

/* hover */
.btn:hover {
    transform: translateY(2px);
    background: #e66dff;
    box-shadow: 0 10px 10px rgba(0,0,0,0.9);
}

/* klik */
.btn:active {
 /*   transform: translateY(0);
    box-shadow: 0 20px 30px rgba(0,0,0,0.2); */
    transform: translateY(10px) scale(0.70) rotate(30deg);
    box-shadow: 0 10px 10px rgba(0,0,0,0.9);
}

nav {
  display: none;
}

/* forum */
.question strong {
    font-weight: bold;
}

.answer em {
    font-style: italic;
    display: block;
    margin-left: 2cm;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {

body {
    background-image: none;
}

    .container {
        flex-wrap:wrap;
    }

    .leftdiv, .rightdiv {
        display:none;
    }
    
    .centerdiv {
	    flex:1 1 100%;
}

    .section, .section.reverse {
        flex-direction:column;
    }
    
    /* wyświetla pasek menu poziomy dla desktopow w tym wypadku zbędne 
    nav {
        background-color: red;  
        color: white;
        padding: 10px;
        position: relative; // Aby pozycjonować menu względem nawigacji 
    }
*/
    nav {
      display: flex;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: blue; /* kolor menu rozwijanego mobile i kolor paska menu dektop */
        position: absolute; /* Menu będzie rozwijane względem nawigacji */
        top: 40px;          /* Dostosowane, aby było poniżej przycisku */
        left: 20px;        /* położenie Mneu z lewej strony ekranu */
        width: 250px;       /* Ustaw szerokość prostokąta */
        border-radius: 5px; /* Zaokrąglone rogi prostokąta */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Cień dla efektu wizualnego */
    }

    .menu a {
        padding: 10px;
        color: white;  /* kolor napisow w menu rozwijanym mobile i desktop */
        text-decoration: none;
        border-bottom: 1px solid #555;
    }

    .menu a:hover {
        background-color: #555;
    }

    /* Hamburger w kwadracie */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        width: 30px;
        height: 30px;  /* Tworzenie kwadratu */
        background-color: red; /* Kolor tła kwadratu */
        border-radius: 5px; /* Opcjonalnie: zaokrąglenie rogów */
    }
    /* kolor trzech kresek w menu mobilnym, grubosc kresek - height i odstępy miedzy nimi - margin */
    .hamburger div {
        background-color: white;
        width: 20px;  /* Szerokość kreski */
        height: 2px;  /* Grubość kreski */
        margin: 2px 0;
    }

}

/* Ukrywanie przycisku hamburgerowego na większych ekranach */
/*
@media (min-width: 768px) {
    .menu {
        display: none;
        flex-direction: row;
        justify-content: flex-start;
        position: static;
        width: auto;
        box-shadow: none;
    }

    .hamburger {
        display: none;
    }

    .menu a {
        border: none;
        margin-right: 20px;
    }
}
*/
