/* Reset and Base Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #212121;
    line-height: 1.6;
}

#container {
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
#header {
    background: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
}

.logo {
    max-width: 120px;
}

.header-title {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-size: 2em;
    font-weight:bold;
    line-height: 1.1;
    color: #003366;
    margin-left: 15px;
    flex: 1;
}

/* Header Text Section */
#header-text-section {
    background: #e0efff;
    padding: 20px;
    text-align: left;
    border-radius: 0 0 10px 10px;
    margin-bottom: 20px;
}

#header-text-section h1 {
    font-size: 1.5em;
    margin: 0;
    font-weight: bold;
    color: #004080;
}

#header-text-section p {
    font-size: 1em;
}

/* Read More Button Style */
.read-more {
    display: inline-block;
    font-size: 1em;
    font-weight: bold;
    margin: 5px 0;
    color: white;
    background-color: #004080;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    background-color: #00509e;
    color: white;
    transform: translateY(-2px);
}

/* Main Content Section */
#main {
    margin-left: 28%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#main h1 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #004080;
}

#main h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #004080;
}

#main h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #004080;
}

#main h4 {
    font-size: 1em;
    margin-bottom: 5px;
    color: #004080;
}
#main ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

#main ul li a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

#main ul li a:hover {
    color: #004080;
    text-decoration: underline;
}

#main img {
    margin-right: 10px;
    float: left;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

blockquote {
    margin: 15px 0;
    padding: 15px;
    background: #f0f4f8;
    border-left: 4px solid #0073e6;
    font-style: italic;
}

/* Quote Section */
#quote-section {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: #e8f3ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#quote-section h1 {
    font-size: 2em;
    color: #004080;
    margin-bottom: 15px;
}

/* Back to Top Button Container */
#back-to-top-container {
    text-align: center; /* Center the button horizontally */
    margin: 10px 0; /* Add spacing above and below */
}

/* Floating Back to Top Button */
#back-to-top {
    position: fixed; /* Fix the button to the screen */
    bottom: 5px; /* Distance from the bottom of the screen */
    right: 20px; /* Distance from the right edge */
    background-color: #003366; /* Match your theme */
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999; /* Ensure it appears above other content */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Add a shadow */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Prevent it from being focusable when hidden */
    transition: opacity 0.3s, visibility 0.3s; /* Smooth transition for appearance */
}

/* Show the button when scrolling */
#back-to-top.show {
    opacity: 1; /* Make the button visible */
    visibility: visible;
}

#footer {
    text-align: center;
    padding: 10px;
    background: #003366;
    color: white;
    font-size: 0.9em;
}

/* Time Section Container */
#time-section {
    margin: 30px 0;
    padding: 20px;
    background: #f0f8ff;
    border: 2px solid #004080;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* PHP Time Display */
#time-section span {
    font-size: 1.5em;
    color: #d32f2f;
    font-weight: bold;
}

/* JavaScript Clock Display */
#clockbox {
    font-size: 1.8em;
    font-weight: bold;
    color: #004080;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    background: #e0efff;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Heading */
#time-section h2 {
    font-size: 2em;
    color: #003366;
    margin-bottom: 20px;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    #left, #main {
        float: none;
        width: 100%;
        margin: 0;
    }

    #header {
        text-align: center;
        flex-direction: column;
    }

    .logo {
        max-width: 80px;
        margin-bottom: 10px;
    }

    .header-title {
        font-size: 1.5em;
    }

}