@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');


.Grating {
    display: none; /* Hidden by default */
    position: fixed; /* Position it relative to the viewport */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Offset by half of the width and height to center */
    height: 50vh; /* Adjusted for better responsiveness */
    width: 80vw; /* Adjusted for better responsiveness */
    max-height: 400px; /* Limit the height */
    max-width: 600px; /* Limit the width */
    border-radius: 10px;
    box-shadow: 1px 2px 5px black;
    background-color: white;
    z-index: 1000; /* Make sure it's on top of other content */
    padding: 20px; /* Add some padding inside the popup */
    overflow: auto; /* Add scrolling if content overflows */
}

.star {
    font-size: 30px; /* Adjusted font size for better responsiveness */
    color: #ddd;
    cursor: pointer;
}

.star:hover,
.star:hover ~ .star {
    color: #ffc107;
}

.selected,
.selected ~ .star {
    color: #ffc107;
}

textarea {
    width: 100%; /* Full width */
    height: 100px; /* Adjust height */
    padding: 10px; /* Padding inside the textarea */
    margin-top: 10px; /* Space above the textarea */
    border-radius: 10px; /* Rounded corners */
    border: 1px solid #ddd; /* Light border */
    font-size: 16px; /* Font size for better readability */
    resize: vertical; /* Allow users to resize vertically */
    box-sizing: border-box; /* Ensure padding is included in the width */
    
}

.submit-button {
    background-color: #68ad4d; /* Gold color */
    color: #fff; /* White text */
    font-size: 14px; /* Adjusted font size for better responsiveness */
    padding: 8px 16px; /* Adjusted padding */
    border: none; /* Remove border */
    border-radius: 25px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: all 0.3s ease; /* Smooth transition */
    margin-top: 10px; /* Space above the button */
}

.submit-button:hover {
    background-color: #e0a800; /* Darker gold on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.submit-button:active {
    background-color: #c69500; /* Even darker gold when clicked */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow on click */
    transform: translateY(2px); /* Slight move down on click */
}

/* Optional: Dim the background when the popup is visible */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    z-index: 999; /* Ensure it sits just below the popup */
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .Grating {
        height: 60vh; /* Adjust height for small screens */
        width: 90vw; /* Adjust width for small screens */
        padding: 15px; /* Adjust padding for small screens */
    }

    .star {
        font-size: 24px; /* Adjust font size for small screens */
    }

    textarea {
        font-size: 14px; /* Adjust font size for small screens */
    }

    .submit-button {
        font-size: 12px; /* Adjust font size for small screens */
        padding: 6px 12px; /* Adjust padding for small screens */
    }
}

.star-rating {
    font-size: 20px; /* Adjust the size of the stars */
    color: #FFD700; /* Gold color for stars */
}

.fa-star, .fa-star-half-alt {
    color: #FFD700; /* Default color for filled stars */
}

.fa-star.checked {
    color: #FFD700; /* Color for full stars */
}

.fa-star-half-alt.checked {
    color: #FFD700; /* Color for half stars */
}

.fa-star {
    color: #ddd; /* Color for empty stars */
}

