* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Lato', sans-serif;
    background-image: url('../images/bg_background.png');
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    transition: background 0.5s, color 0.5s;
}

body header, footer {
    background: url('../images/bg_header.png');
    background-attachment: fixed;
    color: #333;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    transition: background 0.5s, color 0.5s;
}

nav ul {
    margin-top:15px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

nav ul li a {

    color: #333 ;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background: #e0f7fa ;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}



nav ul li a:hover,
nav ul li a.current {
    background: #b2ebf2;
    color: #000;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    }

.container {

    display: flex;
    flex-wrap: wrap;
    max-width: 70%;
    margin: 30px auto;
    gap: 20px;
    padding: 0 15px;
}

.container img {
       margin-top: 30px;
       max-width: 100%;
       box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      }


aside {
    flex: 1 1 100px;
    background: url('../images/bg_header.png');
    background-attachment: fixed;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.5s, color 0.5s;
}

aside ol {
    list-style: none;
    padding: 0;
}

aside ol li {
    margin-bottom: 10px;
}

aside ol li a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    background: #f5f5f5;
    border-radius: 5px;
    transition: background 0.3s;
}

aside ol li a:hover {
    background: #e0e0e0;
}

main {

    flex: 3 1 600px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    ransition: background 0.5s, color 0.5s;
}

hr {
margin: 5px;
}

p {
margin-top: 20px;
}

  main img {
  box-shadow: 0px 0px 0px transparent !important;
  }

main p {
margin-bottom: 20px;
text-align: center;
}



main h3 {
    font-size: 25px;
    font-weight: normal;
    margin-bottom: 20px;
    color: maroon;
    text-align:center;
}

footer p {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.spacer {
     width: 150px;
     height: 1px;
     margin-top:50px;
}

.linkownia_tekst {
margin-top: 20px;
text-align: left;
font-size: 28px;
font-weight: bold;
color: maroon;
}

/* --- TRYB CIEMNY --- */
body.dark-mode {
    background: linear-gradient(135deg, #2C5364, #203A43, #0F2027);
    color: #eee;
}

body.dark-mode header,
body.dark-mode footer {
    background: #222;
    color: #eee;
    border-bottom: none;
}

body.dark-mode nav ul li a {
    color: #fff;
    background: #4CAF50;
}

body.dark-mode nav ul li a:hover,
body nav ul li a.current {
    background: #45a049;
}

body.dark-mode aside {
    background: #3b6978;
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

body.dark-mode aside ol li a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

body.dark-mode aside ol li a:hover {
    background: rgba(255,255,255,0.2);
}

body.dark-mode main {
    background: beige;
    color: #333;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

body.dark-mode footer p {
    color: #aaa;
}


form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

form input, form textarea {
  width: 90%;
  margin: 0 auto;
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

button {
    padding: 5px;
    font-size: 20px;
    background: darkred;
    color: #fff;
    border-radius: 8px;
    border: none;
}


form button {
  padding: 8px;
  border: none;
  border-radius: 10px;
  background-color: darkred;
  color: #fff;
  cursor: pointer;
}

form button:hover {
  background-color: red;
}

.captcha {
  display: block;
  margin: 10px auto;
}

.form-buttons {
  display: flex;
  justify-content: space-evenly;
}

label {
margin-left: 20px;
font-weight: bold;
}

.msg {
  margin: 15px auto;
  width: 85%;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.6s ease-in-out;
}

.msg.success {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 2px solid #43a047;
}

.msg.error {
  background-color: #ffebee;
  color: #b71c1c;
  border: 2px solid #ef5350;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}








@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    .container {
        flex-direction: column;
    }
}















