/* style.css */

/* Global styles */
body {
	margin: 0;
	padding: 0;
	font-family: 'Open Sans', sans-serif;
	/*color: #333333;*/
	min-height: 100vh;
	/* Ustalamy minimalną wysokość dla body na 100% wysokości widoku */
	display: flex;
	flex-direction: column;
	/* Używamy flexboxa do ustawienia treści w kolumnie */
	background-color: rgb(255, 255, 255);
	color: rgb(49, 48, 51);
}

.table {
	color: #293749;
}

.card-body {
	background-color: rgb(255, 255, 255);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	flex: 1;
	/* Dzielimy dostępną przestrzeń między header/content/footer */
}

/* Header styles */
header {
	background-color: #14BF95;
	padding: 3px 0;
}

.navbar-brand {
	font-size: 24px;
	font-weight: bold;
	color: #293749;
}

/* Content styles */
h1 {
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 20px;
}

/* Footer styles */
footer {
	background-color: #293749;
	color: #FFFFFF;
	padding: 20px 0;
	margin-top: auto;
	/* Wykorzystujemy margines auto, aby przesunąć footer na dół strony */
}

footer p {
	margin: 0;
}

/* Layout styles */
main {
	flex: 1;
	/* Dzielimy dostępną przestrzeń między header/content/footer */
}

.header-container {
	padding: 0 20px;
}

.card {
	margin-bottom: 10px;
}

.card-img-top {
	/*	width: 100px;
	height: 100px;
	object-fit: cover;*/
}

.dashboard-container .card-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #293749;
	text-align: center;
	font-weight: bold;
	text-shadow: 2px 2px 2px #000;
	opacity: 0;
	transition: opacity 0.3s;
}

.dashboard-container .card:hover .card-title {
	opacity: 1;
}



.sidebar {
	background-color: #FFFFFF;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	width: 250px;
	/* Zwiększamy szerokość menu na 250px */
	height: 100vh;
	/* Ustawiamy wysokość na 100% wysokości widoku */
	position: sticky;
	top: 0;
	left: 0;
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	/* Używamy flexboxa do ustawienia pozycji elementów w kolumnie */
}

.sidebar .nav-link {
	padding: 10px 20px;
	font-size: 20px;
	color: #293749;
	text-decoration: none;
	display: block;
}

.sidebar .nav-link:hover {
	background-color: #F4F4F4;
	/* Dodajemy efekt po najechaniu */
}

.learn-container {
	padding: 20px;
}

.learn-container-wrapper {
	display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.left-form-container {
	width: 90%;
}

.font-weight-bold {
	font-size: 23px;	
}

.form-group.answer-input {
	padding: 10px 0px;
}

.form-group.check-group {
	display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.question-lbl {
	height: 100px;
}

.text-to-read {
	font-size: 20px;
}

.video-lesson .correct-answer {
	font-size: 20px;
}

.video-lesson .neutral-answer {
	font-size: 20px;
	color: rgb(0, 159, 187);
}

.video-container {
	display: flex;
}

.video-container .html-content {
	margin-left: 40px;
}

input.form-control {
	height: 50px;
	font-size: 20px;
	background-color: rgb(231, 234, 240);
    color: rgb(41, 55, 73);
}

input.form-control:focus {
	background-color: rgb(231, 234, 240) !important;
}

input.form-control.correct:focus {
	background-color: rgb(227, 255, 247) !important;
}

input.form-control.error:focus {
	background: rgb(255, 245, 245) !important;
}

.check-btn,
.btn-success {
	width: 72px;
	display: flex;
    flex-direction: column;
	color: rgb(49, 48, 51);;
	border: none;
}

.check-btn {
	background-color: rgb(217, 222, 232);
}

.btn-success {
	background-color: rgb(255, 187, 0);;
}

.check-btn:hover,
.btn-success:hover {
	width: 72px;
	display: flex;
    flex-direction: column;
	color: rgb(49, 48, 51);;
	border: none;
}

.check-btn:hover {
	background-color: rgb(217, 222, 232);
}

.btn-success:hover {
	background-color: rgb(255, 187, 0);;
}

/*.check-btn:hover {
	background-color: rgb(255, 187, 0);;
	color: #333333;;
}*/

/*.check-btn .fa-question,
.btn-success .fa-angle-right {
	color: #333333;;
}
*/
.check-btn .fa-question,
.btn-success .fa-angle-right {
	color: rgb(49, 48, 51);
	font-size: 37px;
	padding-bottom: 20px;
    padding-top: 5px;
}

.error,
.error:focus {
	border-color: #dc3545;
	background: rgb(255, 245, 245) !important;
}

.correct,
.correct:focus {
	border-color: #28a745;
/*	background-color: #d4edda;*/
	border-color: #28a745;
    color: rgb(0, 167, 120) !important;
    background-color: rgb(227, 255, 247) !important;
}

/*.wrong-answer {
	text-decoration: line-through;
	   color: #A87032;
	color: #CE5C00;
	;
	margin-left: 10px;
}*/

.wrong-answer {
	font-size: 24px;
	color: #536175;
}

e {
	text-decoration: line-through;
	/*color: #A87032;*/
    color: #CE5C00;
    /* color: #fdd835; */
    text-decoration-color: #CE5C00;
    text-decoration-thickness: 0.5px;
    text-decoration-style: solid;
}

i {
	color: #28a745;
    font-style: normal;
}

.correct-answer {
	color: #14BF95;
	/*margin-left: 10px;*/
}

.input-wrapper {
	position: relative;
}

.clue-label {
	position: absolute;
	left: 13px;
	/* Odpowiednio dostosuj wartość, żeby podpowiedź była tam gdzie chcesz */
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #8888887d;
	/* Kolor podpowiedzi, dostosuj do swoich potrzeb */
	font-size: 20px;
}

.form-control {
	/* background-color: transparent;*/
}
.lesson-statistics {
    background-color: #444444;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.lesson-statistics h3 {
    font-size: 24px;
    border-bottom: 1px solid #555555;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.statistics-columns {
    display: flex;
    justify-content: space-between;
}

.statistics-column {
    flex: 1;
    list-style-type: none;
    padding: 0;
    margin: 0;
    padding-right: 20px; /* Dla lewej kolumny */
}

.statistics-column:last-child {
    padding-right: 0; /* Usuwamy padding dla prawej kolumny */
}

.lesson-statistics li {
    padding: 10px 0;
}

.lesson-statistics li strong {
    font-weight: bold;
    margin-right: 10px;
}

.html-content {
	width: 100%;
}

.html-content img {
	/*width: 100%;*/
	width: 300px;
}

.margin-bottom-dafault {
	margin-bottom: 20px;
}

.menu-section {
	display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.logo-section, .header-text {
	width: fit-content
}

.header-text {
	padding-right: 5px;
}

.header-text {
	color: #293749;
	font-weight: bold;
}

.header-container {
	display: flex;
	justify-content: space-between;
}

.small-font {
	font-size: 12px;
}

.translation-style, .mnemotechnic-style {
	font-size: medium;
}

.translation-style {
	font-style: italic;
	color: #536175;
}

.mnemotechnic-style {
	font-style: italic;
}

.btn-statistic-toggle {
	
}

/* style.css */


/* Stylizacja dla przycisków */
.input-wrapper {
    display: flex;
    justify-content: flex-start;  /* Przesunięcie na lewo */
    gap: 20px;
    margin-top: 20px;
}

button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none; /* Usuwamy obramowanie */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Start Recording button */
#startRecording {
    background-color: #4CAF50; /* Zielony dla startu */
    color: white;
}

#startRecording i {
    color: white;  /* Zmieniamy kolor ikony na biały */
}

#startRecording:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#startRecording:focus {
    outline: none;
}

/* Stop Recording button */
#stopRecording {
    background-color: #f44336; /* Czerwony dla stopu */
    color: white;
}

/* Kiedy przycisk Start jest nieaktywny */
#startRecording:disabled {
    background-color: #b0b0b0;  /* Szary kolor, gdy nieaktywny */
    color: #ffffff;
    cursor: not-allowed;
}

/* Kiedy przycisk Stop jest nieaktywny */
#stopRecording:disabled {
    background-color: #b0b0b0;  /* Szary kolor, gdy nieaktywny */
    color: #ffffff;
    cursor: not-allowed;
}

#stopRecording i,
#startRecording i {
    color: white;  /* Zmieniamy kolor ikony na biały */
}

#stopRecording:hover,
#startRecording:hover {
    transform: scale(1.05);
}

#stopRecording:focus,
#startRecording:focus {
    outline: none;
}

/* Optional styling for icons */
button i {
    font-size: 18px;
}

/* Audio player */
audio {
    width: 100%;
    margin-top: 15px;
    display: block;
}

/* Subtelny panel z instrukcjami, przesunięty do lewej */
.shortcut-instructions {
    margin-top: 15px;
    font-size: 14px;
    color: #666; /* Subtelny kolor tekstu */
    text-align: left; /* Przesunięcie do lewej */
    padding-left: 10px; /* Dodanie trochę odstępu od lewej strony */
}

/* Kolor dla skrótów, np. dla 'Space' i 'r' */
.shortcut-instructions strong {
    font-weight: bold;
}

.main-container {
	padding-top: 0;
	margin-top: 20px !important;
}

/* Główna strona - Dashboard */
.dashboard-container {
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-container .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.dashboard-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-container .card-img-container {
    position: relative;
    height: 225px;
    overflow: hidden;
}

.dashboard-container .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.dashboard-container .card-body {
    padding: 15px;
    text-align: center;
}

.dashboard-container .card-title {
    font-size: 20px;
    font-weight: bold;
    color: #293749;
}

.dashboard-container .card-description {
    font-size: 14px;
    color: #555555;
    padding-top: 10px;
    margin-bottom: 20px;
}

.dashboard-container .row {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.dashboard-container .col-md-4 {
    padding: 0;
}

.dashboard-container .no-underline {
    text-decoration: none;
}

.dashboard-container .no-underline:hover {
    text-decoration: none;
}

.dashboard-container .card-body .btn {
    padding: 10px;
    border-radius: 8px;
    background-color: #14BF95;
    color: #fff;
    text-align: center;
    border: none;
    transition: background-color 0.3s ease;
}

.dashboard-container .card-body .btn:hover {
    background-color: #128C6F;
}

@media (max-width: 768px) {
    .dashboard-container .row {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-container .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Style dla sekcji z czasem nauki - Jedna kafelka */
.statistic-time-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.statistic-time-card {
    border: none; /* Brak obramowania */
    background-color: #ffffff; /* Białe tło */
    border-radius: 15px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Cień */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.statistic-time-card .card-body {
    padding: 20px;
    display: flex;
    justify-content: space-between; /* Rozstawia sekcje równomiernie */
    align-items: center; /* Wyrównanie pionowe */
}

.statistic-time-card .card-title {
    font-size: 18px; /* Zmniejszenie czcionki tytułu */
    font-weight: 500; /* Mniejsze pogrubienie */
    color: #293749;
    margin-bottom: 10px;
}

.statistic-time-card .card-text {
    font-size: 14px; /* Zmniejszenie rozmiaru tekstu */
    font-weight: 400; /* Normalna waga czcionki */
    color: #555555;
}

/* Wyrównanie elementów w kafelce */
.statistic-time-item {
    width: 32%; /* Każdy z bloków ma 32% szerokości */
    text-align: center; /* Wyrównanie tekstu w poziomie */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Wyrównanie tekstu w pionie */
    height: 70px; /* Zmniejszona wysokość dla kafelek */
}

@media (max-width: 768px) {
    .statistic-time-card .d-flex {
        flex-direction: column; /* Na mniejszych ekranach każdy element układa się w kolumnie */
        align-items: center;
    }

    .statistic-time-item {
        width: 100%;  /* Na małych ekranach sekcje mają pełną szerokość */
        margin-bottom: 15px;
        height: 100px; /* Zmniejszona wysokość na mniejszych ekranach */
    }
}


/* Style dla wykresu w dashboardzie */
.line-chart-card {
    border: none; /* Brak obramowania */
    background-color: #ffffff; /* Białe tło */
    border-radius: 15px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Cień */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-top: 30px;
}

.line-chart-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyrównanie zawartości w pionie */
}

.line-chart-card .card-title {
    font-size: 20px;
    font-weight: bold;
    color: #293749;
    margin-bottom: 20px;
}

/* Wyrównanie wykresu */
#lineChart {
    width: 100% !important; /* Wykres na pełną szerokość */
    border-radius: 15px;
}

/* Styl dla nagłówka z ikoną */
.statistics-header {
    font-size: 24px; /* Zmniejszony rozmiar czcionki */
    font-weight: 600; /* Lekko pogrubiony tekst */
    color: #293749; /* Kolor tekstu */
    display: flex; /* Umożliwienie wyświetlenia ikony i tekstu obok siebie */
    align-items: center; /* Wyrównanie ikony i tekstu w pionie */
    gap: 10px; /* Odstęp pomiędzy ikoną a tekstem */
}

.statistics-header .fa-book {
    font-size: 30px; /* Rozmiar ikony */
    color: rgb(255, 187, 0); /* Kolor ikony pasujący do kolorystyki */
}


/* Styl dla nagłówka z ikoną książki */
.courses-header {
    font-size: 24px; /* Zmniejszony rozmiar czcionki */
    font-weight: 600; /* Lekko pogrubiony tekst */
    color: #293749; /* Kolor tekstu */
    display: flex; /* Umożliwienie wyświetlenia ikony i tekstu obok siebie */
    align-items: center; /* Wyrównanie ikony i tekstu w pionie */
    gap: 10px; /* Odstęp pomiędzy ikoną a tekstem */
}



.fa-comment-dots {
	color: #116EEE;
}

/* Nagłówek sekcji */
.section-header {
    font-size: 24px;
    font-weight: bold;
    color: #293749;
    display: flex;
    align-items: center;
    gap: 10px; /* Odstęp między ikoną a tekstem */
}

.section-header i {
    font-size: 28px; /* Rozmiar ikony */
    color: #14BF95; /* Kolor ikony */
}

.section-header .fa-comment-dots {
	color: #116EEE;
}

/*#116EEE*/
/* Link do Moich słów na stronie dashboard */
.stat-link {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold; /* Pogrubienie tekstu */
    text-decoration: none;
    color: inherit; /* Kolor tekstu będzie dziedziczony (zwykły przewodni kolor) */
    padding: 10px 0;
}

/* Ikona obok tekstu */
.stat-link i {
    margin-right: 8px; /* Odstęp między ikoną a tekstem */
    font-size: 18px; /* Rozmiar ikony */
}

/* Wyłączony hover (brak zmiany wyglądu po najechaniu) */
.stat-link:hover {
    text-decoration: none;
    color: inherit;
}

.fa-arrow-right {
	margin-left: 5px;
	color: inherit;
}

.flag-icon {
    width: 36px;
    height: auto;
    margin-right: 5px;
}

.fas.fa-clock {
    font-size: 20px; /* Dostosuj rozmiar ikony */
    margin-right: 5px; /* Dystans między ikoną a tekstem */
    color: inherit; /* Możesz dostosować kolor ikony */
}

.fas.fa-brain {
    font-size: 24px;  /* Ustawiamy odpowiedni rozmiar ikony */
    margin-right: 5px; /* Dystans między ikoną a tekstem */
    color: #f06292;  /* Kolor ikony przypominający kolor mózgu */
}

.fas.fa-x {
    font-size: 20px;
    color: #293749;
    margin-left: 30px;
    margin-bottom: 19px;
}

/* Tylko dla strony logowania */
/* Login Page Styles */
.login-page {
    /* 1. Dwa tła: najpierw główne, potem zeszyt */
    background-image: 
        url('/images/dysleksja.png'),
        url('/images/dyslexia-notebook.png');

    /* 2. Pozycje obu teł */
    background-position: 
        center center,   /* główny obraz */
        center center;   /* zeszyt pod spodem */

    /* 3. Powtarzanie */
    background-repeat: 
        no-repeat,
        no-repeat;

    /* 4. Skala */
    background-size: 
        contain,  /* główny obraz – cały widoczny, bez zoomu */
        cover;    /* zeszyt – wypełnia cały ekran */

    /* 5. Opcjonalny kolor awaryjny (gdyby tła się nie załadowały) */
    background-color: #b6a78a;

    /* reszta jak wcześniej */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin-left: 500px;
}

.login-card {
    background: rgba(255, 255, 255, 0.8); /* Slight transparency for card */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-card-body {
    display: flex;
    flex-direction: column;
}

.register-btn {
	background-color: #b6a78a;
	border-color: #b6a78a;
}

h2 {
    color: #293749;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
   /* font-weight: 600;
    color: #293749;*/
}

.form-control {
    height: 50px;
    font-size: 16px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #14BF95;
    box-shadow: 0 0 10px rgba(20, 191, 149, 0.2);
}

button {
    background-color: #14BF95;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #128C6F;
}

.text-muted {
    color: #777;
    font-size: 14px;
}

.text-center {
    text-align: center;
}


/* Ustawienia ogólne dla przycisków */
.btn-group .btn {
    border-radius: 50%;
    width: 40px; /* Możesz dostosować rozmiar flagi */
    height: 40px; /* Możesz dostosować rozmiar flagi */
    padding: 0;
    margin-right: 10px; /* Odstęp między przyciskami */
    background-size: cover;
    background-position: center;
    border: none;
    opacity: 0.5; /* Domyślnie przyciski będą wyszarzone */
    transition: transform 0.2s ease, opacity 0.3s ease;
}

/* Styl dla flagi angielskiej */
.en-flag {
    background-image: url('/images/eng_flag.png'); /* Ścieżka do flagi angielskiej */
}

/* Styl dla flagi hiszpańskiej */
.es-flag {
    background-image: url('/images/es_flang.png'); /* Ścieżka do flagi hiszpańskiej */
}

/* Styl dla aktywnego przycisku (jeśli język jest wybrany) */
.btn-group .btn.active {
    opacity: 1; /* Aktywny przycisk ma pełną widoczność */
    transform: scale(1.1); /* Powiększenie aktywnego przycisku */
}

/* Styl dla wyszarzonego przycisku (nieaktywny) */
.btn-group .btn:not(.active) {
    opacity: 0.5; /* Nieaktywny przycisk jest wyszarzony */
}

.language-section .btn-group{
    border-radius: .375rem;
    margin-top: 13px;
}

.hide {
	display: none;
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 32%;
    }
}

.letter-label {
	padding-top: 12px;
}

.letter-input {
	max-width: 4rem; display: inline-block; margin-left: 0.5rem;
}

.length-input {
	width: 4rem;
}

.meta-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.meta-tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.meta-tag-letter {
  background-color: #e0f0ff;  /* niebieskawo */
  color: #004a9f;
}

.meta-tag-number {
  background-color: #ffe7d9;  /* pomarańczowo */
  color: #b34700;
}

.hard-warning {
    color: #664d03;
    border-radius: .5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: -30px;
}

.dislexia {
    font-family: "OpenDyslexic", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif !important;
    letter-spacing: 0.03em;
}