body {
    font-family: 'Poppins', Arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #6e8efb, #a777e3); /* Gradient màu nền */
    margin: 0;
    padding: 0;
    color: #333;
    height: 100vh;
}


#app {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button {
    margin: 10px;
    padding: 12px 20px;
    background-color: #6e8efb; 
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #9a47d1;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

#score-board p {
    font-size: 18px;
    color: #555;
    margin: 10px;
    font-weight: 500;
}

#game-area {
    margin-top: 20px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#leaderboard ul {
    list-style: none;
    padding: 0;
}

#leaderboard ul li {
    margin: 5px 0;
    padding: 8px 12px;
    background-color: #f1f1f1; 
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

#leaderboard ul li:hover {
    background-color: #e0e0ff; 
}

#pagination {
    margin-top: 15px;
    text-align: center;
}

#pagination button {
    padding: 8px 15px;
    margin: 0 5px;
    border: none;
    background-color: #f1f1f1;
    color: #6e8efb;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#pagination button.active {
    background-color: #6e8efb;
    color: white;
    font-weight: bold;
}

#pagination button:hover {
    background-color: #9a47d1;
    color: white;
}

h1 {
    font-size: 32px;
    color: #6e8efb;
    font-weight: bold;
}

h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

#app {
    animation: fadeIn 1s ease-out;
}

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

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#game-over-content {
    text-align: center;
    color: white;
    animation: fadeIn 0.5s ease-in-out;
}

#game-over-icon {
    width: 150px;
    margin-bottom: 20px;
    animation: bounce 1.5s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}
.answers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.answer-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #6e8efb;
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.answer-btn:hover {
    background-color: #6e8efb;
    color: #ffffff;
    transform: scale(1.05);
}

#auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Toàn màn hình */
    background: linear-gradient(135deg, #6e8efb, #a777e3); /* Nền gradient */
    color: #333;
}

#login, #register {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button:hover {
    background-color: #5677e3;
}

.redirect-message {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.redirect-message a {
    color: #6e8efb;
    text-decoration: none;
    font-weight: bold;
}

.redirect-message a:hover {
    text-decoration: underline;
}
#notification {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f44336;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
}

.experts-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.expert-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: transform 0.2s;
}

.expert-btn:hover {
    transform: scale(1.1);
}

.expert-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
}
#expert-response-container {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    max-width: 500px;
    margin: 0 auto;
}

.expert-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

.expert-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

#expert-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#expert-suggestion {
    font-size: 16px;
    color: #555;
}
@keyframes fadein {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@media (max-width: 768px) {
  /* Align buttons on mobile */
  button {
    font-size: 16px;
    padding: 14px;
    width: 100%;
    display: block;
    margin: 10px 0;
  }

  input {
    font-size: 16px;
    padding: 12px;
    width: 100%;
  }
}