/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: #121212;
  color: #e0e0e0;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0b0b0b;
  border-bottom: 1px solid #1f1f1f;
  z-index: 999;
}

.navbar_container {
  max-width: min(1100px, 92%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

#navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#navbar-logo img {
  width: 40px;
  height: 40px;
}

.logo_text {
  color: rgb(0, 255, 0);
  font-weight: 700;
  font-size: 1.4rem;
}

.navbar_menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.navbar_links {
  text-decoration: none;
  color: #ccc;
  font-size: 0.95rem;
}

.navbar_links:hover {
  color: rgb(0, 255, 0);
}

/* MOBILE MENU */

.menu_toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu_toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
}
/* Deck Page */
.deck_page {
  display: flex;
  justify-content: center;
  padding: 120px 1rem 2rem 1rem; /* top padding = navbar height + some spacing */
}

.deck_card {
  max-width: 700px;
  width: 100%;
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.deckname_header {
  color: #00ff08;
  font-size: 2rem;
  text-align: center;
}

.deck_colors {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.deck_colors img {
  width: 28px;
  height: 28px;
}

.deck_description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.deck_author {
  font-size: 0.9rem;
  color: #81c784;
  text-align: left;
}

.deck_image img {
  width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Go Back Button */
.go_back {
  align-self: center;
  text-decoration: none;
  background-color: #00ff08;
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.go_back:hover {
  background-color: #5bff63;
}

/* FOOTER */

.footer {
  border-top: 1px solid #1f1f1f;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer_container {
  max-width: min(1100px, 92%);
  margin: auto;
}

.footer_top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer_brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer_title {
  font-size: 1rem;
  font-weight: 600;
}

.footer_socials {
  display: flex;
  gap: 10px;
}

.footer_socials img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.footer_socials img:hover {
  opacity: 1;
}

.footer_links {
  display: flex;
  gap: 20px;
}

.footer_links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer_links a:hover {
  color: white;
}

/* MOBILE */
@media (max-width: 768px) {
  .deck_author {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu_toggle {
    display: flex;
  }
  .navbar_menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b0b0b;

    flex-direction: column;
    align-items: center;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .navbar_menu.active {
    max-height: 100vh;
    padding: 20px 0;
  }
  .navbar_item {
    padding: 15px 0;
  }

  .footer_top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer_links {
    flex-wrap: wrap;
    justify-content: center;
  }

  @media screen and (max-width: 768px) {
    /* Center the main container content */
    .deck_page > div {
      flex-direction: column;
      align-items: center !important; /* Forces children to center horizontally */
      text-align: center; /* centers the description and author text */
    }

    /* Center the Header */
    .deckname_header {
      text-align: center !important;
      width: 100%;
    }

    /* Center the Icon row */
    .deck_colors {
      display: flex;
      justify-content: center;
      width: 100%;
    }

    /* Center the Buttons */
    .deck_page div[style*="display: flex"] {
      justify-content: center;
    }
  }
}

.copy-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #00ff08;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  z-index: 10000;
}

.copy-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Desktop images */
.deck-images img {
  max-width: 90%;
  border-radius: 8px; /* keeps rounded corners on desktop */
  display: block;
  margin: 10px 0; /* spacing on desktop */
}

/* continious image */
@media (max-width: 768px) {
  .deck-images img {
    max-width: 100%;
    border-radius: 0; /* remove rounded edges */
    margin: 0; /* remove spacing */
    display: block;
  }

  .deck-images img + img {
    margin-top: -4px;
  }
}

@media (max-width: 768px) {
  .deckname_header {
    font-size: 3rem !important;
    text-align: center;
  }
}
