* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
	background-color: #fdfaf1;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

.navbar {
    background: #d7cbb1;
    color: #fff;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
	color: black;
	text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: black;
    text-decoration: none;
	font-weight: bold;
}

.hero {
    background: url('3.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: start;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.btn {
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #555;
}

.section {
    padding: 3rem 0;
    text-align: center;
}

.about-section,
.services-section,
.contact-section {
    background: #f4f4f4;
}

.footer {
    background: #d7cbb1;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}
		body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: #fdfaf1;
        }
		h1, h2 {
			text-align: center;
		}
		#author {
			text-align: right;
			font-size: 20px;
			font-weight: bold;
		}

        .container2 {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background: fffdf7;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .story {
            white-space: normal;
            overflow-wrap: break-word;
            font-size: 25px; /* Cỡ chữ mặc định */
			line-height: 3;
        }

        .story p {
            display: inline;
            cursor: pointer;
            margin-right: 10px;
            line-height: 1.8;
            -webkit-touch-callout: none; /* Ngăn chọn văn bản trên iOS */
            -webkit-user-select: none; /* Ngăn chọn văn bản trên Chrome, Safari và Opera */
            -moz-user-select: none; /* Ngăn chọn văn bản trên Firefox */
            -ms-user-select: none; /* Ngăn chọn văn bản trên Internet Explorer/Edge */
            user-select: none; /* Ngăn chọn văn bản cho các trình duyệt hiện đại */
        }

        .story p.selected {
            background-color: #CCFFCC;
        }

        .translation-popup {
            display: none;
            position: absolute;
            background: #f9f9f9;
            border: 1px solid #ccc;
            padding: 10px;
            border-radius: 4px;
            z-index: 1000;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        }

        .word {
            position: relative;
            display: inline-block;
            margin: 0 2px;
            line-height: 1.2;
        }

        .phonetic {
            display: none;
            position: absolute;
            top: -1.2em;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.55em;
            color: #888;
			/*font-stretch: condensed;*/
        }

        .phonetic-active .phonetic {
            display: block;
        }

        .button-container1 {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
			position:fixed;
			top: 100px;
			right: 0px;
			width: 100px;
        }
		.button-container2 {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
			position:absolute;
			top: 150px;
			right: 0px;
			width: 100px;
        }
		.button-container3 {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
			position:absolute;
			top: 200px;
			right: 0px;
			width: 100px;
        }
		

        .phonetic-toggle, .chapter-list-toggle, .night-mode-toggle {
            padding: 10px;
            background: #333;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s ease;
            margin-right: 10px;
        }

        .phonetic-toggle:active, .chapter-list-toggle:active {
            background: #555;
        }

        .font-size-slider-container {
            display: flex;
            align-items: center;
        }

        .font-size-slider {
            width: 50%;
            margin-left: 10px;
        }

        .chapter-list-container {
            position: fixed;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            background-color: #333;
            color: #fff;
            border-radius: 0 5px 5px 0;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .chapter-list-container.hidden {
            transform: translateX(-100%) translateY(-50%);
        }

        .chapter-list {
            list-style: none;
            padding: 10px;
            margin: 0;
        }

        .chapter-list li {
            padding: 5px 0;
        }

        .chapter-list a {
            color: #fff;
            text-decoration: none;
        }

        .chapter-list a:hover {
            text-decoration: underline;
        }
		.next-chapter-button {
            display: block;
            width: 100px;
            margin: 20px auto;
            padding: 10px;
            background: #333;
            color: #fff;
            text-align: center;
            border-radius: 5px;
            text-decoration: none;
            transition: background 0.3s ease;
        }

        .next-chapter-button:hover {
            background: #555;
        }
		#note {
			width:200px;
			position: absolute;
			top: 100px;
			left: 10px;
		}
		
		.night-mode {
            background-color: #2c2c2c;
            color: #ffffff;
        }

        .night-mode .container2 {
            background-color: #3b3b3b;
        }

        .night-mode .story p.selected {
            background-color: rgb(109,105,109);
        }

        .night-mode .translation-popup {
            background: #3b3b3b;
            border-color: #555;
            color: #CCFFCC;
        }
		

