/* Base Styles and Reset */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Main Content Container */
.container {
    max-width: 850px;
    margin: 50px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header and Title */
header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6eb;
    margin-bottom: 30px;
}

h1 {
    color: #007bff; /* Primary blue */
    font-size: 2.5em;
    margin: 0;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    color: #555;
    margin-top: 5px;
    font-weight: 400;
}

/* Back Link for subpages */
.back-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.95em;
    font-weight: 500;
}

/* Section Headings */
h2 {
    font-size: 1.6em;
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-weight: 600;
}

/* --- CLOCK STYLES --- */
#live-clock {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(145deg, #e6f0ff, #ffffff);
    border: 1px solid #cce0ff;
    border-radius: 8px;
}

.date-text {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 5px;
}

.time-text {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 3.5em;
    font-weight: 700;
    color: #007bff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.clock-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
    border-top: 1px dashed #e0e6eb;
    padding-top: 10px;
}

/* Style for the local clock offset measurement */
.offset-highlight {
    font-size: 0.95em;
    color: #0056b3; /* Stronger blue */
    font-weight: 600;
    margin: 15px auto 0;
    padding: 10px 15px;
    background: linear-gradient(145deg, #e6f0ff, #ffffff); 
    border-radius: 4px;
    border: 1px solid #cce0ff;
    max-width: 80%; /* Limit width to contain text neatly */
}
/* -------------------------- */


/* Key Facts List Styling */
.key-facts {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.key-facts li {
    padding: 5px 0;
    display: flex;
    border-bottom: 1px dotted #e0e6eb;
    align-items: baseline; 
}

.key-facts li strong {
    font-weight: 600;
    color: #007bff;
    flex-basis: 150px; 
    flex-shrink: 0;
}

/* --- RESTRICTIONS STYLING --- */
.restrictions-note {
    margin-top: 20px;
    padding: 15px; 
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    border-radius: 8px;
    font-size: 0.95em;
}
.restrictions-note strong {
    color: #cc0000; /* Use a strong color for mandatory rule */
    font-weight: 700;
}
/* -------------------------------- */


/* Code Block for Usage and Copy Button Container */
.code-container {
    position: relative;
    margin: 20px 0;
}

.code-block {
    background-color: #e9f2ff;
    border-left: 5px solid #007bff;
    padding: 40px 15px 15px 15px;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.1em;
    white-space: pre-wrap;
    overflow-x: auto;
    transition: background-color 0.3s; /* Transition for smooth flash effect */
}

/* Style for the green flash effect */
.copied-flash {
    background-color: #d4edda !important; /* Greenish background for flash */
    border-color: #008000 !important; /* Darker green border */
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #0056b3;
}

/* Small Text Block (Software Info) */
.small-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 25px;
    padding: 15px; 
    background-color: #f9f9f9;
    border-radius: 4px;
}
.small-text strong {
    color: #333; 
    font-weight: 700;
}


/* Disclaimer Styling */
.disclaimer {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #ffcc00; 
    background-color: #fffde7; 
    border-radius: 4px;
    font-size: 0.9em;
    color: #8a6d3b;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e6eb;
    font-size: 0.85em;
    color: #777;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
