/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4; /* Light gray */
    color: #333; /* Dark gray text */
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    background: #333; /* Dark gray background */
    color: #fff; /* White text */
    padding: 0.5rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form {
   padding-left: 15rem;
	padding-right: 6rem;
	padding-top:0rem;
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    transition: all 0.3s ease;
}

form input[type="text"] {
    flex-grow: 1; /* Makes the input box stretch to fill available space */
    padding: 8px;
    font-size: 1rem;
}

/* Search Bar Container */
.search-container {
	padding-left: 15rem;
	padding-right: 6rem;
	padding-top:0rem;
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    transition: all 0.3s ease;
}

/* Search Bar */
#search-bar {
	
	display: flex; /* Hide the search bar by default */
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    min-width: 150px;
    transition: width 0.3s ease, border-color 0.3s;
}

#search-bar:focus {
    outline: none;
    border-color: #555;
}


/* Search Button */
#search-button {
	padding: 6rem 5rem;
    border: none;
    border-radius: 6px;
	padding-left: 15rem;
    background: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    padding: 0.5rem;
	transition: background-color 0.3s;
	width: 60px;
	height: 36px;
	padding: 0rem 1rem;
}

#search-button:hover {
	background-color: #555; /* Slightly lighter gray */
}

/* Font Awesome Search Icon */
.fas.fa-search {
    font-size: 1.5rem;
}

/* Mobile-Responsive Adjustments */
@media screen and (max-width: 550px) {
	
    #search-bar {
        display: none;
    }
	
	#search-button {
    display: flex; /* Hide the search bar by default */
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    min-width: 1px;
    transition: width 0.3s ease, border-color 0.3s;
	position: relative;
	align-items: right;
	justify-content: right;
}

}

@media screen and (max-width: 360px) {
  .search-container {
	display: none;
}

}

/* Header Logo and Title */
.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block; /* Ensures the link surrounds the logo image */
    cursor: pointer; /* Changes the cursor to indicate the logo is clickable */
	z-index: 1000;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 10px; /* Rounded corners */
}

.title {
    font-size: 1.7rem;
    font-weight: bold;
    padding-left: 0.5rem;
	color: white;
	text-decoration: none;
	z-index: 1000;
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
}

.hamburger {
	
    display: flex;
	flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1100; /* Ensure hamburger stays on top of the menu */
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

/* Hamburger Icon Animation */
.hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu Styles */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
	flex-direction: row;
    gap: 4rem; /* Adjusted spacing for menu items */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 4rem; /* Increased font size */
}

nav ul li a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 760px) {
	
	nav ul {
	flex-direction: column;
	}
}

/* Menu Styles */
#nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* Ensuring it takes up full height of screen */
    width: 100vw;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    background: #333; /* Dark background for menu */
    z-index: 1000; /* Keep the menu behind the hamburger icon */
}

#nav-menu.show {
    display: flex;
    transform: translateY(0);
}

/* Main Content */
main {
    padding: 2rem;
    margin-top: 80px; /* Ensure space for fixed header */
}

.result {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: #fff; /* White background for content */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result a {
    color: black; /* Link color */
    text-decoration: undeline; /* Remove underline */
    font-size: 18px; /* Adjust title size */
}

/* Section Styles */
section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff; /* White background for content */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#results {
	padding: 0rem;
    background-color: #f4f4f4;
    border: none;
    border-radius: 0px;
    box-shadow: none;
}
	
h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Button Styles */
.button-container {
    display: flex;
    gap: 1rem;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #333; /* Dark gray */
    color: #fff; /* White text */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #555; /* Slightly lighter gray */
}

/* Footer Styles */
footer {
    text-align: center;
    background: #333; /* Dark gray */
    color: #fff; /* White text */
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}
