/* Base styles */
:root {
  --background: #ffffff;
  --text: #000000;
  --border: #000000;
}

/* Dark mode styles */
.dark {
  --background: #333333;
  --text: #ffffff;
  --border: #ffffff;
}

body {
  background-color: var(--background);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--background);
    z-index: 100;
    
}

header h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text);
}

/* Button styles */
.btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

/* Main content styles */
main {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--background);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.button {
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.button:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.button:active {
    transform: scale(0.95);
}

.text-center {
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text);
}

.content {
    max-width: 600px;
    margin: 2rem auto;
    line-height: 1.6;
}

.content p {
    margin-bottom: 1rem;
}

/* Base responsive styles */
.code-search-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* Media queries for different screen sizes */
  @media screen and (max-width: 768px) {
    .code-search-container {
      padding: 0 10px;
    }
    
    .search-results {
      grid-template-columns: 1fr;
    }
  }
  
  @media screen and (min-width: 769px) and (max-width: 1024px) {
    .search-results {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media screen and (min-width: 1025px) {
    .search-results {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  html {
    font-size: 16px;
  }
  
  @media screen and (max-width: 768px) {
    html {
      font-size: 14px;
    }
  }
  
  .search-title {
    font-size: 1.5rem;
  }
  
  .search-description {
    font-size: 1rem;
  }
  