/* factory reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: poppins;
  list-style: none;
}

body {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* toggle class */

.hide {
  display: none;
}

.close {
  display: none;
}

/* heading style  */
header {
  padding: 1rem;
  box-shadow: 0px 2px 10px rgba(128, 128, 128, 0.178);
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.one {
  flex: 0.8;
}

.btn1 {
  background-color: inherit;
  border: none;
  appearance: none;
  color: inherit;
  cursor: pointer;
}

/* Dark mode  */
body.active {
  background-color: #1f2d36;
  color: white;
}

.dark-mode {
  cursor: pointer;
}

.dropdown.active-link {
  background-color: rgb(28, 46, 46);
}

.card.active-link {
  background-color: white;
}

/* main body input */
.search-sector {
  padding: 2rem;
}

.search-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

input {
  width: 25rem;
  min-height: 3rem;
  border-radius: 6px;
  border: none;
  box-shadow: 2px 2px 10px rgba(128, 128, 128, 0.178);
}

input:placeholder-shown {
  padding: 1rem;
  font-family: poppins;
}

.two {
  flex: 0.8;
}

#back-btn {
  width: 7rem;
  min-height: 2rem;
  border-radius: 6px;
  margin-inline-start: 2rem;
  border: none;
  box-shadow: 2px 2px 10px rgba(128, 128, 128, 0.178);
  background-color: inherit;
  color: inherit;
  cursor: pointer;
}

/* main section dropdown */
/* OLD style for dropdown, it works but functionality doesn't */

/*.selection ul {
  list-style: none;
}

.selection ul li div {
  width: 15rem;
  min-height: 3rem;
  border-radius: 6px;
  box-shadow: 2px 2px 10px rgba(128, 128, 128, 0.178);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.selection ul li {
  display: inline-block;
  position: relative;
}

.selection ul li button {
  display: block;
  border: none;
  padding: 5px 0px 5px 25px;
  color: black;
  text-decoration: none;
  text-align: start;
  font-weight: 900px;
  font-size: medium;
}

.selection ul li ul.dropdown li {
  display: block;
}

.selection ul li ul.dropdown {
  width: 100%;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  background: white;
  box-shadow: 2px 0px 10px rgba(128, 128, 128, 0.178);
  position: absolute;
  z-index: 999;
  display: none;
}

.selection ul li button:hover {
  box-shadow: 2px 0px 10px rgba(128, 128, 128, 0.178);
  width: 20rem;
  cursor: pointer;
}

.selection ul li button {
  border: none;
  background-color: #fff;
}

.selection ul li:hover ul.dropdown {
  display: block;
}*/

/* select drop section */

#regions {
  appearance: none;
  border: none;
  outline: none;
  width: 15rem;
  min-height: 3rem;
  padding-inline: 2rem;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  background-color: white;
  box-shadow: 2px 0px 10px rgba(128, 128, 128, 0.178);
  cursor: pointer;
}

/* main section content */
.gird-container {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: start;
  padding: 0 6.6rem;
  gap: 7rem;
}

.card {
  border-radius: 5px;
  box-shadow: 2px 0px 10px rgba(128, 128, 128, 0.178);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  cursor: pointer;
  transform: scale(105%);
 
}

.img1 {
  width: 16.5rem;
  height: 14.5rem;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

.card ul {
  padding: 1rem;
  margin-bottom: 2rem;
}

.card h3 {
  font-size: clamp();
  padding-top: 1.5rem;
  padding-left: 1rem;
}

/* dedicated page main content */
.img2 {
  width: 35rem;
  
}

.card2 {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.info-card {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.card2 div div {
  padding-top: 1.5em;
}

.info-card ul li {
  padding: 0.2rem;
  font-size: medium;
}

.info-name {
  font-weight: bolder;
  padding-top: 4rem;
}

.countries-border {
  display: flex;
  align-items: center;
}

.border-countries {
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
}

.border-btn {
  width: 5rem;
  border: none;
  background-color: inherit;
  color: inherit;
  box-shadow: 2px 0px 10px rgba(128, 128, 128, 0.178);
  cursor: pointer;
}

@media screen and (max-width: 44rem) {

  /* search section */
  .search-container {
    display: flex;
    justify-content: start;
  }

  #back-btn {
    margin-inline-start: 0rem;
  }

  /* dropdown  */

  #regions {
    margin-top: 3rem;
  }

  /* main content  */

  .gird-container {
    display: grid;
    grid-template-columns: 1fr;
    place-items: start;
    padding: 0 2rem;
  }

  .img1 {
    width: 25rem;
  }

  .img2 {
    width: 25.5rem;
  }

  .all-parent {
    padding-left: 2.3rem;
  }
}

@media screen and (max-width: 412px) {
  h1 {
    font-size: 1rem;
  }

  input {
    width: 18rem;
    min-height: 4rem;
    border-radius: 6px;
    border: none;
    box-shadow: 2px 2px 10px rgba(128, 128, 128, 0.178);
  }

  #back-btn {
    margin-inline-start: 0rem;
  }

  .selection ul li div {
    min-height: 4rem;
  }

  .img1 {
    width: 18rem;
  }

  .img2 {
    width: 20rem;
    height: 14.5rem;
  }
}



