/* Resetowanie marginesów i paddingu */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e;
    color: #fff;
    line-height: 1.6;
}

/* Styl nagłówka */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #5d3b9f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header .logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #d1a0e3;
}

/* Sekcja hero */
.hero {
    background: linear-gradient(135deg, #6a2a9f, #2e1b6f);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    border-radius: 10px;
    margin: 20px 0px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta {
    display: inline-block;
    background-color: #d1a0e3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.2rem;
    text-decoration: none;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.cta:hover {
    background-color: #b68ac5;
}

/* Sekcja podstaw C# */
.fundamentals {
    padding: 40px 20px;
}

.fundamentals h2 {
    font-size: 2.5rem;
    color: #d1a0e3;
    text-align: center;
    margin-bottom: 40px;
}

.content {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.content h3 {
    font-size: 1.8rem;
    color: #c7a0e1;
    margin-bottom: 15px;
}

pre {
    background-color: #1a1a1a;
    color: #a7a7a7;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 1rem;
}

/* Sekcja przykładów */
.examples {
    padding: 40px 20px;
    background-color: #292929;
    border-radius: 10px;
    margin-top: 40px;
}

.examples h2 {
    font-size: 2.5rem;
    color: #d1a0e3;
    text-align: center;
    margin-bottom: 40px;
}

/* Stopka */
footer {
    text-align: center;
    padding: 20px;
    background-color: #5d3b9f;
    margin-top: 40px;
    border-radius: 10px;
}

footer p {
    font-size: 1rem;
}

/* Animacje */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero, .fundamentals, .examples {
    animation: fadeIn 1s ease-in-out;
}

.k {
    text-align: center;
}

.menu {
    display: none;
  }
  
  .menu.active {
    display: block;
  }

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px; /* odstępy między elementami */
}


@media (max-width: 40%) {
    .your-element {
        display: none;
    }
}

/* Header styling */
header {
    background-color: #2a003d; /* Deep purple background */
    color: #ffffff; /* White text for contrast */
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

/* Header Title */
#headerTitle {
    font-size: 2.5em;
    font-weight: bold;
    color: #dcdcdc;
}

/* Header Description */
#headerDesc {
    font-size: 1.2em;
    margin-top: 10px;
    color: #bbbbbb;
}

/* Course section */
.course-section {
    background-color: #1a0031; /* Darker purple background for courses */
    border: 1px solid #4e1b6e; /* Purple border */
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
}

/* Course description */
.course-section p {
    color: #dcdcdc;
}

/* Language Selector */
#languageSelect {
    padding: 8px;
    border-radius: 5px;
    background-color: #3a0047; /* Purple background for select */
    color: #fff;
    border: none;
    margin-top: 20px;
}

/* Buttons */
button {
    background-color: #6a1a7f; /* Lighter purple button */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}

button:hover {
    background-color: #9c4b8c; /* Slightly lighter purple on hover */
}

/* Task result messages */
#task1Result, #task2Result, #task3Result, #task4Result, #task5Result,
#task6Result, #task7Result, #task8Result, #task9Result, #task10Result,
#task11Result, #task12Result, #task13Result, #task14Result, #task15Result,
#task16Result {
    font-size: 1.2em;
    margin-top: 10px;
}

#task1Result.success, #task2Result.success, #task3Result.success, 
#task4Result.success, #task5Result.success, #task6Result.success,
#task7Result.success, #task8Result.success, #task9Result.success,
#task10Result.success, #task11Result.success, #task12Result.success,
#task13Result.success, #task14Result.success, #task15Result.success,
#task16Result.success {
    color: #00c853; /* Green color for success */
}

#task1Result.error, #task2Result.error, #task3Result.error,
#task4Result.error, #task5Result.error, #task6Result.error,
#task7Result.error, #task8Result.error, #task9Result.error,
#task10Result.error, #task11Result.error, #task12Result.error,
#task13Result.error, #task14Result.error, #task15Result.error,
#task16Result.error {
    color: #d32f2f; /* Red color for errors */
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Task input styling */
input[type="text"] {
    width: 80%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #4e1b6e; /* Purple border */
    background-color: #1a0031;
    color: #fff;
}

input[type="text"]:focus {
    border-color: #9c4b8c;
    outline: none;
}

/* Wyśrodkowanie selektora */
#courseSelect {
    padding: 12px;
    border-radius: 5px;
    background-color: #3a0047; /* Fioletowe tło */
    color: #fff; /* Biały tekst */
    border: 1px solid #6a1a7f; /* Fioletowa ramka */
    font-size: 1.2em; /* Większy tekst */
    margin-top: 20px;
    width: 250px; /* Większa szerokość selektora */
    display: block;
    margin-left: auto;
    margin-right: auto; /* Wyśrodkowanie selektora */
}

/* Focus efekt */
#courseSelect:focus {
    outline: none;
    border-color: #9c4b8c; /* Jaśniejsza fioletowa ramka przy focusie */
}

/* Opcje w selektorze */
#courseSelect option {
    background-color: #1a0031; /* Ciemne tło dla opcji */
    color: #fff; /* Biały tekst w opcjach */
}

/* Efekt hover nad opcjami */
#courseSelect option:hover {
    background-color: #6a1a7f; /* Jaśniejszy fiolet przy hover */
}

.label {
    display: none;
}

