@font-face {
  font-family: 'RIDIBatang';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/RIDIBatang.woff') format('woff');
  font-display: swap;
  /* Improve font loading performance */
}

:root {
  --primary-color: #2a2a2a;
  --secondary-color: #444;
  --background-color: #fdf6e3;
  --accent-color: #ff6b35;
  /* Vibrant summer orange */
  --highlight-color: #ffa726;
  /* Summer amber */
  --light-pink: #ffab91;
  /* Warm coral */
  --light-yellow: #fff176;
  /* Bright summer sun */
  --light-blue: #42a5f5;
  /* Deep summer sky */
}

body {
  font-family: 'RIDIBatang', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Subtle summer background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 171, 145, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 241, 118, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(66, 165, 245, 0.1) 0%, transparent 50%);
  background-size: 500px 500px, 300px 300px, 400px 400px;
  background-position: 0 0, 100px 100px, 200px 200px;
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

#heading {
  font-size: 3rem;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 2px;
}

.season-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--accent-color);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-section {
  text-align: center;
  margin-bottom: 3rem;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

#query {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--highlight-color);
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.search_bar {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 25px;
  width: 250px;
  max-width: calc(100% - 120px);
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search_bar:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(230, 126, 115, 0.2);
}

.search_button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search_button:hover {
  background-color: var(--highlight-color);
}

.options-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.option_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: white;
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.option_button span:first-child {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.option_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.articles {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.article_head {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

.article-peek {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--highlight-color);
}

.article-peek a {
  text-decoration: none;
  color: var(--primary-color);
}

.article-peek .title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--highlight-color);
}

@media (max-width: 480px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search_bar {
    width: 100%;
    max-width: none;
  }

  .search_button {
    width: 100%;
    padding: 0.75rem 0;
  }
}

.today-word {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  text-align: center;
}

.today-word h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.today-word a {
  color: var(--accent-color);
  font-size: 1.5rem;
  background-color: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.today-word a:hover {
  background-color: var(--accent-color);
  color: white;
}

.recent-searches {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-searches-header {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.recent-searches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recent-search-item {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: #f0f0f0;
  border-radius: 15px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.recent-search-item:hover {
  background-color: #e0e0e0;
}