/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
}

/* Update the header styling to include a blue background banner */
.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0px;
    background-color: #1F5EA7; /* Professional blue color - adjust as needed */
    color: white; /* Change text color to white for better visibility */
    padding: 20px 0; /* Add some vertical padding */
    width: 100%; /* Make sure it spans the full width */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Optional: add a subtle shadow */
    border-radius: 0; /* Remove border radius if you want a full banner */
}

/* You may want to adjust the h1 and h2 colors if needed */
.header h1, .header h2 {
    color: white;
}

.container {
    display: flex;
    width: 80vw; /* Adjust width to fit your design */
    min-width: 1200px; /* Optional: adjust to your maximum width */
    min-height: 900px;
    gap: 20px;
    justify-content: center; /* Center the container content */
}

.Categories {
    flex: 2; /* Takes 2/3 of the container width */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Two columns for options */
    gap: 10px;
    padding: 10px 10px 10px 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 80vh; /* Optional: limit height and add scrolling if necessary */
    overflow-y: auto; /* Enable scrolling if content overflows */
    justify-content: center; /* Center the content within Categories */
    border: 0.25px solid #333333;
}

.category-column {
    display: flex;
    flex-direction: column;
    align-items: Left; /* Center options within each column */
}

.category-title {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.5em;
    text-align: center;
    color:rgb(0, 0, 0);
}

.Categories .option {
    background-color: #000000;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px; /* Spacing between rows within columns */
    width: 100%; /* Make options fill the column width */
    max-width: 200px; /* Optional: limit the width of each option */
}

.Categories .option.selected {
    border: 2px solid #ffcc00;
    background-color: #000000;
}

.results {
    flex: 1; /* Takes 1/3 of the container width */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for results */
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 80vh; /* Optional: limit height and add scrolling if necessary */
    overflow-y: auto; /* Enable scrolling if content overflows */
    justify-content: center;
    border: 0.25px solid #333333;
}

.results .box {
    background-color: Clear;
    color: #fff;
    width: 100%;
    line-height: 75px;
    text-align: center;
    margin-bottom: 5px;
    border-radius: 2px;
    justify-content: center;
}

.btn {
    border: none;
    outline: none;
    margin-bottom: 0px;
    padding: 12px 16px;
    background-color: #000000;
    cursor: pointer;
    border-radius: 2px;
}

.btn:hover {
    background-color: #ddd;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

a {
    color: #000000;
    text-decoration: none;
    margin-top: 1px;
    margin-bottom: 1px;
}

a.visited {
    color: rgb(212, 212, 212);
    text-decoration: rgb(73, 73, 73);
    margin-top: 1px;
    margin-bottom: 1px;
}

img {
    margin-top: 1px;
    box-shadow: 3px 3px 3px rgba(32, 32, 32, 0.349);
    border: 0.25px solid #333333;
    margin-bottom: 1px;
}

/* General scrollbar styles */
::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
    height: 10px; /* Height for horizontal scrollbar */
}

/* Track */
::-webkit-scrollbar-track {
    background-color: #f0f0f0; /* Background color of the track */
    border-radius: 15px; /* Optional: rounded corners */
}

/* Thumb */
::-webkit-scrollbar-thumb {
    background-color: #f0f0f0; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners */
    border: 10px solid #f0f0f0; /* Optional: border around the thumb */
}

/* Thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Darker color on hover */
}

/* Buttons (optional) */
::-webkit-scrollbar-button {
    background-color: #cccccc; /* Color of the buttons (arrows) */
    display: block; /* Show buttons if they are hidden */
}

/* Corner where horizontal and vertical scrollbars meet */
::-webkit-scrollbar-corner {
    background-color: #f0f0f0; /* Background color of the corner */
}

/* Reset Button Styles */
#resetButton {
    background-color: #a1a1a1; /* Green background */
    border: none; /* Remove border */
    color: white; /* White text */
    padding: 10px 20px; /* Some padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make the button inline-block */
    font-size: 16px; /* Increase font size */
    margin: 10px 0; /* Some margin */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition */
    box-shadow: 30px;
    height: 778px;
}

#resetButton:hover {
    background-color: #4e4e4e; /* Darker green on hover */
    display: inline-block;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
        min-width: unset;
        gap: 10px;
    }
    
    .Categories, .results {
        flex: none;
        width: 100%;
        max-height: none;
    }
    
    .Categories {
        grid-template-columns: 1fr;
        padding: 10px;
        margin-bottom: 4px;
    }
    
    .results {
        grid-template-columns: 1fr;
        margin-bottom: 4px;
    }
    
    .category-title {
        font-size: 1.2em;
    }
    
    .Categories .option {
        max-width: 100%;
    }
    
    #resetButton {
        height: auto;
        width: 100%;
        margin: 10px 0;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .header h2 {
        font-size: 1.2em;
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {
    body {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .header {
        padding: 10px 0;
        flex-shrink: 0;
    }
    
    .container {
        flex: 1;
        overflow: hidden;
        padding: 0px;
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 0px; /* Reduced from 8px to 2px */
    }
    
    .Categories {
        height: 40vh;
        overflow-y: auto;
        min-height: 0;
        flex: none;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-bottom: 0; /* Ensure no extra margin */
    }
    
    .category-column {
        width: 100%;
    }
    
    .results {
        height: 40vh;
        overflow-y: auto;
        min-height: 0;
        flex: none;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-top: 0; /* Ensure no extra margin */
    }
    
    #resetButton {
        height: auto;
        padding: 12px;
        margin: 2px auto 8px; /* Reduced top margin from 8px to 2px */
        width: 60%;
        flex-shrink: 0;
        display: block;
    }
    
    .Categories .option {
        padding: 8px;
        margin-bottom: 5px;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}