*,
*::before,
*::after {
   box-sizing: border-box;
   font-family: Gotham Rounded, sans-serif;
   font-weight: normal;
   font-style: normal;
   line-height: 1.1;
   color: #fff;
}

body {
   padding: 0px;
   margin: 0;
   background: radial-gradient(circle, #303030, #080808);
}

header {
   display: block;
   text-align: center;
   padding: 20px;
   background-image: linear-gradient(#000000, #303030);
   color: yellow;
}

/* Nav bar */
nav {
   display: grid;
   grid-template-columns: repeat(auto-fit, 120px);
   grid-gap: 20px;
   grid-template-rows: 1 100px;
   background-color: #303030;
   color: yellow;
}

nav a {
   padding: 1em;
   text-decoration: none;
   color: yellow;
   text-align: left;
   border-radius: 5px;
   background-color: #303030;
}

nav a:hover {
   background-color: #555555;
}

/* Main window */
main {
   display: block;
   padding: 20px;
   text-align: center;
}

/* Section */
div {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

section {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   grid-gap: 20px;
   padding-top: 20px;
   align-items: top;
   justify-content: center;
}

/* Card */
card {
   display: flexbox;
   padding: 20px;
   border-radius: 5px;
   background-color: #111111;
   align-items: top;
   box-shadow: 4px 4px 8px rgba(255, 255, 255, 0.2);
   min-width: 300px;
}

card .title {
   font-size: 1.5em;
   font-weight: bold;
   text-align: center;
   margin-top: 30px;
   margin-bottom: 20px;
   padding-top: 0px;
   /* padding-bottom: 10px; */
}

/* Footer */
footer {
   display: flex;
   justify-content: space-between;
   text-align: center;
   padding: 20px;
   background-image: linear-gradient(#303030, #000000);
   color: yellow;
}

copyright {
   /* background-color: #333; */
   color: #fff;
   padding: 10px 20px;
   text-align: center;
}

/* Status */
status {
   /* background-color: #555; */
   color: #fff;
   padding: 10px 20px;
   text-align: center;
}

/* log */
card .log {
   text-align: left;
   overflow-y: auto;
   max-height: 100vh;
}

/* dropdown */
.dropdown {
    width: 80%;
    padding: 0.5em;
    border-radius: 5px;
    background-color: #555;
    color: #fff;
    border: none;
    outline: none;
 }

input {
    /* width: calc(100% - 120px); */
    /* Adjust the width as needed */
    /* padding: 0.5em; */
    width: calc(28ch);
    border-radius: 5px;
    border: none;
    outline: none;
    color: #000;
    height: 3em;
 }
 
button {
    padding: 0.5em 1em;
    border-radius: 1em;
    border: none;
    background-color: #555;
    color: #fff;
    cursor: pointer;
    outline: none;
 }
 
button:hover {
    background-color: #777;
 }
 
 .slider {
    width: calc(100% - 6ch);
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    border-radius: 1em;
    background: #555;
    outline: none;
    margin: 0;
 }
 
 .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
 }
 
 .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* background: #fff; */
    cursor: pointer;
 }

.mqtt-control,
.mqtt-log {
   display: grid;
   grid-template-columns: 1fr;
   grid-gap: 20px;
   justify-content: center;
   align-items: top;
   background-color: #111111;
   padding: 20px;
   border-radius: 5px;
   box-shadow: 4px 4px 8px rgba(255, 255, 255, 0.2);
   min-height: 150px;
}

.mqtt-log {
   grid-column: span 3;
}

/* .mode-dropdown {
   width: 100%;
   padding: 0.5em;
   border-radius: 5px;
   background-color: #555;
   color: #fff;
   border: none;
   outline: none;
} */

.track-input {
   width: calc(100% - 120px);
   /* Adjust the width as needed */
   padding: 0.5em;
   border-radius: 5px;
   border: none;
   outline: none;
}

.track-button {
   padding: 0.5em 1em;
   border-radius: 5px;
   border: none;
   background-color: #555;
   color: #fff;
   cursor: pointer;
   outline: none;
}

.track-button:hover {
   background-color: #777;
}

.brightness-slider {
   width: calc(100% - 40px);
   -webkit-appearance: none;
   appearance: none;
   height: 10px;
   border-radius: 5px;
   background: #555;
   outline: none;
   margin: 0;
}

.brightness-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   appearance: none;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   background: #fff;
   cursor: pointer;
}

.brightness-slider::-moz-range-thumb {
   width: 20px;
   height: 20px;
   border-radius: 50%;
   background: #fff;
   cursor: pointer;
}

/* .log-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   grid-template-rows: 1fr 1fr;
   grid-gap: 20px;
   justify-content: center;
   align-items: center;
   /* height: 100vh; 
}

.config-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   grid-template-rows: 1fr 1fr;
   grid-gap: 20px;
   justify-content: center;
   align-items: center;
   /* height: 100vh; 
} */
