/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container for the main content */
.container {
    max-width: 960px;
    width: 100%;
    text-align: center;
}

/* Header Styles */
header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #7f8c8d;
}

/* Main Content Layout */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Card Styles */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px_12px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 1.5em;
    color: #34495e;
    margin-bottom: 15px;
}

.card p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* Button Styles */
.button {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.button:hover {
    background-color: #2980b9;
}

/* Footer Styles */
footer {
    margin-top: 40px;
    color: #95a5a6;
}

/* Fact Checker Overlay Styles */
.fact-checker-overlay-content {
  background-color: rgba(255, 255, 255, 0.95);
  color: #c0392b;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  pointer-events: auto;
  margin: 0;
  max-height: 70vh;
  overflow-y: auto;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
}

.fact-checker-close-x {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.fact-checker-close-x:hover {
  color: #333;
}

.fact-checker-overlay-content a {
  color: #2980b9;
  text-decoration: underline;
}

.fact-checker-overlay-content a:hover {
  color: #1f618d;
}

.fact-checker-highlight {
  background-color: rgba(231, 76, 60, 0.1);
  cursor: help;
}

/* Styles for specific page elements */
.dynamic-content-box {
    background-color: #f4f7f6;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    min-height: 50px;
}

.instructions-list {
    text-align: left;
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 10px;
}

.important-note {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.code-block {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
    margin: 20px 0;
}

.small-text {
    font-size: 0.9em;
    color: #7f8c8d;
}
