body {
    font-family: Arial, sans-serif;
    background-color: rgb(4 32 53);
}

h1 {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: rgb(191 255 234);
    font-weight: 900;
    font-size: 3rem;
}

h2 {
    text-align: center;
    color: rgb(9 43 31);
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    top: -80px;
    margin-top: 50px;
}

form input {
    width: 50%;
    height: 10%;
    font-size: large;
    border: gray solid;
    background-color: rgb(165, 238, 214);
    transition: 0.2s;
}

form input:hover {
    background-color: #66ced3;
    border-radius: 10px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

form button {
    width: 25%;
    height: 10%;
    border-radius: 10px;
    border: gray solid;
    transition: 0.2s;
    cursor: pointer;
    background-color: rgb(165, 238, 214);
    font-size: large;
}

form button:hover {
    background-color: #66ced3;
    font-size: 1rem;
}

#deviceForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 20px;
    width: 40%;
    height: 30rem;
    background: #2c7e82;
    border-radius: 10px;
    border:#202e2e solid;
    margin: 0 auto;
}

#deviceList {
    list-style-type: none;
    padding: 0px;
    text-align: center;
    color: wheat;
    background-color: #2c7e82;
    border-radius: 10px;
    border: #202e2e solid;
    position: relative;
    top: -110px;
    margin: 0 auto;
    max-height: 475px;
    overflow-y: auto;
}
#deviceList::-webkit-scrollbar {
    width: 8px;
}

#deviceList::-webkit-scrollbar-thumb {
    background-color: #e6cea1;
    border-radius: 10px;
}

#deviceList::-webkit-scrollbar-track {
    background-color: #202e2e;
}
#devices{
    margin-bottom: -90px;
}
.content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 40px;
    background-color: #62b5b5;
    margin: -8px;
    padding: 50px;
}

ul li {
    padding: 0.5rem 2rem;
    font-weight: 700;
    border: #202e2e solid;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 100px;
    margin: 5px;
}

ul li:hover {
    background-color: #49abb0;
}

p {
    text-align: center;
    font-size: xx-large;
    color: rgb(9 43 31);
    font-weight: 800;
    margin: 10px;
}

p em {
    color: #a4f7f4;
}

#energyChart {
    width: 300px;
    height: 300px;
}

.canvas {
    width: 22rem;
    height: 22rem;
    margin: 0px auto;
}

table {
    width: 50%;
    border-collapse: collapse;
    margin-top: -10px;
    height: -21%;
    margin: auto;
}

th, td {
    border: 1px solid #ccc;
    padding: 9px;
    text-align: center;
    font-size: larger;
}

th {
    background-color: #5f8b9f;
    font-weight: 900;
    font-size: 2rem;
    color: #9ee0e3;
}

tr {
    transition: 0.2s;
    font-weight: 700;
    color: #2c7e82;
    cursor: pointer;
}

tr:hover {
    background-color: #66ced3;
}
.table_section{
    background-color: #071a1a;
    margin: -8px;
    padding-bottom: 30px;
    /* height: 83rem; */
}

/* Media Queries */
@media (max-width: 1200px) {
    #deviceForm {
        width: 75%;
    }
    table {
        width: 70%;
        height: 73rem;
    }
    
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
        top: -30px;
    }
    form input, form button {
        width: 80%;
        height: 7%;
    }
    #deviceForm {
        width: 80%;
        height: auto;
    }
    table {
        width: 90%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    form input{
        font-size: 200rem;
    }
    form input, form button {
        width: 90%;
        height: 6%;
    }
    #deviceForm {
        width: 100%;
        height: 40rem;
    }
    table {
        width: 100%;
    }
    .canvas {
        width: 15rem;
        height: 15rem;
    }
}
