body {
    margin: 0;
    font-family: "Prompt", sans-serif;
    background-color: #e8f6f0;
    color: #14683e;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 0px 0px; */
}

.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

header img {
    max-width: 160px;
    margin-bottom: -30px;
}

header h1 {
    font-weight: 700;
    font-size: 2.4rem;
    color: black;
}

header h2 {
    font-weight: 600;
    font-size: 2.4rem;
    color: #14683e;
    margin-top: -25px;
    margin-bottom: 20px;
}

.welcome-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    /* margin: 10px 0; */
}

.welcome-box {
    border-radius: 10px;
    padding: 0px 70px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(20, 104, 62, 0.2);
    border: 2px solid #14683e;
    text-align: left;
    width: auto;
}

.welcome-box p {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.guest-name {
    font-weight: 700;
    font-size: 2.2rem;
    color: #0b8f58;
    margin-bottom: 5px;
}

.guest-position {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.company {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 10px;
}

.info {
    font-size: 1.5rem;
    color: #333;
}

hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #ccc;
}

#toggleDarkMode {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid #14683e;
    color: #14683e;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

#toggleDarkMode:hover {
    background-color: #14683e;
    color: #fff;
}

body.dark-mode {
    background-color: #21201e;
    color: #33cc33;
}

body.dark-mode .welcome-box {
    background-color: #142614;
    border-color: #33cc33;
    box-shadow: 0 0 15px #33cc33;
}

body.dark-mode .guest-name,
body.dark-mode .guest-position,
body.dark-mode .company,
body.dark-mode .info {
    color: #3eff3e;
}

body.dark-mode header h1 {
    color: #fff;
}

#animatedLine {
    font-size: 1.8rem;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    /* เพิ่ม transition สำหรับ div โดยรวม */
}

#animatedLine .title {
    font-size: 1.2rem;
    margin-bottom: -15px;
    margin-top: 20px;
    color: #0b8f58;
    transition: opacity 0.5s ease-in-out;
    /* เพิ่ม transition ให้ title */
}

#animatedLine .item-content {
    font-size: 1.2rem;
    transition: opacity 0.5s ease-in-out;
    /* ยังคงมี transition สำหรับ item */
}

body.dark-mode #animatedLine .title {
    color: #3eff3e;
}

.footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 1em;
    color: white !important;
    opacity: 0.8;
}