@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Montserrat", sans-serif;
}

body {
    background-image: url('img/bg.png');
    object-fit: fill;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    padding: 20px;
    overflow: hidden; /* Prevent overall overflow */
    background-size: cover; /* Ensures the background covers the entire viewport */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Ensures the image doesn't repeat */
    background-attachment: fixed; /* Keeps the background fixed while scrolling */
}

body #inputForm {
    background: rgba(73,94,137,255) !important; /* Softer purple */
}

#characterDisplay {
    display: auto;
    padding: 10px;
    max-width: 400px;
    max-height: 70vh; /* Limit the height to prevent overflow */
    overflow-y: auto; /* Enable scrolling when content overflows */
    overflow-x: hidden;
    border: 2px solid #9874b8; /* Softer purple border */
    border-radius: 10px; /* Optional: Adds rounded corners */
    background-color: rgba(144, 96, 180, 0.7); /* Semi-transparent softer purple background */
}

#inputForm {
    position: relative;
    z-index: 2;
    background: rgba(100, 60, 140, 0.5); /* Softer purple */
    padding: 20px;
    border-radius: 10px; /* Rounded corners */
    border: 2px solid #9874b8; /* Softer purple border */
}

/* Scrollbar styles for WebKit browsers (Chrome, Safari, Edge) */
#characterDisplay::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

#inputForm {
    position: relative;
    z-index: 2; /* Ensure the form is not blurred */
    background: rgba(100, 60, 140, 0.5); /* Optional: Add a semi-transparent box behind the form */
    padding: 20px;
    border-radius: 10px; /* Optional: Rounded corners for a sleek look */
}

#characterDisplay::-webkit-scrollbar-track {
    background: transparent; /* Background of the track */
}

#characterDisplay::-webkit-scrollbar-thumb {
    background-color: #47286e; /* Thumb color (lighter purple) */
    border-radius: 10px; /* Rounded corners for the thumb */
    border: 2px solid transparent; /* Padding around the thumb */
}

#characterDisplay::-webkit-scrollbar-thumb:hover {
    background-color: #a380d0; /* Darker shade on hover */
}

/* Firefox scrollbar styling */
#characterDisplay {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #b399d4 transparent; /* Scrollbar thumb and track colors */
}

/* Optional: Hide the scrollbar in general */
#characterDisplay::-webkit-scrollbar {
    display: none; /* Completely hide the scrollbar */
}

/* To hide scrollbar only for Webkit-based browsers and still show for accessibility */
@media (hover: hover) {
    #characterDisplay::-webkit-scrollbar {
        display: block;
    }
}

#restartBtn {
    background-color: rgb(180, 120, 210); /* Softer purple for buttons */
    border-radius: 10px;
}

#exportBtn {
    background-color: rgb(160, 90, 200); /* Softer purple for buttons */
    border-radius: 10px;
}

.btn-info {
    background: linear-gradient(90deg, rgb(150, 100, 220) 0%, #b590e0 100%);
    border: none;
}

.form-control::placeholder {
    color: rgb(185, 185, 185);
}

hr {
    border-top: 3px double #d8b6ff; /* Softer purple tone */
}

/* For small screens, ensure better readability */
@media (max-width: 576px) {
    #inputForm {
        width: 100%;
    }
    
    #characterDisplay {
        max-width: 90%; /* Ensure it fits within small screen sizes */
        max-height: 60vh;
    }
}