/* === Fonts === */
@font-face {
  font-family: "myfont";
  src: url("/fonts/SourceSansPro-Regular.woff") format("woff");
}

@font-face {
  font-family: "myfont";
  src: url("/fonts/SourceSansPro-Bold.woff") format("woff");
  font-weight: bold;
}

@font-face {
  font-family: "emuFont";
  src: url("/fonts/Harlow-Solid-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  src: url("/fonts/Oswald-Regular.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Oswald";
  src: url("/fonts/Oswald-Bold.ttf") format("truetype");
  font-weight: 700;
}

/* === Base Styles === */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "myfont";
  background-color: #f0f0f0;
}

h1, h2, h3, h4, h5, h6, p, ul {
  margin: 0;
  padding: 0;
}

/* === Post View ===*/
.postTitle {
  font-size: 40px;
  font-family: "Oswald";
}

.miniText {
  font-size: 15px;
}

/* === Search Bar === */

.search-container {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 100px; /* Prevent it from collapsing completely */
  max-width: 600px;  /* Optional cap */
  margin-top: 0 !important; /* Remove extra spacing */
}

.search-container form {
  display: flex;
  width: 100%;
  height: 38px;
  margin-top: 0; /* Ensure consistent alignment */
}

.search-container input[type="text"],
.search-container button {
  height: 100%;
  font-size: 16px;
  border: none;
  box-sizing: border-box;
}

.search-container input[type="text"] {
  padding: 0 10px;
  flex: 1; /* optional: let input grow */
  min-width: 0;
}

.search-container button {
  padding: 0 12px;
  background: #ddd;
  margin-right: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container button:hover {
  background-color: #ccc;
}


/* === Typography & Text === */
.credits,
.editorName,
.flavourText {
  font-size: 12px;
  color: #4d4d4d;
  text-align: center;
}

.editorName {
  margin: 100px auto 25px;
}

.flavourText {
  margin: 10px auto 0;
  padding-left: 30px;
  text-align: left;
}

.h1 {
  margin-top: 24px;
  padding-left: 30px;
  font-size: 24px;
  text-align: left;
}

/* === Buttons === */
.button,
.blogTitleButton {
  font-size: 18px;
  text-align: center;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.button {
  background-color: #ffda37;
  color: white;
  width: 90px;
  padding: 10px 18px;
  margin: 20px 70px 0 30px;
  display: block;
  text-decoration: none;
}

.deleteButton {
  background-color: #ff4141;
  color: rgb(0, 0, 0);
  width: 90px;
  padding: 10px 18px;
  margin: 20px 70px 0 30px;
  display: block;
  text-decoration: none;
}

.button:hover {
  transform: scale(1.04);
}

.blogTitleButton {
  background-color: #9b9a94;
  width: 100%;
  padding: 12px 0;
  font-size: 1.2rem;
}

.blogTitleButton:hover {
  background-color: #8d8978;
  color: white;
}

/* === Containers & Cards === */
.container {
  width: 60%;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
}

.cardContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px; /* controls spacing between cards */
  padding: 40px 20px;
}

.square {
  position: relative;
  width: 650px;
  background: white;
  padding-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 20px 50px #d9dbdf;
  transition: all 0.3s ease;
}

.square:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.mask {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  position: relative;
}

.mask img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

/* === Navigation Bar === */
.navBar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 10px;
  gap: 40px;
  background-color: #243f57;
  color: white;
  box-sizing: border-box;
}

.navBar img {
  width: 70px;
  height: auto;
  object-fit: contain;
  min-width: 70px;
  max-width: 70px;
}

.navBarContent {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navBarTitle {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.navBarTitle {
  font-size: 3rem !important;
  line-height: 1;
}

.nav-links {
  position: relative;
}

.close-btn {
  display: none !important;
}


/* === Dropdown === */
.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 16px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 3px;
  padding: 0 10px;
  transition: background 0.2s;
}

.dropdown:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dropbtn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  color: black;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: black;
}

.dropdown-content a:hover {
  background-color: #eee;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === Banner Buttons === */
.banner-button {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  padding-right: 40px;
}

/* === Account Links === */
.account-link {
  background: #fff;
  color: #8d8978 !important;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 16px;
  margin-left: 8px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

/* === Utility & Misc === */
.linkText {
  text-decoration: none;
  color: inherit;
}

.noPoints {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.noPoints li {
  margin-bottom: 1rem;
}

.hamburger {
  transform: translateY(-2px);
  display: none; /* Hidden by default (desktop) */
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  color: #ffffff;
  padding: 8px 14px;
  margin-left: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.postText {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  text-align: left;
}

/* === Special Titles === */
.emu-title {
  color: #ffdc41 !important;
  font-family: "emuFont", sans-serif;
  font-size: 6rem !important;
  line-height: 1;
  text-decoration: none;
}

/* === Responsive === */

@media (max-width: 793px) {
  .burgerSearch {
    justify-content: center;
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes to the far right */
    gap: 12px;
  }

  .navBarContent {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }

  .search-container {
    flex: 1;
    margin-left: 30px;
    max-width: calc(100% - 100px);
  }

  .search-form {
    display: flex;
    width: 100%;
  }

  .search-form input[type="text"] {
    height: 36px;
    flex: 1;
    padding: 0 10px;
  }

  .search-form button {
    height: 36px;
    padding: 0 12px;
  }

  .navMenuWrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #8d8978;
    z-index: 1101;
    padding-top: 80px;
    transition: right 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display:block;
    position: relative;
    top:  00px;
    right: 20px;
    z-index: 1000;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s;
  }


  /* hide by default */
  .close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1102;
    transition: color 0.2s;
  }
  .hamburger:hover,
  .close-btn:hover {
    color: #ffdc41;
  }

  /* only show when the panel is slid open */
  .nav-links.open .close-btn {
    display: block !important;
  }

  .hamburger.hidden {
    opacity: 0;
    pointer-events: none;
  }
}