/* main flexbox */
body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: space-between;
    background-color: #f0f0f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* h1 i footer */
h1 {
    margin-top: 30px;
    color: #2c3e50;
    text-align: center;
}

p.footer {
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 0.9em;
    text-align: center;
}

/* polenglish */
#lang-switch {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    font-size: 0.9em;
}

.lang-btn {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    transition: color 0.2s, background-color 0.2s;
}

.lang-btn:hover {
    color: #2c3e50;
}

.lang-btn.active {
    color: #2c3e50;
    background-color: #e0e0e0;
    cursor: default;
}

.separator {
    color: #7f8c8d;
    margin: 0 5px;
}

/* MAIN */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; 
    max-width: 800px; 
    padding: 20px;
    box-sizing: border-box;
}

/* caly content box */
.content-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    line-height: 1.6;
    box-sizing: border-box;
}

/* h2 i ul */
.content-box h2 {
    color: #3498db;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
    margin-top: 0;
}

.content-box ul {
    list-style-type: square;
    margin-left: 20px;
}

/* buttony i hrefy */
p.center-link {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Podstawowy zielony przycisk */
a.button-link, button.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    line-height: normal;
    text-align: center;
}

a.button-link:hover, button.button-link:hover {
    background-color: #27ae60;
}

/* formularz rozwin */
.button-link.secondary {
    background-color: #3498db;
}

.button-link.secondary:hover {
    background-color: #2980b9;
}

/* container przyciski */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* caly formularz */
#register-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
    text-align: left;
    animation: fadeIn 0.5s;
}

#register-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

#register-form input, 
#register-form textarea, 
#register-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

/* daj mi swoje dane */
#register-form button[type="submit"] {
    margin-top: 20px;
    width: 100%;
}

/* formularz sukces i blad */
#form-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    min-height: 1.2em;
}

.msg-success { color: #2ecc71; }
.msg-error { color: #e74c3c; }

/* zajebisty fadein */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}