* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}


.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 16px;
  position: static;  
  bottom: auto;     
  place-items: anchor-center;
}


.footer a {
  color: #a2c4e0;
  margin: 0 10px;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 10px;
}

.header {
    width: 100%;
    padding: 20px;
    background-color: #EDF2F4;
    color: white;
    position: relative;
    top: 0;
    min-height: 5vh;
    z-index: 1000;
    box-shadow: 0px 5px 11px #8f8080;
    display: flex;           /* Flexbox layout */
    justify-content: space-between;  /* Distribute space between items */
    align-items: center;     /* Align items vertically */
}

.header-buttons {
    display: flex;

}

.title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    color: #333;

}

.title-button {
    font-size: 24px;
    font-weight: bold;
    text-align: right;
    padding: .2rem;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
}

.title-button:hover {
    background-color: #cacaca;
}




@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .title {
        font-size: 20px;
    }

    .header-buttons {
        gap: 10px;
    }

    .title-button {
        font-size: 16px;
        padding: 6px 10px;
    }
}

.share-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-2);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.ad-card {
  position: relative;
  transition: transform 0.3s ease;
}

.ad-card.hovering .share-btn {
  display: flex;
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.centered-buttons-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.right-buttons {
  display: flex;
  gap: 10px;
}

.centered-buttons {
    font-family: monospace !important;
    font-size: 20px !important;
    font-weight: unset !important;

}

body.dark {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark.adBackground {
    background: url('/static/images/backgroundNight.png') center center/cover no-repeat;
}

body.dark .wave-divider path{
  fill: #1e1e1e;
  z-index: 2;
}
body.dark .header {
  background-color: #2a2a2a;
  box-shadow: 0px 5px 11px #111;
}

body.dark .title {
  color: #ffffff;
}

body.dark .nav-btn,
body.dark .title-button {
  background-color: #3a3a3a;
  color: #f0f0f0 !important;
}

body.dark .nav-btn:hover,
body.dark .title-button:hover {
  background-color: #555;
}

body.dark .footer {
  background-color: #121212;
  color: #ccc;
}

body.dark .footer a {
  color: #7fa7d9;
}

body.dark .ad-card, body.dark .category-buttons button {
  background-color: #424e5b;
}

body.dark .hero-section {
  background: url('/static/images/backgroundNight.png') center center/cover no-repeat;
}

body.dark .search-bar {
    background-color: #424e5b;
    color: #f0f0f0;
}

body.dark .profile-card, body.dark .profile-ads, body.dark .profile-stats {
  background-color: #424e5b;
  color: #f0f0f0;
}

body.dark .login-container, body.dark .register-container, body.dark .register-container a, body.dark .login-container a, body.dark .privacy-container, body.dark .policy-list, body.dark .privacy-container.card h2{
    background-color: #424e5b;
  color: #f0f0f0;
}
body.dark .cardBox,  body.dark .cardBox h3, body.dark .cardBox p, body.dark .cardBox h3, body.dark .page-card, body.dark .modal-content{
      background-color: #424e5b;
  color: #f0f0f0;
}
body.dark .tag {
  background: #5c5f61;
  color: #f0f0f0;
}

body.dark .ad-meta a, body.dark .meta, body.dark .support-faq-section h3, body.dark .support-faq-section p{
    color: #f0f0f0;

}

body.dark .privacy-container.card h1 {
  color: #94afcb;
}


body.dark .dropdown-toggle:hover{
        background-color: #687889 !important;

}

body.dark .dropdown-menu {
  background-color: #787171;
  color: #f0f0f0;
}

body.dark .dropdown-menu button:hover {
  background: #787171 !important;
  color: #f0f0f0;
}

body.dark .search-controls select {
  background-color: #457B9D;
}

body, .header, .footer, .nav-btn {
  transition: background-color 0.3s, color 0.3s;
}



.nav-btn,
button,
input[type="submit"],
.hero-cta {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cardDesc,.ad-card p, #description,.ad-info a, .ad-card p.cardDesc,
.cardKeywords span,
.vote-badge,
.search-bar,
.footer,
.category-buttons button {
  font-family: 'Urbanist', sans-serif !important;
}


#theme-animations {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}



.stars {
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}


body.dark .stars {
  opacity: 1;
}


body.dark .stars::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow:
    2vw 8vh white,
    6vw 14vh white,
    -10vw 22vh white,
    14vw 18vh white,
    18vw 6vh white,
    22vw 30vh white,
    -26vw 10vh white,
    30vw 25vh white,
    34vw 15vh white,
    38vw 5vh white,
    42vw 28vh white,
    -46vw 12vh white,
    50vw 20vh white,
    54vw 7vh white,
    58vw 32vh white,
    62vw 17vh white,
    -66vw 23vh white,
    70vw 11vh white,
    74vw 26vh white,
    78vw 8vh white,
    -82vw 18vh white,
    -86vw 30vh white,
    -90vw 14vh white,
    -94vw 6vh white,
    -98vw 24vh white;
  animation: blink 2s infinite ease-in-out alternate;
}


body.dark .stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  box-shadow:
    5vw 9vh white,
    19vw 15vh white,
    33vw 12vh white,
    57vw 8vh white,
    81vw 27vh white;
  animation: blink 3s infinite ease-in-out alternate;
}



@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.clouds {
    display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.cloud {
  position: absolute;
  background: url('/static/images/20095.png') no-repeat;
  background-size: contain;
  animation-name: floatCloud;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

body.dark .clouds {
  display: none;
}





@keyframes floatCloud {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(1600px); }
}



.clouds {
  opacity: 1;
  transition: opacity 0.8s ease;
}

body.dark .clouds {
  opacity: 0;
  pointer-events: none;
}
#sidebarBackdrop {
  top: 60px;
  height: calc(100% - 60px);
  z-index: 899;
}

@media (max-width: 768px) {
  .user-sidebar {
    position: fixed;
    top: 60px; 
    left: 0;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: #f8f8f8;
    padding: 1rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 900; 
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
body.sidebar-open {
  overflow: hidden;
}


  .user-sidebar.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-block !important;
  }

    .user-sidebar h2{
        margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
  }

  .user-nav-button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  background-color: #eaeaea;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.user-nav-button:hover {
  background-color: #d6d6d6;
}

.title-button{
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background-color: #eaeaea;
    border: none;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    text-align-last: center;
}

}

