/* Reset and base styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
}

/* Navigation bar */
nav {
  background: #222;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  position: relative;
  display: inline-block;
}

nav ul li a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 20px;
  display: block;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #c4c7cb;
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Header section (home page) */
header {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

#home {
  background-image: url("/images/Yamaha R1M.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 95vh;
  min-width: 177vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#product {
  background-image: url("/images/motogp-ktm.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  min-width: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Button */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #ff0000;
  color: #ebebeb;
  text-decoration: none;
  border-radius: 5px;
}

/* Product grid */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-items: center;
  align-content: center;
  /* max-width: 75%; */
  margin: 10px;
  padding: 10px;
  /* display: grid;
  grid-template-columns: 250px 250px 250px;
  grid-template-rows: 1fr 1fr;

  justify-content: space-around;
  gap: 1rem;
  padding: 2rem; */
}

.product {
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.product img {
  max-width: 100%;
  border-radius: 4px;
}


/* Page sections */
section {
  padding: 2rem;
  /* max-width: 800px; */
  margin: auto;
}

/* Contact form */
form input,
form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

form button {
  background: #e91e63;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
nav {
  position: relative; /* allows absolute positioning inside */
}

.search-bar {
  position: absolute;
  top: 10px;
  right: 20px;
}

.search-bar input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-bar button {
  padding: 5px 10px;
  margin-left: 5px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #555;
}