/* Import a movie-style hacking font */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --primary-color: #357ab8;
  --secondary-color: #357ab8;
  --accent-color: #357ab8;
  --dark-color: #333;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --font-family: 'VT323', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--light-bg);
  color: var(--dark-color);
  line-height: 1.6;
}

/* Header: Bold, wide, full-width text */
header {
  background: #000;
  padding: 1rem;
}
header h1 {
  margin: 0;
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-color);
  letter-spacing: 0.3em;
}

/* Container */
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Converter container: two equal columns */
.converter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.converter-container .card {
  flex: 1 1 45%;
}

/* Converter card styling */
.card.converter {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Textareas & Buttons */
textarea {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: var(--secondary-color);
}

/* Articles section */
.articles {
  margin-bottom: 2rem;
}
.articles h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--primary-color);
}
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.article-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  flex: 1 1 300px;
  max-width: 300px;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.article-card:hover {
  background-color: #f2f2f2;
}
.article-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.article-card p {
  font-size: 1rem;
  color: var(--dark-color);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--white);
  text-align: center;
  padding: 1rem 2rem;
  margin-top: 2rem;
}
