@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');

* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
}

body {
  background: #f2f2f2;
  max-width: 100%;
  overflow-y: auto;
  font-family: 'Montserrat', sans-serif;
}

nav {
  background: #000000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 100px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

nav .logo {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}

nav .nav-items {
  display: flex;
  flex: 1;
  padding: 0 0 0 40px;
}

nav .nav-items li {
  list-style: none;
  padding: 0 15px;
}

nav .nav-items li a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

nav .nav-items li a:hover {
  color: #ff3d00;
}

nav form {
  display: flex;
  height: 40px;
  padding: 2px;
  background: #ffffff;
  min-width: 18% !important;
  border-radius: 2px;
  border: 1px solid rgba(155, 155, 155, 0.2);
}

nav form .search-data {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  color: #000;
  font-size: 17px;
  border: none;
  font-weight: 500;
  background: none;
}

nav form button {
  padding: 0 15px;
  color: #fff;
  font-size: 17px;
  background: #000;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

nav form button:hover {
  background: #e63600;
}

nav .menu-icon,
nav .cancel-icon,
nav .search-icon {
	/* Add a higher z-index value */
      z-index: 999;
  width: 40px;
  text-align: center;
  margin: 0 50px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  display: none;
}

nav .menu-icon span,
nav .cancel-icon,
nav .search-icon {
  display: none;
}

@media (max-width: 1545px) {
  nav {
    padding: 0 50px;
  }
}

@media (max-width: 1440px) {
  nav {
    padding: 0px;
  }
  nav .logo {
    flex: 2;
    text-align: center;
  }
  nav .nav-items {
    position: fixed;
    z-index: 99;
    top: 70px;
    width: 100%;
    left: -100%;
    height: 100%;
    padding: 10px 50px 0 50px;
    text-align: center;
    background: #14181f;
    display: inline-block;
    transition: left 0.3s ease;
  }
  nav .nav-items.active {
    left: 0px;
  }
  nav .nav-items li {
    line-height: 40px;
    margin: 30px 0;
  }
  nav .nav-items li a {
    font-size: 20px;
  }
  nav form {
    position: absolute;
    top: 80px;
    right: 50px;
    opacity: 0;
    pointer-events: none;
    transition: top 0.3s ease, opacity 0.1s ease;
  }
  nav form.active {
    top: 95px;
    opacity: 1;
    pointer-events: auto;
  }
  nav form:before {
    position: absolute;
    content: "";
    top: -13px;
    right: 0px;
    width: 0;
    height: 0;
    z-index: -1;
    border: 10px solid transparent;
    border-bottom-color: #1e232b;
    margin: -20px 0 0;
  }
  nav form:after {
    position: absolute;
    content: '';
    height: 60px;
    padding: 2px;
    background: #1e232b;
    border-radius: 2px;
    min-width: calc(100% + 20px);
    z-index: -2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  nav .menu-icon {
    display: block;
  }
  nav .search-icon,
  nav .menu-icon span {
    display: block;
  }
  nav .menu-icon span.hide,
  nav .search-icon.hide {
    display: none;
  }
  nav .cancel-icon.show {
    display: block;
  }
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.content header,
.content .text {
  font-size: 30px;
  font-weight: 700;
}

.content .space {
  margin: 10px 0;
}

nav .logo.space {
  color: red;
  padding-right: 5px;
}

@media (max-width: 980px) {
  nav .menu-icon,
  nav .cancel-icon,
  nav .search-icon {
    margin: 0 20px;
  }
  nav form {
    right: 30px;
  }
}

@media (max-width: 350px) {
  nav .menu-icon,
  nav .cancel-icon,
  nav .search-icon {
    margin: 0 10px;
    font-size: 16px;
  }
}

/* Dropdown Button */
.dropdown .dropbtn {   
  border: none;
  cursor: pointer;
	color: #ffffff;
	font-size: 18px;
  font-weight: 500;
}

/* Dropdown button on hover & focus */
.dropdown:hover .dropbtn {
  background-color: #ddd;
}

/* The container div - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {	
  display: none;
  position: absolute;
  background-color: #3b3b3b;
  min-width: 195px;	
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #000;
  padding: 6px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

@media screen and (max-width: 767px) {
  /* Adjust the padding for mobile devices */
  .dropdown {
     position: static;
  }

  .dropdown-content {
     display: none;
     position: fixed;
     background-color: #3b3b3b;
     min-width: 195px;
     box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
     z-index: 1;
     left: 50%;
     top: 175px; /* Adjust the top value to avoid overlapping. This value may vary according to your layout. */
     transform: translate(-50%, 0);
     max-height: 70vh;
     overflow-y: auto;
  }

  .dropdown-content a {
     color: #000;
     padding: 1.25px 10px; /* Further reduced top and bottom padding from 2.5px to 1.25px */
     text-decoration: none;
     display: block;
  }

  /* Show the dropdown menu on click */
  .dropdown.active .dropdown-content {
     display: block;
  }

  /* Hide the caret icon for mobile devices */
  .dropdown.active .dropbtn::after {
     display: none;
  }
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #3b3b3b;
  min-width: 195px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}




/* Set background color, text color, and padding for footer */
.footer {
  background-color: #454444;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer a {
  color: white;
}

@media only screen and (max-width: 600px) {
  .footer {
    padding: 10px;
    font-size: 14px;
  }
}


/* This styles the overlay */
.overlay {
  position: fixed; /* Fixed position */
  top: 0;
  left: 0;
  width: 100%; /* Width and height */
  height: 100%;
  z-index: 1; /* Sit on top of everything else on the page */
  background-color: rgba(0,0,0,0.5); /* Black background with 0.5 opacity */
  display: none; /* By default, the overlay is hidden */
}

/* This styles the overlay content */
.overlay-content {
  position: relative;
  width: 80%; /* Reduce width to allow some margin on smaller screens */
  max-width: 600px; /* Set a max-width for larger screens */
  height: auto; /* Make height automatic to accommodate content */
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px; /* Some padding */
  border-radius: 10px; /* Round corners */
  background-color: white;
  text-align: center; /* Center text on mobile */
}

/* This styles the close button */
.close {
  position: absolute;
  top: 0px;
  right: 20px;
  font-size: 30px;
  color: black;
  cursor: pointer;
  font-weight: bold; /* Make the "X" bold */
  background-color: white; /* Give the "X" a white background */
  padding: 0 5px; /* Add some padding around the "X" */
}

/* This styles the close text */
.close-text {
  display: block; /* Display text below "X" on mobile */
  font-size: 14px; /* Reduced font size */
  color: red; /* Change color */
  font-family: Arial; /* Set font to Arial */
}

@media (min-width: 600px) {
  /* This applies when the viewport is 600 pixels wide or wider */
  .close-text {
    display: inline; /* Display text next to "X" on wider screens */
  }
}

	
/* This styles the content behind the overlay */
.content {
  position: relative;
  z-index: 0; /* Sit underneath the overlay */
}

/* Footer_join CSS */
.footer_join {
  display: block;
  margin: auto;
  width: auto;
  border: 0px;
  text-align: center;
  vertical-align: middle;
  color: #918f8f;
  font-size: 12px;
  background-image: linear-gradient(to bottom, transparent 22px, #ffffff 22px);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

