/* Import Google Font: Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #202124;
}

/* Header and Logo */
.header {
    text-align: center;
    margin: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #1a0dab;
    transition: color 0.3s;
}

.logo:hover {
    color: #2c5bb8;
}

/* Index Page Styles */
.index-container {
    text-align: center; /* Center the text */
    height: calc(100vh - 40px); /* Full height minus header */
    padding: 20px;
}

h1 {
    font-size: 36px; /* Increased for emphasis */
    font-weight: 700; /* Bold for better visibility */
    margin-bottom: 10px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Search Form Styles */
.search-form-container {
    width: 50%;
    max-width: 600px;
    margin: 0 auto; /* Center the form container */
}

.search-bar {
    position: relative; /* Set position to relative for child positioning */
    width: 100%; /* Full width for search bar */
}

.search-input {
    width: 100%; /* Full width for input */
    padding: 10px; /* Add right padding for the icon */
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.search-icon {
    position: absolute; /* Position the icon absolutely */
    right: 0; /* Align it to the right inside the input */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    font-size: 20px; /* Adjust size for visibility */
    color: #1a73e8; /* Color to match the theme */
    cursor: pointer; /* Change cursor to pointer for interactivity */
}

/* Search Results Page Styles */
.search-results-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Result Item Styles */
.result-item {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff; /* Background for results */
}

.result-item h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.result-item h2 a {
    color: #1a0dab;
    text-decoration: none;
}

.result-item h2 a:hover {
    text-decoration: underline;
}

.result-item .url {
    font-size: 14px;
    color: #006621;
    margin: 0;
}

.result-item .description {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.58;
    margin: 0;
}

/* Pagination Styles */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #1a73e8;
    transition: background-color 0.3s;
}

.pagination a.active {
    font-weight: bold;
    background-color: #1a73e8;
    color: white;
    border: none;
}

.pagination a:hover {
    background-color: #1558b0;
    color: white;
}