

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f7fb;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Nawigacja */
nav {
    background-color: #4a90e2;
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

nav a {
    display: inline-block;
    margin: 0 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background-color: #357ab8;
    transform: translateY(-2px);
}

/* =============================
   MAIN LAYOUT – FLEX BOX
============================= */
main {
    display: flex;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Główna treść */
article {
    flex: 3; /* zajmuje większą część */
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Sidebar / inne kraje */
aside {
    flex: 1; /* mniejsza szerokość */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    height: fit-content;
}

/* Nagłówki */
h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #4a90e2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

h3 {
    color: #357ab8;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Paragrafy */
p {
    margin-bottom: 15px;
}

/* Obrazy */
img {
    display: block;
    margin: 15px auto;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.03);
}

/* Linki */
a {
    color: #fff;
    background: linear-gradient(90deg, #4a90e2, #357ab8);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    background: linear-gradient(90deg, #357ab8, #4a90e2);
    transform: translateY(-2px);
}

/* Przycisk i submit */
button,
input[type="submit"] {
    background: linear-gradient(90deg, #4a90e2, #357ab8);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(90deg, #357ab8, #4a90e2);
    transform: translateY(-2px);
}

/* Formularze */
form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    max-width: 650px;
    margin: 0 auto 40px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

label {
    display: block;
    font-weight: 600;
    color: #357ab8;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f5f7fb;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74,144,226,0.3);
    outline: none;
}

/* Listy */
ul, ol {
    color: #333;
    margin-left: 25px;
    margin-bottom: 15px;
}

/* Wyniki losowania */
#result {
    color: #357ab8;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 12px;
}

/* Responsywność */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }
    aside {
        margin-top: 20px;
    }
}
