/* styles.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #000000;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2em;
    letter-spacing: 2px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2em;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 800px; /* Zmniejszono dla estetyki */
    width: 100%;
    margin: 0 auto;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

h2 {
    font-family: 'Bebas Neue', sans-serif;
    margin-bottom: 15px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
    font-size: 16px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left; /* Zmieniono na left dla harmonogramu */
    vertical-align: middle;
}

th {
    background-color: #000000;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
}

th.sortable {
    cursor: pointer;
    transition: background-color 0.3s;
}

th.sortable:hover {
    background-color: #333;
}

td {
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

td:hover {
    background-color: #e0e0e0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.schedule-table th, .schedule-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.schedule-table th {
    background-color: #000000;
    color: #fff;
}

.schedule-table td {
    background-color: #f9f9f9;
}

#admin-login-form {
    max-width: 300px;
    margin: 0 auto;
}

#username, #password {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#login-btn {
    padding: 10px;
    background-color: #000000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    transition: background-color 0.3s;
    width: 100%;
    border-radius: 5px;
}

#login-btn:hover {
    background-color: #333;
}

#news-form, #schedule-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

#news-text {
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#news-link, #news-image {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.schedule-entry {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.schedule-entry label {
    width: 100px;
    font-weight: bold;
    font-family: 'Bebas Neue', sans-serif;
}

.schedule-entry input {
    flex: 1;
    padding: 10px;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    padding: 10px;
    background-color: #000000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    transition: background-color 0.3s;
    border-radius: 5px;
}

button:hover {
    background-color: #333;
}

.news-entry {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    animation: slideIn 0.5s ease-out;
    max-width: 600px; /* Ograniczenie szerokości */
    margin-left: auto;
    margin-right: auto;
}

.news-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.news-text {
    margin: 0 0 10px;
}

.news-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
}

.news-video {
    width: 100%;
    max-width: 100%;
    height: 200px; /* Stała wysokość dla estetyki */
    margin-top: 10px;
    border-radius: 5px;
}

footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding: 10px;
    width: 100%;
    font-family: 'Bebas Neue', sans-serif;
}

.admin-link {
    color: #ffd700;
    text-decoration: none;
    margin-right: 5px;
}

.admin-link:hover {
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 600px) {
    main {
        padding: 10px;
    }
    table, .schedule-table {
        font-size: 14px;
    }
    th, td {
        padding: 8px;
    }
    th {
        font-size: 16px;
    }
    #username, #password {
        font-size: 14px;
    }
    #login-btn {
        font-size: 16px;
    }
    .schedule-entry {
        flex-direction: column;
        align-items: flex-start;
    }
    .schedule-entry label {
        width: auto;
        margin-bottom: 5px;
    }
    .schedule-entry input {
        width: 100%;
    }
    .news-entry {
        max-width: 100%;
    }
    .news-video {
        height: 150px;
    }
}