body {
 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white; 
    font-family: sans-serif;
    margin: 0;
    padding: 1rem;

    /* Apply the animation */
    animation: changeBackground 21s infinite; /* 21s total duration, 7s per image */
    
    /* Center all text and inline content on the page */
    text-align: justify;
}

/* Keyframes define the animation sequence */
@keyframes changeBackground {
    /* Start and end with Thailand */
    0%, 100% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('thailandbg.jpg');
    }
    /* Transition to Vietnam */
    33.3% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('vietnambg.jpg');
    }
    /* Transition to Malaysia */
    66.6% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('malaysiabg.jpg');
    }
}

/* --- Content Sections --- */
div {
    background-color: rgba(0, 0, 0, 0.2); 
    margin: 2rem auto;                  
    padding: 1.5rem;
    border-radius: 10px;                 
    border: 1px solid #555;             
    max-width: 800px;                    
}

/* --- Images --- */
div img {
    width: 100%;         
    height: 300px;       
    object-fit: cover;   
    border-radius: 8px;  
}

/* --- Headings & Links --- */
h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px #000; 
}

p a {
    color: #a0d2eb;     
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

p a:hover {
    color: #e5eaf5;     
}


table {
    margin: 2rem auto;
    border-collapse: collapse; 
    max-width: 800px;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.7); 
    border-radius: 8px;
    overflow: hidden;   
}

th, td {
    padding: 12px;
    border: 1px solid #444; 
}

th {
    background-color: rgba(0, 0, 0, 0.3); 
}
/* --- Footer --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid #444;
}


footer #clock-container {
    display: flex;

    justify-content: space-around;
}

.clock {
    text-align: center;
}

.city {
    font-size: 0.9rem;
    font-weight: bold;
    color: #aaa;
}

.time {
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
}


/* --- Footer --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center; /* Center the simple text */
    color:;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
}