/* Public css style */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
  font-size: 18px;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
}

/* hero image section */
.hero-public {
  position: relative;
  width: 100%;
  height: 20vw;
}

.hero-public img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-public h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 3vw;
}

/* error page style */
.errorpage {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2vw;
}


.error-hero {
  position: relative;
  width: 30vw;
  height: 30vw;
  /* margin: 0 auto; */
}

.error-hero img {
  width: 100%;
  height: 100%;
  border-radius: 15vw;
  object-fit: cover;
}

/* font style */
h1 {
  font-size: 2rem;
  text-align: center;
  margin: 0;
}

h2 {
  font-size: 1.6rem;
  text-align: center;
  margin: 0;
}

h3 {
  font-size: 1.2rem;
  margin: 0;
}

p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  margin: 0;
}

a {
  text-decoration: none;
  padding: 0;
  margin: 0;
}


a:hover {
  filter: brightness(120%);
}

.text-bold {
  font-weight: 700;
}

/* reset list style */
ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* reset input style */
input {
  border: none;
  outline: none;
}

/* reset form style */
form {
  display: flex;
  flex-direction: column;
}

/* button style */
button {
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

/* header section */
.navbar {
  padding: 10px 2vw;

}

.navbar a:hover {
  color: #5DC3F3;
}

.logo {
  width: 6vw;
  height: 6vw;
}

.logo img {
  width: 100%;
  height: 100%;
}

.active {
  color: #5DC3F3 !important;
}

/* account */
.account {
  display: flex;
  gap: 1vw;
}

.username {
  background-color: transparent;
  font-size: 1.2rem;
  color: #5DC3F3;
}

/* footer section */
footer {
  padding-bottom: 2vw;
  background-color: #5DC3F3;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 4vw;
}


.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 4vw;
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
}

.footer-items {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}

.media {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}

.media ul {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}

.social-media {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  margin-top: 1vw;
}

.social-media img {
  width: 1.5vw;
  height: 1.5vw;
}


/* >>>>>>>>>>> password section >>>>>>>>>>>> */

.passwordInput {
  position: relative;
}

.passwordInput i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* >>>>>>>>>>> search bar section >>>>>>>>>>>> */
.search {
  align-self: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 40vw;
  border: 1px solid #ccc;
  border-radius: 5px;

}

.search input {
  width: 100%;
  padding: 0.8vw 1vw;
  background-color: transparent;
  font-size: 0.8rem;
}

.search button {
  background-color: transparent;
  color: #ccc;
  font-size: 1.4vw;
  padding-right: 1vw;
}


/* >>>>>>>>>>> pagination section >>>>>>>>>>>> */
.pages {
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin-top: 2vw;
}

.pages a {
  color: #4D869C;
}

.pages a:hover {
  color: #7AB2B2;
}

.pages .pageActive {
  background-color: #C5E7EF;
  border: 1px solid #C5E7EF;
}

/* >>>>>>>>>>>>>>> other common>>>>>>>>>>>>>>>>>>>> */
.error {
  color: red;
  font-size: 0.8em;
}

.required-label::after {
  content: '*';
  color: red;
  margin-left: 5px;
}


.option {
  text-align: center;
  text-decoration: underline;
  color: #aaa;
  margin-top: 10px;
}

.message {
  text-align: center;
  color: #5DC3F3;
  margin-top: 10px;
}

.message p {
  margin: 10px 0;
}

input:read-only {
  background-color: #f3f3f3;
  color: #686868;
}

/* address page */
.address-form {
  margin: 2vw 0;
}

.address-submit button {
  padding: 10px 60px;
}

/* >>>>>>>>>>>>>>> resposive design >>>>>>>>>>>>>>>>>>>> */
@media screen and (max-width: 768px) {

  h1 {
    font-size: 24px;
  }

  h2,
  h3,
  h4,
  h5 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }

  li {
    font-size: 16px;
  }

  a {
    font-size: 16px;
  }

  .logo {
    width: 10vw;
    height: 10vw;
  }

  .logo img {
    width: 100%;
    height: 100%;
  }

  .footer-links {
    display: none;
  }

  .social-media img {
    width: 3vw;
    height: 3vw;
  }


  .search {
    width: 80vw;
    margin-bottom: 30px;
  }

  .search input {
    width: 100%;
    padding: 2vw;
  }

  .search button {
    font-size: 2vw;
    padding-right: 2vw;
  }

  .copyright p,
  .media ul li {
    font-size: 0.8rem;
  }
}