@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    min-width: 765px; /*min screen size*/
}

:root {
    --primary-color: #f4a12b;
    --background-color: #ffffff;
    --light-color: #181818;
    --box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
}

*{
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 5.5rem;
}

header {
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    box-shadow: var(--box-shadow);
    width: 100vw;
    height: 10vh;
}

header .logo {
  display: flex;
  min-width: 18rem;
  padding-right: 1rem;
  margin-left: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: black;
}

header .logo i{
    color: var(--primary-color);
}

/* Your existing styles */

header .icons {
  display: flex;
  align-items: center;
}

header .icons i {
  margin: 0 1rem; /* Add margin for spacing */
  height: 4.5rem;
  line-height: 4.5rem;
  width: 4.5rem;
  text-align: center;
  font-size: 1.7rem;
  color: #fff;
  border-radius: 50%;
  background: var(--primary-color);
}

/**SEARCH BOX**/

.search {
  float:none;
  width: 200px;
  height: 34px;
  margin-left: 1.5rem;
  padding: 1rem;
}

.search input {
  outline: none;
  float: left;
  width: 200px;
  height: 34px;
  border: 1px solid #f6f7f8;
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background-color: #f6f7f8;
  color: #757575;
  font-size: 14px;
  padding-left: 18px;
}

.search button {
  float: none;
  width: 50px;
  height: 36px;
  border: 0;
  border-radius: 0 16px 16px 0;
}

/* Default styles for the search container (visible in the header on larger screens) */
.search-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Styles for the search bar in the navbar on smaller screens (hidden by default) */
@media (max-width: 680px) {
  .search-container {
    display: none; /* Hide the search container on smaller screens */
  }
}

.search-container input[type="text"] {
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  outline: none;
  width: 30vw;
  height: 5vh;
  min-height: 5vh;
  text-decoration: underline;
}

.search-container input[type="text"]:hover { /*Box shadow upon hover*/
  box-shadow: -4px 5px 5px 2px gray;
}

.search-container input[type="text"]:focus { /*Box shadow upon foucs*/
  box-shadow: -4px 5px 5px 2px gray;
}

/* Styles for the mobile navigation menu */


header .fas.fa-bars {
    display: none; /* Initially hidden on larger screens */
    cursor: pointer;
}

header .navbar a{
    font-size: 1.7rem;
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    color: #000000;
}

header .navbar a.active,
header .navbar a:hover{
    color: #fff;
    background: var(--primary-color);
}

header .fas.fa-bars,
.fa-solid.fa-magnifying-glass, 
header .icons i,
header .icons a{
    cursor: pointer;
    margin-left: .5rem;
    height: 4.5rem;
    line-height: 4.5rem;
    width: 4.5rem;
    text-align: center;
    font-size: 1.7rem;
    color: #fff;
    border-radius: 50%;
    background: var(--primary-color);
}

header .fas.fa-bars:hover,
.fa-solid.fa-magnifying-glass:hover,
header .icons i:hover,
header .icons a:hover{
    color: white;
    background: #333333;
    transform: rotate(360deg);
}

/* Styles for the mobile navigation menu */
@media (max-width: 1120px) {
  header .navbar {
    display: none; /* Hide the navbar initially on smaller screens */
  }

  header .icons i {
    margin: 0 0.5rem; /* Reduce margin for closer spacing */
}

  header .navbar.active {
    display: block; /* Show the menu when the active class is applied */
    position: absolute;
    top: 10vh;
    right: 0;
    background: #f4a12b; /* Use your variable for the background color */
    width: 100%;
    padding: 1rem;
    z-index: 9999;
  }

  header .navbar a {
    display: block;
    padding: 1rem;
    margin: 0.5rem;
    font-size: 1.7rem;
    color: black;
    background: #f4a12b;
    border-radius: 0.5rem;
  }

  header .navbar a.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    display: inline-block;
  }

  header .fas.fa-bars {
    display: inline-block; /* Display the menu toggle button */
}
}
