@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
header
{
    position: fixed; /* Fix the header at the top */
    top: 0;          /* Align it to the top of the page */
    left: 0;         /* Align it to the left of the page */
    width: 100%;     /* Make the header span the full width of the page */
    min-height: 10vh;
    background: linear-gradient(-30deg, #45f3ff, #1c1c1c, #1c1c1c, #1c1c1c, #45f3ff);
    color: white;    /* White text color */
    border-top: 3px solid white;
    border-bottom: 3px solid white;
    padding: 20px;   /* Padding inside the header */
    z-index: 1000;   /* Ensure the header is on top of other elements */
    display: flex;     /* Enable flexbox for header */
    align-items: center; /* Vertically center the content */
    justify-content: space-between;
    
    
}
header h1
{
    font-size: 2em;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.headermessage
{
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6vh;
}
h3
{
    font-size: 2em;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 0;
    text-decoration-line: underline; 
}
body 
{
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    min-height: 100vh;
    background: linear-gradient(0deg, #0a0a0a, #0a0a0a, #23242a, #23242a);
    margin-left: 30px;
    margin-right: 30px;
}
button
{
    border-color: solid black;
    border-width: 2px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 110px;
}
.timerangebuttons
{
    position: sticky;
    top: 100px;
}
#sunscreenChart
{
    background-color: white;
    border: 3px solid rgb(121, 121, 121);
}
#deviceUsageChart
{
    background-color: white;
    border: 3px solid rgb(121, 121, 121);
}
#temperatureChart
{
    background-color: white;
    border: 3px solid rgb(121, 121, 121);
}
#humidityChart
{
    background-color: white;
    border: 3px solid rgb(121, 121, 121);
}
#deviceBatteryChart
{
    background-color: white;
    border: 3px solid rgb(121, 121, 121);
}
#dispenserBatteryChart
{
    background-color: white;
    border: 3px solid rgb(121, 121, 121);
}
#deviceUsageDropdown
{
    outline-color: black;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 110px;
}
#temperatureDropdown
{
    outline-color: black;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 110px;
}
#humidityDropdown
{
    outline-color: black;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 110px;
}
#deviceBatteryDropdown
{
    outline-color: black;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 110px;
}
#dispenserBatteryDropdown
{
    outline-color: black;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 110px;
}
.main_graph
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75%;
    gap: 10px;
    margin-top: 12vh;
}
.small_graph_layout
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    justify-items: center;
    width: 100%;
    gap: 30px;
    margin-bottom: 10vh;
}
.graph
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 600px;
    gap: 10px;
}
#logoutbutton
{
    position: absolute;
    right: 20px;
}
#homebutton
{
    position: absolute;
    left: 20px;
}
.header_button form input[type="submit"]
{
    border-color: solid black;
    border-width: 2px;
    outline: none;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 80px;
}
.header_button form input[type="submit"]:active
{
    opacity: 0.8;
}
.message
{
    text-align: center;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
}
.errormessage
{
    text-align: center;
    font-size: 2em;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration-line: underline;
    text-decoration-color: red;
}
.buttons
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.buttons form button
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-color: solid black;
    border-width: 2px;
    outline: none;
    padding: 10px 20px;
    background-color: #fff;
    cursor: pointer;
    font-size: 1em;
    border-radius: 4px;
    font-weight: 600;
}
.buttons form button img.icon
{
    width: 80px;
    height: 80px;
}
.buttons form input[type="submit"]:active
{
    opacity: 0.8;
}
.box
{
    position: relative;
    width: 380px;
    height: 420px;
    background: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
}
.box::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent, transparent, #45f3ff, #45f3ff, #45f3ff);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
}
.box::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent, transparent, #45f3ff, #45f3ff, #45f3ff);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}
@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}
.box form
{
    position: absolute;
    inset: 4px;
    background: #222;
    padding: 50px 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.box form h2
{
    color: #fff;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.1em;
}
.box form .inputBox
{
   position: relative;
   width: 300px;
   margin-top: 35px; 
}
.box form .inputBox input
{
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    z-index: 10;
}
.box form .inputBox span
{
    position: absolute;
    left: 0;
    padding: 20px 0px 10px;
    pointer-events: none;
    color: #8f8f8f;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
}
.box form .inputBox input:valid ~ span, .box form .inputBox input:focus ~ span
{
    color: #fff;
    font-size: 0.75em;
    transform: translateY(-34px);
}
.box form .inputBox i
{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.5s;
    pointer-events: none;
}
.box form .inputBox input:valid ~ i, .box form .inputBox input:focus ~ i
{
    height: 44px;
}
.box form input[type="submit"]
{
    border: none;
    outline: none;
    padding: 10px 20px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 100px;
    margin-top: 10px;
}
.box form input[type="submit"]:active
{
    opacity: 0.8;
}
.container
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
}
.form-group
{
    text-align: center;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
}
#tableSelect
{
    outline-color: black;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 200px;
}
.radio-group
{
    display: flex;
    gap: 20px;
}
#downloadButton
{
    border-color: solid black;
    border-width: 2px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 110px;
}

#map
{
    height: 500px;
    width: 100%;
}

@media (max-width: 600px) {
    header
    {
        position: fixed; /* Fix the header at the top */
        top: 0;          /* Align it to the top of the page */
        left: 0;         /* Align it to the left of the page */
        width: 100%;     /* Make the header span the full width of the page */
        min-height: 10.5vh;
        background: linear-gradient(-30deg, #45f3ff, #1c1c1c, #1c1c1c, #1c1c1c, #45f3ff);
        color: white;    /* White text color */
        border-top: 3px solid white;
        border-bottom: 3px solid white;
        padding: 20px;   /* Padding inside the header */
        z-index: 1000;   /* Ensure the header is on top of other elements */
        display: flex;     /* Enable flexbox for header */
        align-items: center; /* Vertically center the content */
        justify-content: space-between;
        
        
    }
    header h1
    {
        font-size: 1.5em;
        color: #fff;
        font-weight: 500;
        letter-spacing: 0.1em;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .headermessage
    {
        font-size: .6em;
        color: #fff;
        font-weight: 500;
        letter-spacing: 0.1em;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 7vh;
        white-space: nowrap;
    }
    #logoutbutton
    {
        position: absolute;
        right: 15px;
    }
    #homebutton
    {
        position: absolute;
        left: 15px;
    }
    .header_button {
        border-color: solid black;
        border-width: 2px;
        outline: none;
        padding: 0px;
        background: #fff;
        cursor: pointer;
        font-size: 0.7em;
        border-radius: 4px;
        font-weight: 600;
        width: 70px;
    }
    .header_button form input[type="submit"]
    {
        border-color: solid black;
        border-width: 2px;
        outline: none;
        padding: 10px;
        background: #fff;
        cursor: pointer;
        font-size: 0.9em;
        border-radius: 4px;
        font-weight: 600;
        width: 70px;
    }
    .buttons form button img.icon
    {
        width: 60px;
        height: 60px;
    }
    .buttons form button
    {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border-color: solid black;
        border-width: 2px;
        outline: none;
        padding: 10px 20px;
        background-color: #fff;
        cursor: pointer;
        font-size: .9em;
        border-radius: 4px;
        font-weight: 600;
    }
    button
    {
        border-color: solid black;
        border-width: 2px;
        padding: 7px;
        background: #fff;
        cursor: pointer;
        font-size: 0.7em;
        border-radius: 4px;
        font-weight: 600;
        width: 20vw;
    }
    h3
    {
        font-size: 1em;
        color: #fff;
        font-weight: 500;
        letter-spacing: 0.1em;
        margin: 0;
        text-decoration-line: underline; 
    }
    .main_graph
    {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90vw;
        gap: 10px;
        margin-top: 12vh;
    }
    .small_graph_layout
    {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        justify-items: center;
        width: 100%;
        gap: 30px;
        margin-bottom: 10vh;
    }
    .graph
    {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 90vw;
        gap: 10px;
    }
}