* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h2 {
    margin-top: 20px; /* Add margin on top of h2 elements */
    margin-bottom: 10px; /* Add margin below h2 elements */
    font-size: 24px; /* Adjust font size for optimal readability and SEO */
}

h1 {
    text-align: center; /* Align h1 text to the center */
    font-size: 32px; /* Set the font size for h1 */
}

p {
    margin-bottom: 20px; /* Add margin below p elements */
    font-size: 16px; /* Adjust font size for optimal readability and SEO */
}

body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #222; /* Dark background for the whole page */
    color: #fff; /* White text for better readability */
    font-family: Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px; /* Limit max width */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.outerBox {
    width: 1100px;
    max-width: 100%;
    height: 310px;
    overflow: hidden;
    border: 5px solid black; /* Increased border width */
    margin: 20px auto;
    position: relative;
    background-color: white;
    border-radius: 10px;
}

.marquee-container {
    width: 100%;
    height: 100%;
    background: url('background_led.png');
    background-repeat: repeat;
    background-attachment: inherit;
    background-size: 100%;
    background-position: center;
    overflow: hidden;
    position: absolute;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee {
    white-space: nowrap;
    position: absolute;
    animation: scroll-left 10s linear infinite; /* Adjusted animation duration */
}

.marquee span {
    font-size: 310px;
    color: yellow;
    user-select: none;
    display: inline-block;
}

.settings {
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    font-size: 18px; /* Increase font size for better readability */
}

.setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Increase margin between settings items */
}

.settings label {
    color: #FFFFFF; /* Ensure high contrast label color */
    margin-right: 15px;
    font-weight: bold;
    font-size: 18px;
}

input[type="text"],
input[type="color"],
input[type="range"],
input[type="checkbox"] {
    font-size: 16px; /* Increase font size for inputs */
}

.play-store-badge img {
    width: 200px; /* Increase width of the Play Store badge */
    height: auto; /* Maintain aspect ratio */
}

.slider-container,
.toggle-container {
    margin-left: auto; /* Push input fields and sliders to the right */
    display: flex; /* Ensure container is a flex container */
    align-items: center; /* Align items vertically */
}

.blink_me {
    animation: blinker 300ms linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes borderColorChange {
    0% { border-color: var(--color1, #FF0000); }
    33% { border-color: var(--color2, #00FF00); }
    66% { border-color: var(--color3, #0000FF); }
    100% { border-color: var(--color1, #FF0000); }
}

.animated-border {
    animation: borderColorChange 5s linear infinite;
}

.input-container, .dashboard {
    margin: 20px 0;
}

.setting-item img {
    width: 24px; /* Adjust icon width */
    height: 24px; /* Adjust icon height */
    margin-right: 10px; /* Add space between icon and text */
}

#fullscreen-button img {
    vertical-align: middle;
    margin-right: 8px;
    width: 18px;
    fill: white;
}

@media (max-width: 600px) {
    .outerBox {
        width: 350px;
        height: 270px;
        border-radius: 10px;
    }
    .marquee span {
        font-size: 270px;
    }
}

.fullscreen .outerBox {
    width: 100vw;
    height: 100vh;
}

.fullscreen .marquee span {
    font-size: calc(10vw + 10vh); /* Adjust font size based on screen dimensions */
}

.fullscreen .marquee-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container {
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 20px auto;
    position: relative;
}

.input-container input[type="text"] {
    width: calc(100% - 160px); /* Adjust as needed */
    padding: 10px;
    border-radius: 20px; /* Rounded corners */
    border: 2px solid #ccc; /* Border color */
    font-size: 16px;
    outline: none; /* Remove default input focus outline */
}

.setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Increase margin between settings items */
}

.setting-item img {
    width: 24px; /* Adjust icon width */
    height: 24px; /* Adjust icon height */
    margin-right: 10px; /* Add space between icon and text */
}

#fullscreen-button img {
    vertical-align: middle;
    margin-right: 8px;
    width: 24px;
    fill: #FFFFFF; /* Ensure high contrast icon color */
}

.input-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust the gap as needed */
    justify-content: flex-start; /* Align items to the left */
}

.input-container button {
    right: 0;
    top: 0;
    width: 180px;
    height: 50px;
    background-color: #E0006C;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    /* Remove position absolute */
    display: flex; /* Ensure it behaves like a block-level element */
    align-items: center; /* Center the content vertically */
    justify-content: center; /* Center the content horizontally */
}

.play-store-link {
    display: inline-block;
    margin-left: 10px; /* Adjust the margin as needed */
}

#direction-button img {
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin: 0 5px;
}

#left-arrow,
#pause-play-icon,
#right-arrow {
    filter: brightness(0) invert(1);
}

/* Add this to your existing CSS file */
@media only screen and (max-width: 768px) {
    /* Styles for mobile and tablet in fullscreen mode */
    .fullscreen .marquee-container {
        width: 100vw;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fullscreen .marquee {
        display: inline-block;
        white-space: nowrap;
        animation: scroll-top-bottom 10s linear infinite;
        transform: rotate(90deg); /* Rotate text by 90 degrees */
    }

    @keyframes scroll-top-bottom {
        0% {
            transform: translateY(100%) rotate(90deg);
        }
        100% {
            transform: translateY(-100%) rotate(90deg);
        }
    }
}

@media only screen and (min-width: 769px) {
    /* Styles for desktop in fullscreen mode */
    .fullscreen .marquee-container {
        width: 100%;
        height: 100%;
    }

    .fullscreen .marquee {
        animation: scroll-left-right 10s linear infinite;
    }

    @keyframes scroll-left-right {
        0% {
            transform: translateX(100%);
        }
        100% {
            transform: translateX(-100%);
        }
    }
}

/* Add a class to reset the rotation when exiting fullscreen */
.no-rotate .marquee {
    transform: none;
    animation: scroll-left-right 10s linear infinite;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}