#review_title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2C3E50;
    /* Darker shade for title */
    font-family: 'Arial', sans-serif;
}

#review {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    /* Allows wrapping to the next row */
    justify-content: center;
    /* Centers content horizontally */
    gap: 10px;
    /* Adds space between items */
    padding: 0 10px;
}

#review_title_show {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    margin: 20px 0px 0px 10px;
    padding: 10px;
    color: #2C3E50;
    /* Darker shade for title */
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px 10px 10px 0px;
    background-color: #e5e5e5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#category_buttons {
    background-color: #e5e5e5;
    width: 50%;
    border-radius: 0px 0px 10px 10px;
    padding: 0.7%;
    margin: 0 0 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* gap: 10px; */
}

.category_button {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 2%;
    margin: 2%;
    font-size: 100%;
    font-weight: bold;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(251, 140, 0, 0.3);
    transition: all 0.3s ease;
    flex: 1 1 25%;
    /* Two buttons per row, approx */
    
    /* Optional: prevent too small buttons */
}


.category_section_container  {
    display: flex;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    /* Add horizontal scrollbar if needed */
    max-width: 100%;
    /* Max width = screen width */
    padding-bottom: 10px;
    /* Space for scrollbar */
    position: relative;
}
.category_section {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    flex-direction: row;
    display: flex;
    flex: 1; /* take all available space */
    padding: 0 50px; /* give space for left and right buttons */
}
/* Optional: Make scrollbar look nicer */
.category_section_container ::-webkit-scrollbar {
    height: 8px;
}

.category_section_container ::-webkit-scrollbar-thumb {
    background-color: #F39C12;
    border-radius: 4px;
}

.category_section_container ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Keep buttons scrollable if too many */

.category_button:hover {
    background: linear-gradient(135deg, #FB8C00, #F57C00);
    box-shadow: 0 6px 14px rgba(251, 140, 0, 0.5);
    transform: translateY(-2px);
}

.category_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(251, 140, 0, 0.4);
}

#category_buttons::-webkit-scrollbar {
    height: 8px;
}

#category_buttons::-webkit-scrollbar-thumb {
    background-color: #F39C12;
    border-radius: 4px;
}

#category_buttons::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category_heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2C3E50;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #F39C12;
    padding-bottom: 5px;
}

#review_content {
    background-color: #FFEBCC;
    height: auto;
    width: max-content;
    min-width: 200px;

    margin: 10px;
    padding: 10px;
    border-radius: 30px 15px 50px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
    border: 5px outset #F39C12;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 0, 0, 0.1);
}

#review_content:hover {
    /* transform: translateY(-5px); */
    /* Lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* Deeper shadow */
    animation: floatTilt 2s ease-in-out infinite, pulseGlow 1.5s ease-in-out infinite;
}

@keyframes floatTilt {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-2deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }

    75% {
        transform: translateY(-8px) rotate(-2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 10px #F39C12, 0 0 20px #F39C12 inset;
    }

    50% {
        box-shadow: 0 0 20px #F39C12, 0 0 30px #F39C12 inset;
    }
}

.star {
    font-size: 20px;
    color: #F39C12;
}

.star.empty {
    color: #BDC3C7;
}

#review_title {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #34495E;
    /* Slightly lighter than the main title color */
    margin-bottom: 15px;
}

#review_detail {
    margin-top: 5px;
    font-size: 1rem;
    color: #7F8C8D;
    /* Light gray for readability */
}

#user_id {
    color: #2C3E50;
    font-weight: bold;
    /* Adjust color if needed */
}

#review_date {
    float: right;
    font-size: 0.9rem;
    color: #95A5A6;
    /* Light gray for dates */
}

/* Responsive behavior */
@media (max-width: 768px) {
    #review {
        justify-content: center;
    }

    #review_content {
        max-width: 20%;
        min-width: 20%;
    }

    #review_title_show {
        font-size: 1.9rem;
    }

    .category_heading {
        font-size: 1.1rem;
    }

    #review_title {
        font-size: 0.9rem;
    }

    #review_date {
        font-size: 0.7rem;
    }

    #review_detail {
        font-size: 0.7rem;
    }

    .star {
        font-size: 0.9rem;
    }

    #category_buttons {
        max-width: 100%;

    }
}


.scroll-button {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
}

.scroll-left {
    height: 85%;
    border-radius: 10px;
    left: 0px;
}

.scroll-right {
    height: 85%;
    border-radius: 10px;
    right: 0px;
}