body {
   background-color: #b3b3b3;
   width: 90%;
    padding-left: 5%;
}




/* Vietnamese meaning and transliteration styling */
#vietnameseMeaning,
#transliteration {
    font-size: 18px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    direction: ltr; /* Ensures Vietnamese and transliteration are left-to-right */
    text-align: left; /* Align text to the left for readability */
}

/* Word bank styling */
#wordBank {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
  
}

.word {
    margin: 5px;
    padding: 10px 20px;
    background-color: #bed7f1;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    font-size: 20px;
    transition: background-color 0.3s ease;
  
}

.word:hover {
    background-color: #cccccc;
}

.word.selected {
    background-color: #b3b3b3;
    color: #000;
}

/* Sentence container styling */
#sentence {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-height: 50px;
    background-color: #c7deed;
   
}

#sentence .word {
    background-color: #d9d9d9;
    margin: 5px;
    padding: 8px 12px;
    border-radius: 5px;
}
h1 {   
    text-transform: uppercase;
    text-align: center;
	    font-size: 30px;
}
/* Buttons styling */
button {
    margin: 10px;
    padding: 15px 15px;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #0056b3;
    color: white;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #007bff;
}

#readArabicButton {
    background-color: #007bff;
}

#readArabicButton:hover {
    background-color: #0056b3;
}

#showAnswerButton {
    background-color: #007bff;
}

#showAnswerButton:hover {
    background-color: #0056b3;
}

#nextButton {
    background-color: #007bff;
}

#nextButton:hover {
    background-color: #0056b3;
}

/* Feedback and Score styling */
#feedback {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

#score {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* History container styling */
#history {
    margin-top: 30px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;

    overflow-y: auto;
    text-align: left; /* Align history text to the left for readability */
    direction: ltr; /* Ensure history text reads left-to-right */
}

.history-item {
    margin-bottom: 15px;
    text-align: left;
}

.history-item p {
    margin: 5px 0;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}
button i {
    margin-right: 8px; /* Adds space between the icon and text */
    vertical-align: middle; /* Aligns the icon with the text */
}
button:disabled {
    background-color: #888; /* Dimmed color to indicate it's disabled */
    cursor: not-allowed;
}
#allbtt1 {
      display: flex;
    flex-direction: row;   
    flex-wrap: nowrap;
    justify-content: space-between;
  
}
#allbtt2 {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
  
}
body {
    font-family: sans-serif; /* Chọn một phông chữ dễ đọc */
    background-color: #f5f5f5; /* Màu nền nhạt và trung tính */
    color: #333; /* Màu chữ tối, dễ đọc trên nền sáng */
  
	display: flex;
  justify-content: center; /* Căn giữa theo chiều ngang */
  align-items: center;     /* Căn giữa theo chiều dọc */
  min-height: 100vh;        /* Đảm bảo body luôn cao bằng viewport */

}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff; /* Nền trắng cho vùng nội dung */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#vietnameseMeaning,
#transliteration {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9; /* Màu nền xám rất nhạt */
    border-radius: 3px;
}

.word {
    display: inline-block;
   
    cursor: pointer;
    transition: background-color 0.2s;
}

.word:hover {
    background-color: #d6d6d6; /* Màu xám khi di chuột qua */
}

.word.selected {
    background-color: #c3c3c3; /* Màu xám khi được chọn */
}

#sentence {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f0f8ff; /* Màu xanh nhạt dịu */
    border-radius: 5px;
}

#sentence .word {
    background-color: #e0e0e0;
}

button {
    padding: 10px 15px;
    background-color: #007bff; /* Màu xanh dương nhạt */
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3; /* Màu xanh dương đậm hơn khi di chuột qua */
}

#readArabicButton,
#showAnswerButton,
#nextButton {
    margin-right: 10px;
}

#history {
    padding: 10px;
    background-color: #f9f9f9; /* Màu nền xám rất nhạt */
    border-radius: 3px;
}
a[href="https://wti.pages.dev/"] {
    text-decoration: none; /* Loại bỏ gạch chân */
    font-size: 12px; /* Kích thước chữ nhỏ */
    color: #6666668c; /* Màu xám nhạt để làm mờ chữ */
}