/* body */

body {
  background-color: #060818;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 15vh; /* This will make the div take up the full height of the viewport. Adjust as needed. */
}

.header img {
  width: 20%; /* Adjust this to make the image bigger or smaller. */
  height: auto; /* This will maintain the aspect ratio of the image. */
}

/* MENU */
.menu > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  font-family: "Roboto", sans-serif; /* Use the imported font */
  background-color: #0e1726; /* Change the background color */
}

.menu ul li a {
  display: block;
  padding: 15px 20px; /* Add some padding */
  text-decoration: none;
  color: #fff; /* Change the text color */
}

/* Hover effect */
.menu ul li a:hover {
  background-color: #0dbaff; /* Change the background color on hover */
}

/* Dropdown Menu */
.menu .dropdown-menu {
  list-style-type: none;
  display: none;
  position: absolute;
  background-color: #0e1726;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.menu .dropdown:hover .dropdown-menu {
  display: block;
}

.menu .dropdown-menu li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #fff; /* Change the text color */
}

/* Sub-dropdown Menu */
.menu .sub-menu-container {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #0e1726;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.menu .dropdown-menu li:hover .sub-menu-container {
  display: block;
}

.menu .sub-menu-container li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #fff; /* Change the text color */
}

.menu .dropdown-menu li,
.menu .sub-menu-container li {
  list-style-type: none;
}

/* Footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content {
  flex: 1 0 auto;
}

footer {
  background-color: #0e1726;
  padding: 20px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  text-align: start;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

footer ul li {
  display: inline-block;
}

footer ul li a {
  text-decoration: none;
  padding: 0 10px;
  color: #fff;
}

footer p {
  margin: 0;
  color: #fff;
}

footer p a {
  text-decoration: none;
  color: #0dbaff;
}

/* search bar */

.search-container {
  position: relative;
}

.search-container input[type="search"] {
  width: 0;
  padding: 10px;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  transition: width 0.4s ease-in-out;
}

.search-container input[type="search"]:focus {
  width: 200px;
  background: #fff;
  cursor: text;
}

.search-container i {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
}

.search-container svg {
  color: #fff;
}

/* Hide the SVG when the input field is focused */
.search-container input[type="search"]:focus + label svg {
  display: none;
}

/* Hide elements with the 'hide' class */
.hide {
  display: none;
}

/* FEED AND PAGINATION */

#post-feed {
  /* Style your post feed here */
}

#pagination {
  /* Style your pagination here */
}

#post-feed > div {
  /* This will make the width of each post 1011px */
  width: 1011px;

  /* This will make the height of each post 713px */
  height: 713px;

  /* This will maintain the aspect ratio as the width and height change */
  object-fit: cover;
}

#post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(1011px, 1fr));
  grid-gap: 20px; /* adjust this value to add space between posts */
}

/* THUNBNAILS */

/* .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: 10px;
  width: 433px;
  height: 293px;
  overflow: auto;
} */

/* .thumbnail img {
  width: 100%;
  max-height: 100%; add this line
  height: auto;
  object-fit: cover;
  display: block;
} */

/* Responsive CSS */
@media screen and (max-width: 768px) {
  nav > ul {
    flex-direction: column;
    align-items: center;
  }

  #post-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* PAGINATION */

#pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

#pagination button {
  background-color: #f2f2f2;
  color: #333;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pagination button:hover {
  background-color: #ddd;
}

#pagination button.active {
  background-color: #4caf50;
  color: white;
}

/* THUMBNAILS GRID */

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 20px;
  width: fit-content;
  height: fit-content;
  margin: auto;
  overflow: auto;
}

.grid-item {
  /* background-color: #ddd; */
  padding: 20px;
  text-align: center;
  width: 433px;
  height: 293px;
  box-sizing: content-box;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* IMAGE SLIDER */

.slider {
  width: 1270px;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.center {
  display: flex;
  justify-content: center;
}

#slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#prev,
#next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#prev {
  left: 10px;
}

#next {
  right: 10px;
}
