body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    background: url('background1.jpg') no-repeat center center fixed;
    background-size: cover;
    animation: backgroundChange 60s infinite;
}

/* Header with Connect link */
.header {
    position: absolute;
    top: 20px;
    right: 20px;
}

.connect-link {
    color: rgb(230, 173, 53);
    text-decoration: none;
    font-size: 1.3em;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Styling for the search container */
.search-container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    width: 90%;
    margin: 100px auto;
}

/* Add typewriter effect for the h1 text */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: orange; }
}

.typewriter {
    display: inline-block;
    border-right: 3px solid orange;
    white-space: nowrap;
    overflow: hidden;
    font-size: 1.5em;
    animation: typing 5s steps(40, end), blink-caret .75s step-end infinite; /* Increased duration */
    width: 100%;
}

/* Styling for the translucent background of the results */
.results-container {
    position: relative;
    z-index: 1;
    max-width: 650px;
    max-height: 400px; 
    margin: 20px auto; /* Adjusted margin to move it up */
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

/* Styling the text inside the results */
.results pre {
    color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.12em;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    text-align: left;
}

/* Styling the form inputs */
form input[type="text"] {
    font-size: 1.2em;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    width: 80%; 
}

form input[type="submit"].search-btn {
    font-size: 1.4em;
    padding: 12px 30px;
    border-radius: 15px;
    background-color: #ff8c00;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for the search button */
form input[type="submit"].search-btn:hover {
    background-color: #e57e00;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Styling for the connect page */
.connect-container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    margin-top: 5px;
    margin-right: 2px;
}

/* Styling for the contact links */
.contact-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.linkedin-link, .email-link {
    color: orange;
    text-decoration: none;
    font-size: 1.4em;
    margin-left: 15px;
}

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

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .search-container {
        width: 95%; 
        margin-top: 50px; 
    }

    .typewriter {
        font-size: 1.5em; 
        animation: typing 4s steps(30, end), blink-caret .75s step-end infinite; /* Adjust timing */
    }

    .results pre {
        font-size: 1em; 
    }
}
