/* Mobile First Styles */

/* Base styles for mobile devices */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: radial-gradient(circle, rgba(204,204,204,1) 0%, rgba(116,116,116,1) 100%);
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px;
    width: 100%;
    max-width: 600px; /* Limit the maximum width to prevent stretching */
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.color-pickers {
    display: flex;
    gap: 10px; /* Space between color pickers */
    width: 100%;
    justify-content: center; /* Center the color pickers */
}

.color-picker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-picker {
    width: 100px; /* Adjust width as needed */
}

.modes {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center; /* Center the buttons */
    gap: 10px; /* Space between buttons */
    width: 100%;
}

.modes button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    width: 100%; /* Make buttons full width on small screens */
}

.modes button:hover {
    background-color: #0056b3;
}

.led-display {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap; /* Allow LEDs to wrap on smaller screens */
}

.led {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid #000000;
    background-color: #ff0000;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5); /* Increased halo effect */
    transition: background-color 0.3s, box-shadow 0.3s;
}

.intensity, .tempo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tempo-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

/* Media Queries for Larger Screens */

/* Tablets and larger phones */
@media (min-width: 600px) {
    .container {
        flex-direction: row;
        justify-content: space-between; /* Space between controls and LEDs */
    }

    .controls {
        width: 40%; /* Allocate more space for controls on larger screens */
    }

    .led-display {
        width: 55%;
    }

    .color-picker {
        width: 120px; /* Adjust width for larger screens */
    }

    .modes button {
        width: auto; /* Restore button width for larger screens */
    }
}

/* Desktops and larger screens */
@media (min-width: 992px) {
    .controls {
        align-items: flex-start;
    }

    .modes button {
        padding: 10px 30px;
        font-size: 16px;
    }

    .led {
        width: 70px;
        height: 70px;
        box-shadow: 0 0 150px rgba(0, 0, 0, 0.5); /* Increased halo effect */
    }
}
