.block{ margin-bottom: 20px; padding: 20px; background-color: #e9ecef; border-radius: 5px; } .container { width: 95%; max-width: 1200px; margin: 20px auto; background-color: #fff; padding: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); } body { font-family: 'Arial', sans-serif; margin: 0; padding: 0; background-color: #f4f4f4; } button , .button { display: inline-block; padding: 10px 20px; margin: 10px; font-size: 16px; cursor: pointer; text-decoration: none; color: white; background-color: #4CAF50; border: none; border-radius: 5px; } button:hover , .button:hover { background-color: #45a049; } button#alert , #alert.button,.button-alert { background-color: #f44336; } button#alert:hover , #alert.button:hover , .button-alert:hover { background-color: #da190b; } button:disabled, .button:disabled { background-color: #a9ada9; cursor: not-allowed; } button:disabled:hover, .button:disabled:hover { background-color: #a9ada9; } h2 { margin-top: 0; } .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #4CAF50; } input:focus + .slider { box-shadow: 0 0 1px #2196F3; } input:checked + .slider:before { transform: translateX(26px); } #first.block { background-color: #2195f300; display: flex; margin-bottom: 20px; padding: 0px; } #first.block h2 { margin-bottom: 0px; margin-right: 10px; } .horizontal-form { display: flex; flex-direction: row; align-items: center; justify-content: space-between; font-size: 16px; } select, input[type="text"], input[type="number"], input[type="password"] { padding: 10px 20px; margin: 10px; font-size: 16px; }