/* Simple Anime Subtitle Website CSS */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6, #title-box {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 600;
}

h1, #title-box {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #3498db;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

#title-sub {
  font-size: 1.1rem;
}

/* Code blocks */
pre, code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.4;
}

code {
  padding: 0.2rem 0.4rem;
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 15px;
    max-width: 100%;
  }
  
  h1, #title-box {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  pre {
    max-width: 100%;
    overflow-x: auto;
    font-size: 0.9rem;
  }
  
  code {
    word-break: break-word;
  }
  
  ul, ol {
    margin-left: 1.2rem;
  }

  #title-sub {
    font-size: 1rem;
  }
}

/* Small phone adjustments */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }
  
  h1, #title-box {
    font-size: 1.5rem;
    padding-bottom: 0.7rem;
  }
  
  pre {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
}
