* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('https://as2.ftcdn.net/jpg/10/68/59/89/1000_F_1068598942_wvXKbnzMdMhYwoS5TiEJtUzyYxQJeTHO.webp');
    background-size: 120%;
    background-position: center;
    color: #fff;
}

.game-container {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 40px;
    max-width: 80%; 
    width: 80%;     
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#game-screen {
    text-align: justify; 
    width: 100%;        
    margin: 0 auto;     
}

.context-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify; /* Thay đổi từ center thành justify */
    padding: 0 10px;     /* Thêm padding nếu cần */
}

h1 {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    margin-bottom: 20px;
    font-size: 1.2em;
    line-height: 1.6;
}


.choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.choice-btn {
    padding: 12px 20px;
    background-color: #336699;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.choice-btn:hover {
    background-color: #4477aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ending {
    border: 2px solid #ffcc00;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.ending h2 {
    color: #ffcc00;
    margin-top: 0;
    margin-bottom: 20px;
}

.btn, .restart-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffcc00;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn:hover, .restart-btn:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#start-screen {
    text-align: center;
}

/* Hiệu ứng chuyển cảnh */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}