::-webkit-scrollbar {
    width: 0px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(91, 196, 102);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #000000d0;
    border-radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    background: #353535;
    background-image: url('images/IconBackgroundTransparent.png');
    background-position: center;
    background-size: contain;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* HEADER */

header {
    top: 0;
    left: 0;
    margin: 0;
    position: fixed;
    z-index: 1000;
    width: 100%;
    background: transparent;
    color: #000;
    padding: 5px 0;
    align-items: center;
    display: flex;
    transition: transform 0.3s ease, background-color 0.3s ease-in;
}

header h1 {
    margin: 10px;
    font-size: 2rem;
    user-select: none;
    cursor: pointer;
}

header img {
    margin: 0 15px;
    height: 2.5rem;
    width: auto;
    
    user-select: none;
    cursor: pointer;
}

header.visible {
    background-color: #000000de;
    color: #fff;
}

header a,
header button {
    color: #000;
}

header.visible a,
header.visible button {
    color: #ffffff;
}

header.visible a:hover {
    color: #757575;
}

nav {
    margin-left: auto;
    margin-right: 1em;
}

nav ul {
    margin: 0px;
    list-style: none;
    padding: 0;
    display: flex;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #000000;
    transition: color 0.3s ease-in;
    text-decoration: none;
}

nav ul li a:hover {
    color: #5c5c5c;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 1em;
}

/*@media (max-width: 550px) {
    nav ul {
        display: flex;
        flex-direction: column;
        background: #000000de;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.5s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        max-height: 300px;
        opacity: 1;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    #menu-toggle {
        display: block;
    }
}*/

/* BANNER */

.banner-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 10px;
    border-radius: 20px;
    margin: 15px;
    background: linear-gradient(#505050, #a0a0a0, #505050);
}

.banner-card {
    background: white;
    padding: 20px 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.banner-card h2 {
    margin: 10px 0;
    font-size: 2rem;
}

.time-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}


/* CONNECT */

.connect-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 10px;
}

.connect-card {
    background: white;
    padding: 20px 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    /* Limit width */
    width: 100%;
}

.connect-button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.connect-button {
    background: #68b6ff;
    font-size: 2rem;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.connect-button:hover {
    background: #158eff;
}

.connect-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#connection-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.status-connected {
    background: #a2ffa2;
    color: #00ff00;
}

.status-disconnected {
    background: #ff9090;
    color: #ff0000;
}


/* CONTROL */

.control-section {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 40px 10px;
}

.control-section h2 {
    font-size: 2rem;
    color: #eee;
}

.control-section h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

.control-card {
    background: #fff;
    padding: 20px 10px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
}

.input-title {
    margin-top: 25px;
    margin-bottom: 0;
    font-size: 1rem;
}

.control-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.control-card input {
    font-family: "Inter", serif;
    font-size: 1rem;
    padding: 5px;
    background-color: #fff;
    border: 2px solid #4d4d4d;
    border-radius: 8px;
    transition: border 0.3s;
}

.control-button {
    font-family: "Inter", serif;
    font-size: 0.9rem;
    font-weight: 700;
    background-color: #68b6ff;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s, opacity 0.3s;
    cursor: pointer;
}

#start-stop {
    font-size: 1.5rem;
    padding: 10px 20px;
}

/* Start/Stop Button Color */
#start-stop.start {
    background-color: #4CAF50;
    /* Green */
    color: white;
}

#start-stop.stop {
    background-color: #FF4D4D;
    /* Red */
    color: white;
}

.control-button:hover {
    opacity: 0.8;
}


.control-display {
    background-color: #b1b1b1;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 5px;
    margin: 10px;
}

.control-display p {
    margin: 5px;
}

.display-value {
    font-size: 2rem;
    font-weight: 700;
}



@media (max-width: 550px) {
    .banner-section {
        margin: 10px;
    }


    .connect-button-container {
        flex-direction: column;
    }

    .control-input-group {
        flex-direction: column;
    }
}