/* Global Variables for Dynamic Color Palette */
:root {
    --primary-color: #3b82f6; /* Primary Color (used for buttons, highlights, etc.) */
    --secondary-color: #e2e8f0; /* Secondary Color (used for background elements) */
    --accent-color: #ff9f1c; /* Accent Color (used for small elements like warnings or icons) */
    --success-color: #22c55e; /* Success Color (used for positive feedback, like "like") */
    --error-color: #ef4444; /* Error Color (used for negative feedback, like "dislike") */
    --warning-color: #f97316; /* Warning Color (used for caution or skip) */
    --text-color: #374151; /* Main Text Color */
    --background-color: #f9fafb; /* General Background Color */
    --background2-color: #FFF; /* General Background Color */
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}
.topnav{
    background-color: var(--background2-color);
}

/* Scrollbar Hide for Cleaner UI */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Smooth Scrolling Behavior */
#cardContainer {
    scroll-behavior: smooth;
    padding: 15px;
}

/* Z-index utility */
.z-10 {
    z-index: 10;
}

/* Search Overlay */
.search-overlay {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
}

/* Card Styles */
.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
}

/* Control Buttons */
.control-buttons button {
    min-width: 100px;
    color: white;
    border-radius: 8px;
    padding: 10px;
    transition: background-color 0.3s ease;
}
.control-buttons button:hover {
    background-color: var(--accent-color);
}

/* Progress Bar */
#progressContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color); /* Background for progress bar */
}

#progressBar {
    background-color: var(--primary-color); /* Dynamic progress bar color */
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

#progressText {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
}

/* Feedback Indicators */
.feedback {
    position: absolute;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.feedback.like {
    color: var(--success-color);
}
.feedback.dislike {
    color: var(--error-color);
}
.feedback.skip {
    color: var(--warning-color);
}

/* Hidden Utility */
.hidden {
    display: none;
}

/* Control Buttons Container */
.control-buttons {
    
    bottom: 10%;
    display: flex;
    gap: 20px;
}
#map {
    width: 100%;
    height: 400px;
}
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    font-size: 1rem;
    color: #555;
}
.error-message {
    color: red;
    font-size: 1rem;
    text-align: center;
}
/* Splash Screen */
#splash-screen {
    z-index: 1000;
    animation: fadeOut 2s ease-in-out 3s forwards;
}

/* Login Screen */
#login-screen {
    z-index: 999;
}

/* Fade-out animation */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}
