/** Rui Santos Complete project details at https://RandomNerdTutorials.com/control-esp32-esp8266-gpios-from-anywhere/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. **/ html { font-family: Arial; display: inline-block; text-align: center; } h2 { font-size: 3.0rem; } body { max-width: 600px; margin:0px auto; padding-bottom: 25px; } .switch { position: relative; display: inline-block; width: 120px; height: 68px; } .switch input { display: none } .slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #949494; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 52px; width: 52px; left: 8px; bottom: 8px; background-color: #fff; -webkit-transition: .4s; transition: .4s; border-radius: 68px; } input:checked+.slider { background-color: #008B74; } input:checked+.slider:before { -webkit-transform: translateX(52px); -ms-transform: translateX(52px); transform: translateX(52px); } input[type=text], input[type=number], select { width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } input[type=submit] { width: 100%; background-color: #008B74; color: white; padding: 14px 20px; margin: 8px 0; border: none; border-radius: 4px; cursor: pointer; } input[type=submit]:hover { background-color: #005a4c; } div { text-align: left; border-radius: 4px; background-color: #efefef; padding: 20px; }