<style>
    body.dark-mode #calc-container {
        background-color: #1a1a1a !important;
    }

    @media (max-width: 768px) {
        .tech-container {
            flex-direction: column;
            align-items: center;
        }
        #calc-container {
            margin-top: 20px;
        }
        #about-wrapper {
            flex-direction: column;
        }
    }

    @media (min-width: 769px) {
        #about-wrapper {
            display: flex;
            flex-direction: row;
            gap: 20px;
            align-items: flex-start;
        }
        #tech-info {
            flex: 1;
        }
        #calc-container {
            flex: 1;
        }
    }

    @media screen and (min-width: 601px) {
        .button-container {
            margin-top: 20px;
        }
        .w3-button {
            margin-top: 20px;
        }
        .led-buttons {
            margin-top: 30px;
            display: flex;
            justify-content: left;
            gap: 20px;
        }
    }

    .container {
        max-width: 300px;
        margin: 0 auto;
        background: #fff;
        padding: 10px 15px;
        border-radius: 8px;
        box-shadow: none;
    }

    h2 {
        text-align: center;
        margin-bottom: 10px;
        font-size: 10px;
    }

    label {
        display: block;
        margin-top: 12px;
        font-weight: bold;
        font-size: 14px;
    }

    select, input {
        width: 100%;
        padding: 6px;
        margin-top: 0;
        box-sizing: border-box;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 12px;
    }

    input[type="range"] {
        width: 100%;
        height: 6px;
        -webkit-appearance: none;
        border-radius: 5px;
        outline: none;
    }

    input[type="range"].colorSlider {
        background: linear-gradient(to right, red, yellow, green, cyan, blue, violet, white);
    }

    input[type="range"].brightnessSlider {
        background: linear-gradient(to right, black, white);
    }

    .output {
        font-size: 10px;
        font-weight: bold;
        text-align: center;
        margin-top: 5px;
    }

    .result {
        margin-top: 10px;
        padding: 8px;
        background: #ecf0f1;
        border-radius: 4px;
        text-align: center;
        font-weight: bold;
        font-size: 12px;
    }

    .icon-text {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .tech-container .icon-text img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .tech-container .icon-text span {
        font-size: 16px;
        color: black;
    }

    .icon-link {
        margin: 0 10px;
        text-decoration: none;
        color: inherit;
    }

    .icon-link i {
        font-size: 24px;
        vertical-align: middle;
    }

    .gallery {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 1000;
    }

    .gallery img {
        width: calc(100% / 6);
        height: auto;
        transition: filter 0.3s;
        filter: brightness(0.7);
    }

    .gallery img:hover {
        filter: brightness(1);
    }

    body, h11, p {
        margin: 0;
        padding: 0;
    }

    header {
        padding: 20px;
        text-align: center;
        background-color: #ffffff;
    }

    .rainbow-text {
        font-size: 48px;
        font-weight: bold;
        background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red);
        -webkit-background-clip: text;
        color: transparent;
        animation: rainbow-wave 5s linear infinite;
    }

    p {
        font-size: 1em;
        margin-top: 10px;
    }

    #contact {
        scroll-padding-top: -550px;
    }

    h11 {
        font-size: 48px;
        font-weight: bold;
        color: #333;
        margin-top: 100px;
    }

    .w3-main, .w3-content {
        position: relative;
        z-index: 1;
    }

    body, h1, h2, h3, h4, h5, h6 {
        font-family: "Montserrat", sans-serif;
    }

    .w3-row-padding img {
        margin-bottom: 12px;
    }

    .bgimg {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url('/images/mainledlinefoto.jpg');
        min-height: 100%;
        transition: opacity 0.5s;
        position: relative;
        z-index: -1;
    }

    #sidebar {
        width: 40%;
        position: fixed;
        height: 100%;
    }

    #main-content {
        margin-left: 40%;
        transition: margin-left 0.5s;
    }

    @-webkit-keyframes rainbow-wave {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    @keyframes rainbow-wave {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .rainbow-line {
        height: 5px;
        background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
        animation: fadeEffect 3s infinite;
    }

    @keyframes fadeEffect {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.2; }
    }

    #mySidebar a.close-btn {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 12px;
    }

    .w3-input {
        width: 100%;
        padding: 12px 20px;
        margin: 8px 0;
        box-sizing: border-box;
        border: 2px solid #ccc;
        border-radius: 4px;
    }

    .w3-input:focus {
        border: 2px solid #555;
        outline: none;
    }

    .w3-button {
        display: inline-block;
        border-radius: 4px;
        background-color: #f1f1f1;
        border: none;
        color: #000;
        text-align: center;
        font-size: 16px;
        padding: 10px;
        width: auto;
        margin: 5px;
        transition: all 0.3s;
    }

    .w3-button:hover {
        background-color: #ddd;
    }

    .w3-sidebar.w3-black {
        background-color: rgba(0, 0, 0, 0.9);
    }

    .w3-sidebar.w3-black .w3-bar-item {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .w3-sidebar.w3-black .w3-bar-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    @media screen and (max-width: 600px) {
        .button-container {
            margin-top: 5px;
        }
        .led-buttons {
            margin-top: 30px;
            display: flex;
            justify-content: left;
            gap: 20px;
            flex-wrap: wrap;
        }
        .w3-button {
            margin: 5px 0;
        }
    }

    .contact-container {
        width: 100%;
        max-width: 600px;
        padding: 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        text-align: center;
        margin: auto;
    }

    .link-button {
        display: inline-block;
        font-size: 1.1em;
        margin-right: 20px;
        cursor: pointer;
        padding: 10px;
        border-radius: 5px;
    }

    #ledlines-button,
    #ledlamps-button,
    #ledtubes-button,
    #neohex-button,
    #cableledlines-button {
        color: transparent;
        background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red);
        background-clip: text;
        -webkit-background-clip: text;
        font-weight: bold;
        border: 2px solid transparent;



font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;


    }

    .button-container {
        text-align: center;
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #about-wrapper {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    #tech-info {
        flex: 1;
    }

    #calc-container {
        flex: 1;
    }

    @media screen and (max-width: 768px) {
        #about-wrapper {
            flex-direction: column;
        }
    }

    #juro-container {
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    #juro-header {
        position: relative;
        padding: 8px 30px 8px 8px;
        cursor: pointer;
        background-color: #eee;
        font-weight: bold;
        text-align: center;
    }

    #juro-header::after {
        content: "\25BC";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        transition: transform 0.3s;
    }

    #juro-header.expanded::after {
        transform: translateY(-50%) rotate(180deg);
    }

    #juro-content {
        display: none;
        padding: 1px;
    }

    .gallery-container {
        position: relative;
    }

    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        border: none;
        color: white;
        padding: 10px;
        cursor: pointer;
        z-index: 1100;
    }

    .arrow.left { left: 10px; }
    .arrow.right { right: 10px; }

    header .led-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
        justify-items: center;
    }

    header .led-buttons .link-button {
        text-align: center;
        padding: 10px;
    }

    .gallery {
        display: flex;
        gap: 0;
    }

    .gallery-item {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        margin-top: 5px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.dark-mode { background-color: #000 !important; }
    body.dark-mode p,
    body.dark-mode h1,
    body.dark-mode h2,
    body.dark-mode h3,
    body.dark-mode h4,
    body.dark-mode h5,
    body.dark-mode h6,
    body.dark-mode h11,
    body.dark-mode li,
    body.dark-mode span { color: #fff; }
    body.dark-mode a:not(.rainbow-text) { color: #fff !important; }
    body.dark-mode header,
    body.dark-mode .container,
    body.dark-mode .contact-container { background-color: #000 !important; }
    body.dark-mode .w3-button { background-color: #333 !important; color: #fff !important; }
    body.dark-mode .bgimg { filter: brightness(0.9); }
    body.dark-mode .tech-container .icon-text span { color: #fff !important; }
    body.dark-mode .rainbow-text { color: transparent !important; }
    body.dark-mode a.link-button,
    body.dark-mode #ledlines-button,
    body.dark-mode #ledlamps-button,
    body.dark-mode #ledtubes-button,
    body.dark-mode #neohex-button,
    body.dark-mode #cableledlines-button {
        color: transparent !important;
        background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }
    body.dark-mode .tech-container .icon-text img {
        filter: grayscale(100%) brightness(0) invert(1);
    }
    body.dark-mode #mySidebar #ledlines-button,
    body.dark-mode #mySidebar #ledlamps-button,
    body.dark-mode #mySidebar #ledtubes-button,
    body.dark-mode #mySidebar #neohex-button,
    body.dark-mode #mySidebar #cableledlines-button {
        background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        color: grey !important;
    }
    body.dark-mode #mySidebar #ledlines-button.active,
    body.dark-mode #mySidebar #ledlamps-button.active,
    body.dark-mode #mySidebar #ledtubes-button.active,
    body.dark-mode #mySidebar #neohex-button.active,
    body.dark-mode #mySidebar #cableledlines-button.active {
        color: transparent !important;
    }
    #footer {
        background-color: #ffffff;
        color: #000000;
    }
    #footer h2, #footer a {
        color: #000000;
    }
    body.dark-mode #footer {
        background-color: #000000 !important;
        color: #ffffff !important;
    }
    body.dark-mode #footer h2,
    body.dark-mode #footer a {
        color: #ffffff !important;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        background-color: #ffffff;
    }
    .wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 40px auto;
        max-width: 1200px;
    }
    .efekt-selector-container {
        display: flex;
        background-color: #f9f9f9;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
    }
    .sidebar {
        width: 400px;
        padding: 20px;
        background-color: #f4f4f4;
        border-right: 1px solid #ccc;
    }
    .section {
        margin-bottom: 30px;
    }
    .section h3 {
        margin-bottom: 10px;
    }
    .grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .item {
        width: 60px;
        height: 60px;
        border: 2px solid #ccc;
        border-radius: 8px;
        background-color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: border 0.2s, box-shadow 0.2s;
    }
    .item img {
        max-width: 90%;
        max-height: 90%;
    }
    .item:hover {
        border-color: #999;
        box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }
    .item.active {
        border: 2px solid #0077ff;
    }
    .preview {
        flex-grow: 1;
        padding: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
    }
    .preview img {
        max-width: 90%;
        max-height: 90%;
        border: 2px solid #ddd;
        border-radius: 12px;
    }

    body.dark-mode .wrapper {
        background-color: #000 !important;
    }
    body.dark-mode .efekt-selector-container {
        background-color: #000 !important;
        box-shadow: 0 4px 20px rgba(255,255,255,0.1) !important;
    }
    body.dark-mode .sidebar {
        background-color: #111 !important;
        border-right: 1px solid #444 !important;
    }
    body.dark-mode .section h3,
    body.dark-mode .section p {
        color: #fff !important;
    }
    body.dark-mode .item {
        background-color: #222 !important;
        border-color: #444 !important;
    }
    body.dark-mode .item:hover {
        border-color: #aaa !important;
        box-shadow: 0 0 5px rgba(255,255,255,0.1) !important;
    }
    body.dark-mode .item.active {
        border-color: #0077ff !important;
    }
    body.dark-mode .preview {
        background-color: #111 !important;
    }

    #mySidebar #ledlines-button.active,
    #mySidebar #ledlamps-button.active,
    #mySidebar #ledtubes-button.active,
    #mySidebar #neohex-button.active,
    #mySidebar #cableledlines-button.active {
        color: transparent !important;
        background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }

    #wifibox-button,
    #bit-button,
    #mySidebar #wifibox-button,
    #mySidebar #bit-button {
        background: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: inherit;
    }
    #wifibox-button { color: #214870 !important; }
    #bit-button    { color: #A86CD4 !important; }
    #wifibox-button:hover,
    #bit-button:hover,
    #mySidebar #wifibox-button:hover,
    #mySidebar #bit-button:hover {
        background: none !important;
        opacity: 0.8 !important;
    }

    body.dark-mode .efekt-selector-container {
        background-color: #000 !important;
    }

    #mySidebar {
        position: relative;
    }
    #mySidebar #gallery-button {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: none !important;
        box-shadow: none !important;
    }

    @media screen and (max-width: 600px) {
        #wifibox-button,
        #mySidebar #wifibox-button {
            background: none !important;
            color: #214870 !important;
        }
        #bit-button,
        #mySidebar #bit-button {
            background: none !important;
            color: #A86CD4 !important;
        }
        #wifibox-button:hover,
        #bit-button:hover,
        #mySidebar #wifibox-button:hover,
        #mySidebar #bit-button:hover {
            background: none !important;
            opacity: 0.8 !important;
        }
    }



#mySidebar #wifibox-button:not(.active),
#mySidebar #bit-button:not(.active) {
  color: grey !important;
}

#wifibox-button.active,
#mySidebar #wifibox-button.active {
  color: #214870 !important;
}
#bit-button.active,
#mySidebar #bit-button.active {
  color: #A86CD4 !important;
}





#calc-container {
  text-align: center;
}
#calc-container label,
#calc-container .calc-subtitle,
#calc-container .output,
#calc-container .result {
  text-align: center;
}



@media screen and (max-width: 600px) {

  #mySidebar {
    padding-bottom: 80px;
  }


  #mySidebar #gallery-button {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: none !important;
    box-shadow: none !important;
  }
}


header .led-buttons #wifibox-button,
header .led-buttons #bit-button {
  text-decoration: underline;
}




header .led-buttons #wifibox-button,
header .led-buttons #bit-button,
#mySidebar #wifibox-button,
#mySidebar #bit-button {
  font-weight: bold !important;
}



.wifi-icon {
  display: block;
  font-size: 1.2em;       /* prípadne dolaď veľkosť */
  margin: 0 auto 8px;     /* icon ⏎ 8px medzera ⏎ text */
  color: currentColor;    /* zdedí rovnakú farbu ako text */
}






.title-photo {
  display: block;
  max-width: 150px;   /* z pôvodných 300px na 150px */
  width: 100%;
  height: auto;
  margin: 0 auto;
}



header .led-buttons #wifibox-button,
header .led-buttons #bit-button,
header .led-buttons #cableledlines-button {
  font-size: 12px;       /* alebo 11px podľa vkusu */
  line-height: 1.1;
  white-space: nowrap;   /* zabráni zalomeniu */
  text-align: center;
}





</style>



