/* CSS for the Slot Machine Game */
html,
body {
    body {
        background-image: url('https://elearning.teachertomek.pl/wp-content/uploads/sounds%20and%20pictures/car%20emergencies.jpg');
        /* Path to your image */
        background-size: cover;
        /* Ensures the image covers the entire background */
        background-position: center;
        /* Centers the image */
        background-repeat: no-repeat;
        /* Prevents the image from repeating */
        font-family: Arial, sans-serif;
        text-align: center;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Align elements at the top */
        align-items: center;
        height: 100vh;
        background-color: #f4f4f4;
    }
}

#game-container {
    position: fixed;
    /* Prevent movement when the viewport changes */
    top: 0;
    left: 0;
    width: 100vw;
    /* Full width */
    height: 100vh;
    /* Full height */
    background-color: #000;
    /* Example background */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Adjust content alignment */
    overflow: hidden;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.slot-machine {
    display: flex;
    justify-content: center;
    margin: 5px 0;
    /* Adjust the margin between input and reels */
    flex-wrap: wrap;
    /* Allow the elements to wrap to the next line */
    gap: 2px;
    /* Add space between both rows and columns */
}

/* General Reel Styles */
.reel {
    width: 200px;
    /* Default width for larger screens */
    height: 130px;
    /* Default height for larger screens */
    margin: 0 5px;
    font-size: 1em;
    /* Adjust font size relative to the reel size */
    color: white;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(236, 8, 8, 0.897);
}


#start-button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin: 1px;
    color: white;
    background-color: #d818a8;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#start-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

#show-button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin: 2px;
    color: white;
    background-color: #158035;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#show-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

#next-button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin: 2px;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#next-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

#next-button::after {
    content: "▶";
    /* Unicode for right arrow */
    font-size: 1.5em;
}

#back-button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin: 2px;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#back-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

#back-button::before {
    content: "◀";
    /* Unicode for left arrow */
    font-size: 1.5em;
}

/* Input Field */
.input-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    /* Stack feedback and input vertically */
    margin: 5px 0;
    /* Adjust margin between input and other elements */
    gap: 5px;
    /* Space between feedback and input */
    justify-content: center;
    width: 100%;
    /* Ensure full width */
}

#english-input {
    margin: 5px 0;
    padding: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    border: 3px solid #007BFF;
    /* Thin top and bottom */
    border-left: 10px solid #007BFF;
    /* Wider left */
    border-right: 10px solid #007BFF;
    /* Wider right */
    border-radius: 5px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: block;
    /* Ensure it behaves as a block element */
    margin: 5px auto;
    /* Auto margins for horizontal centering */
    text-align: center;
}

#english-input:focus {
    border-color: #ff009d;
    box-shadow: 0 0 5px rgba(255, 0, 157, 0.5);
    outline: none;
}



/* Feedback Element Styles */
#feedback {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    transition: opacity 0.3s ease-in-out;
}


#feedback.correct {
    color: green;
}

#feedback.incorrect {
    color: red;
}

/* General styling for the list-selector (dropdown) */
#list-selector {
    display: inline-block;
    width: 200px;
    /* Adjust width as needed */
    padding: 10px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    border: 2px solid #007bff;
    /* Blue border */
    border-radius: 5px;
    /* Rounded corners */
    background-color: #f9f9f9;
    /* Light background */
    color: #333;
    /* Dark text color */
    appearance: none;
    /* Removes default browser styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    /* Pointer cursor */
    margin: 10px 0;
    /* Spacing around the button */
}

/* Add an arrow icon for the dropdown */
#list-selector::after {
    content: '▼';
    /* Unicode for down arrow */
    font-size: 12px;
    color: #007bff;
    /* Matches the border color */
    position: absolute;
    right: 15px;
    /* Positioning for the arrow */
    pointer-events: none;
    /* Prevent interaction */
}

/* Add hover effect */
#list-selector:hover {
    background-color: #007bff;
    /* Change to blue */
    color: #fff;
    /* White text */
    border-color: #0056b3;
    /* Darker blue for border */
}

/* Add focus effect */
#list-selector:focus {
    outline: none;
    /* Remove the default outline */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    /* Glowing effect */
}

#download-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    background-color: #28a745;
    /* Green background */
    color: #fff;
    /* White text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    /* Spacing around the button */
}

#download-button:hover {
    background-color: #218838;
    /* Darker green on hover */
}

#download-button:active {
    background-color: #1e7e34;
    /* Even darker green when active */
}