body { font-family: Arial, sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; } .container { display: flex; width: 100%; height: 100%; box-sizing: border-box; border: 1px solid #ccc; } .labels { width: 17%; border-right: 1px solid #ccc; padding: 20px; } .label-button { display: block; width: 50%; padding: 10px; margin-bottom: 10px; border: none; cursor: pointer; text-align: left; font-size: 20px; margin-top: 5%; background:none; } .label-button:hover { background-color: #ddd; } .content { width: 80%; padding: 20px; } .page { display: none; width: 100%; height: 95%; } #page1 { background-color:bisque; overflow-y: auto; } #page2 { background-color:bisque; overflow-y: auto; } #page2_header { height: 8%; } #page2_title { width: 30%; height: 100%; float: left; margin-left: 30%; } #page2_button { width: 25%; height: 100%; float: left; margin-left: 10%; } #page2_button button { width: 20%; height: 60%; font-size: 20px; margin-top: 5%; } #page2_pagination { width: 40%; height: 5%; float: left; margin-left: 40%; } #page3_pagination { width: 40%; height: 5%; float: left; margin-left: 40%; } #page3 { background-color:bisque; } #page4 { background-color:bisque; } .page.active { display: block; width: 100%; height: 100%; border: 1px solid #ccc; background-color:bisque; } .page.active h2 { font-size: 30px; margin-left: 45%; } #total_Voltage { width: 30%; height: 25%; float: left; margin-left: 15%; margin-top: 2%; border: 1px solid #ccc; } #total_Voltage td { width: 100px; height: 50px; margin-left: 10%; } #total_Current { width: 30%; height: 25%; float: left; margin-left: 15%; margin-top: 2%; border: 1px solid #ccc; } #total_Power { width: 30%; height: 25%; float: left; margin-left: 15%; margin-top: 2%; border: 1px solid #ccc; } #total_power_consumption { width: 30%; height: 25%; float: left; margin-left: 15%; margin-top: 2%; border: 1px solid #ccc; } #total_freq { width: 30%; height: 25%; float: left; margin-left: 15%; margin-top: 2%; border: 1px solid #ccc; } #Operation { width: 30%; height: 15%; float: left; margin-left: 15%; margin-top: 2%; border: 1px solid #ccc; } #Operation button { width: 20%; height: 35%; font-size: 20px; margin-top: 2%; float: left; margin-left: 15%; margin-top: 10%; } #Voltage_label { font-size: 30px; margin-left: 30%; margin-top: 5%; } td { width: 200px; font-size: 30px; text-align: center; border: 1px solid #ccc; } th { width: 200px; font-size: 30px; text-align: center; border: 1px solid #ccc; } #Voltage { font-size: 30px; text-align: center; float: left; margin-left: 20%; margin-top: 1%; } #Voltage nav { float: left; font-size: 30px; } #L1 { width: 300px; height: 50px; float: left; } #L2 { width: 300px; height: 50px; float: left; } #L3 { width: 300px; height: 50px; float: left; margin-top: 1%; } #V { font-size: 40px; text-align: center; float: left; margin-top: 8%; margin-left: 1%; } #Current { font-size: 30px; text-align: center; float: left; margin-left: 28%; margin-top: 1%; } #Current nav { float: left; font-size: 30px; } #Power { font-size: 30px; text-align: center; float: left; margin-left: 20%; margin-top: 1%; } #Power nav { float: left; font-size: 30px; } #power_consumption { font-size: 30px; text-align: center; float: left; margin-left: 25%; margin-top: 1%; } #power_consumption nav { float: left; font-size: 30px; } #freq { font-size: 30px; text-align: center; float: left; margin-left: 20%; margin-top: 1%; } #freq nav { float: left; font-size: 30px; } td { font-size: 20px; } td button { width: 80px; height: 50px; font-size: 20px; border: 1px solid #ccc; cursor: pointer; } th { font-size: 20px; } #page3 table { margin-left: 2%; } #page3 tbody { width: 100%; height: 100%; } #page3 td { width: 300px; height:50px; } #page4 table { margin-left: 1%; } #tbody button { width: 100%; height: 120%; } #tbody button { width: 100%; height: 120%; } .modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.4); padding-top: 60px; } .modal-content { background-color: #fefefe; margin: 5% auto; margin-left: 40%; padding: 20px; border: 1px solid #888; width: 30%; } .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; }