/* style.css */

body {
  font-family: 'Arial', sans-serif; /* Chọn một font chữ hiện đại */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f4f4; /* Màu nền nhẹ nhàng */
  color: #333; /* Màu chữ dễ đọc */
}

.container {
	max-width: 1200px;
    margin: auto;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
  text-align: center;
  
}

h1 {
  margin-bottom: 20px;
  font-size: 2em; /* Kích thước chữ lớn hơn */
}

#quote-container {
  position: relative; /* Để định vị biểu tượng trích dẫn */
  border: 2px solid #ddd; /* Viền mỏng */
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
}

#quote-container::before { /* Biểu tượng trích dẫn mở */
  content: open-quote;
  font-size: 4em;
  position: absolute;
  top: -10px;
  left: 20px;
  color: #777;
}

#quote-container::after { /* Biểu tượng trích dẫn đóng */
  content: close-quote;
  font-size: 4em;
  position: absolute;
  bottom: -10px;
  right: 20px;
  color: #777;
}

#quote {
  font-size: 1.2em;
  line-height: 1.6; /* Khoảng cách dòng hợp lý */
}

#author {
  font-style: italic;
  font-weight: bold; /* Tên tác giả in đậm */
  margin-top: 10px;
  display: block; /* Đảm bảo tên tác giả xuống dòng mới */
}

.word-bank {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.word {
  padding: 12px 25px;
  background-color: #007bff; /* Màu xanh dương nổi bật */
  color: white;
  border-radius: 25px; /* Bo tròn hoàn toàn */
  cursor: move;
  transition: transform 0.2s ease; /* Hiệu ứng chuyển động nhẹ */
}

.word:hover {
  transform: scale(1.05); /* Phóng to nhẹ khi hover */
}

.drop-zone {
  width: 150px;
  height: 50px;
  border: 2px dashed #ccc;
  margin: 5px;
  display: inline-block; /* Hiển thị inline-block để khoảng trắng hoạt động */
  vertical-align: middle; /* Căn giữa theo chiều dọc */
}

.correct {
 
  border-color: #28a745;
}

.incorrect {
 
  border-color: #dc3545;
}

.buttons button {
  padding: 12px 30px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 10px;
  font-size: 1em;
  transition: background-color 0.2s ease; /* Hiệu ứng chuyển màu */
}

.buttons button:hover {
  background-color: #0069d9;
}

#result {
  margin-top: 20px;
  font-size: 1.1em;
}
/* Shared styles for #newHistory and #history containers */
#newHistory, #history {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Base table styling for both tables */
#newHistory table, #history table {
    width: 100%;
    border-collapse: collapse;
}

/* Header row styling */
#newHistory table thead, #history table thead {
    background-color: #4CAF50; /* Green background for headers */
    color: #ffffff;
}

#newHistory table thead th, #history table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Table row styling */
#newHistory table tbody tr, #history table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

#newHistory table tbody tr:nth-child(even), #history table tbody tr:nth-child(even) {
    background-color: #f7f7f7; /* Light gray background for even rows */
}

#newHistory table tbody tr:hover, #history table tbody tr:hover {
    background-color: #e9f5f0; /* Light green hover effect */
}

/* Table cell styling */
#newHistory table tbody td, #history table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

/* Bold styling for STT columns */
#newHistory table tbody td:first-child, #history table tbody td:first-child {
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments for mobile screens */
@media screen and (max-width: 768px) {
    #newHistory table thead, #history table thead {
        display: none; /* Hide header row on small screens */
    }

    #newHistory table tbody tr, #history table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }

    #newHistory table tbody td, #history table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        position: relative;
    }

    #newHistory table tbody td::before, #history table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #4CAF50;
        flex-basis: 40%;
        text-align: left;
    }
}
#spiderChart {
    margin: 20px auto;
    max-width: 600px;
}
