@import url('./_public-global.css');

#main {
  text-align: center;
  margin: auto;
}

#container {
  display: flex;
  flex-wrap: wrap;
  margin-left: 3%;
  margin-top: 1rem;
}

#searchbtn {
  width: 100%;
  height: 1rem;
  margin-left: 1vw;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 3%;
}

.toggle-btn {
  display: none;
  background: none;
  border: none;
}

.nav-searchbar {
  width: 38vw;
  display: flex;
  align-items: center;
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
  border: 1px solid var(--shadow-color);
  box-shadow: 0 0 10px var(--shadow-color);
  padding: 0.5rem;
}

.nav-searchbar > i {
  font-size: 1.5vw;
  color: #777;
}

.nav-searchbar > input {
  border: none;
  outline: none;
  background-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links button {
  width: 4.6rem;
  height: 2.3rem;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
}

#icon {
  text-transform: uppercase;
  color: var(--accent-color);
  font-size: 1.4rem;
  font-weight: 900;
}

#footercontainer {
  margin-top: auto;
  padding: 1rem;
  height: 6rem;
  background-color: var(--bg-color);
  border: 1px solid var(--shadow-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

#footercontainer a {
  color: var(--font-color);
  text-decoration: none;
}

#copyrighttxt {
  float: right;
  font-size: 0.8rem;
  margin-right: 2vw;
  color: var(--font-color);
}

.card {
  width: 20rem;
  height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--border-radius);
  box-shadow: 0.1rem 0.1rem 0.4rem #b4b4b4;
  margin: 1rem;
}

.card img {
  width: 100%;
  height: 40%;
  background-color: var(--accent-color);
  border-radius: var(--border-radius);
}

.card div {
  display: flex;
  align-items: center;
  background-color: rgb(18, 80, 143);
  border-radius: var(--border-radius);
}

.dropdown-menu {
  position: absolute;
  right: 0.6rem;
  width: 20vw;
  height: 11rem;
  top: 50px;
  z-index: 1;
  display: none;
  background-color: rgb(21, 184, 196);
}

.dropdown-menu button {
  width: 4.6rem;
  height: 2.3rem;
  margin-top: 0.6rem;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
}

@media screen and (max-width: 800px) {
  .nav-searchbar {
    width: 60%;
  }

  .nav-searchbar i {
    font-size: 3vw;
  }

  .toggle-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  #container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 14rem;
    height: 14rem;
  }
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
  z-index: 9999;
}

#loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  border: 0.3rem solid #f3f3f3;
  border-top: 0.3rem solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
