/* General Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#favorites-container, #buttons-container {
    scroll-margin-top: 150px; /* Prevent header overlap */
    padding-top: 10px; /* Additional breathing room */
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e; /* Dark background (similar to VSCode Dark theme) */
    color: #dcdcdc; /* Light text color for readability */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    padding-top: 100px
}



/* Container */
.container {
    width: 90%;
    max-width: 1000px;
    background-color: #2d2d2d; /* Slightly lighter background for content area */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 20px;
}

/* Header Styling */
header {
    background-color: #1e1e1e; /* Same as body background */
    color: #f5f5f5; /* Light color text */
    padding: 10px 20px; /* Reduced padding for smaller header height */
    text-align: left; /* Align text to the left */
    width: 100%;
    position: fixed; /* Fixed header at the top */
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: top 0.3s ease-in-out;

}

header h1 {
    margin: 0;
    font-size: 2rem; /* Smaller header text */
    color: #61dafb; /* Accent color for header (cyan) */
}

/* Select Dropdown Styling */
select {
    display: block;
    margin:  auto;
    padding: 10px;
    background-color: #1d1d1d; /* Dark background for the select box */
    border: none;
    border-radius: 5px;
    font-size: 1 rem;
    color: #e0e0e0; /* Light text */
}


/* Container for the Select Dropdown */
.select-container {
    width: 300px;
    margin: 50px auto; /* Centers the container horizontally on the page */
}

/* Theme Toggle Dropdown Styling */
#theme-toggle-dropdown {
    position: absolute;
    right: 10px; /* Position to the far right */
    top: 50%; /* Vertical alignment */
    transform: translateY(-50%); /* Centers dropdown */
    background-color: #333333; /* Dark background */
    color: #fcfcfc; /* Neon green text */
    border: 1px solid #ffffff; /* Neon green border */
    padding: 5px 10px;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#theme-toggle-dropdown:hover {
    background-color: #414040; /* Slightly lighter dark background */
    border-color: #66FF00; /* Slightly brighter neon border */
}

header img {
    width: 40px;
    height: auto;
    margin-left: 15px;
    margin-right:15px
}


header nav {
    margin-top: 10px;
    
}

header nav a {
    color: #dcdcdc;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 15px;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #61dafb; /* Highlight color on hover */
    text-decoration: underline;
}

/* Footer Styling */
footer {
    background-color: #1e1e1e;
    color: #dcdcdc;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

footer p {
    margin: 10px 0;
    font-size: 1rem;
}

footer a {
    color: #61dafb; /* Accent color for footer links */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.hinsta{
    color: #00bcd4;
}

/* Search Box */
.search-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

input[type="text"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #4f4f4f; /* Dark border to match the theme */
    border-radius: 4px;
    width: 80%;
    margin-right: 10px;
    background-color: #3a3a3a; /* Darker input box */
    color: #dcdcdc;
}

button {
    background-color: #61dafb; /* Accent color for buttons */
    color: #1e1e1e;
    padding: 10px 20px;
    border: none;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4fa3e1; /* Slightly darker blue for hover effect */
}



/* Collapsible Button */
.collapsible {
    background-color: #3c3c3c; /* Dark gray background for collapsibles */
    color: #61dafb; /* Accent color for collapsible buttons */
    padding: 12px;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-size: 1.2em;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #4f4f4f;
}



.collapsible-content {
    padding: 15px;
    display: none;
    background-color: #2d2d2d; /* Light gray background for collapsible content */
    margin-top: 10px;
    border-left: 4px solid #61dafb; /* Accent border */
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease-out;
}


.command-description {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.comment {
    font-size: 1.2em;
    background-color: #3a3a3a;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.command-list {
    margin-top: 20px;
}

/* Button Styles for Command Actions */
.copy-button {
    color: white;
    background-color: #444444;
    margin-left: 10px;
    padding: 5px 10px;
    float: right; /* Alternative method */
}

.copy-button:hover {
    background-color: #686867;
}

.copy-guide-button {
    color: white;
    background-color: #444444;;
    margin-left: 10px;
}

.copy-guide-button:hover {
    background-color: #535351;
}

.share-button {
    color: white;
    background-color: #444444;;
    margin-left: 10px;

    float: right; /* Alternative method */
}

.share-button:hover {
    background-color: #535351;
}

.correction-button {
    background-color: #dc3545;
    color: white;
    font-size: 1em;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.correction-button:hover {
    background-color: #c82333;
}

.report-button {
    background-color: #dc3545;
    margin-top: 20px;
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.report-button:hover {
    background-color: #c82333;
}

.favorite-button {
    background-color: #444444;  /* Make the button background transparent */
    border: none;                   /* No border */
    font-size: 30px;                 /* Set the size of the heart */
    cursor: pointer;                /* Pointer cursor on hover */
    padding: 0;                      /* Remove any padding */
    transition: transform 0.2s ease, color 0.3s ease; /* Smooth transitions */
    display: inline-flex;            /* Keep the button inline with content */
    justify-content: center;         /* Center the heart inside the button */
    align-items: center;             /* Vertically align the heart */
}

.favorite-button:hover {
    transform: scale(1.2);  /* Slightly increase size on hover */
    color: #535351;
    background-color: #686867;
    }

.heart-icon {
    transition: color 0.3s ease; /* Smooth transition for color change */
    display: inline-block;  /* Ensures the icon stays inline with any other content */
    color: #ccc;            /* Default color (gray) for unfavorited */
}

.favorite-button.active .heart-icon {
    color: red;  /* Red color for the heart when favorited */
}


/* Category Section */
.category-section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #2a2a2a; /* Dark gray for category section */
    border: 1px solid #444444; /* Dark border */
    border-radius: 5px;
}

.category-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #00bcd4; /* Cyan for category titles */
}


.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.8); /* Red background for alert */
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: fadeOut 2.5s forwards;
}

/* Smooth fade-out effect */
@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}




@media (max-width: 768px) {

    body {
        padding-top: 150px; /* Adjust header spacing */
        padding-bottom: 15px; /* Ensure content doesn’t stick to the bottom */
        font-size: 0.9rem; /* Reduce text size for readability */
    }

}
    /* Adjust the collapsible button to be smaller */
    .collapsible {
        font-size: 1em; /* Smaller font for collapsible button */
        padding: 10px; /* Reduce padding for a more compact look */
    }

    /* Adjust collapsible content */
    .collapsible-content {
        padding: 10px;
        font-size: 0.8em; /* Adjust content text size */
    }

    /* Make containers full width on mobile */
    .container {
        width: 100%;
        padding: 10px; /* Reduce padding for mobile */
    }

    /* Adjust category section for better mobile experience */
    .category-section {
        padding: 15px;
        width: 100%; /* Ensure the category section takes full width */
    }

        button {
            width: auto; /* Allow button to adjust naturally */
            font-size: 0.8em; /* Reduce text size */
            padding: 8px 16px; /* Smaller padding for compact look */
        }

        .correction-button, .favorite-button {
            font-size: 0.85em; /* Reduce text size slightly */
            padding: 6px 10px; /* Compact padding for better fit */
            width: auto; /* Ensure flexible width */
        }
    
        .report-button {
            width: 100%; /* Full-width for easier tap interaction */
            font-size: 1em; /* Balanced readability */
            padding: 8px; /* Adjust padding for better spacing */
        }


        footer {
            padding: 12px 0; /* Reduce padding for compact fit */
            font-size: 0.85rem; /* Adjust text size for readability */
        }
    
        footer p {
            font-size: 0.8rem; /* Smaller text for better space usage */
            line-height: 1.4; /* Balanced spacing */
        }
