.header { overflow: hidden; background-color: #000; padding: 20px 10px; } .header a { float: left; color: #ddd; text-align: center; padding: 12px; text-decoration: none; font-size: 18px; line-height: 25px; border-radius: 4px; } .header a.logo { font-size: 25px; font-weight: bold; } .header a:hover { background-color: #ddd; color: black; } .header a.active { background-color: #3300CC; color: white; } .header a.active:hover { cursor: pointer; background: #000099; color: #000; } .header-right { float: right; } .addform { overflow: hidden; margin-top: 10px; padding: 0px 10px; } .addform input { width: 100%; margin-bottom: 20px; } .addform input[type="text"] { border: none; border-bottom: 1px solid #fff; background: transparent; outline: none; height: 40px; color: #fff; font-size: 16px; text-align: center; } .addform input[type="submit"] { border: none; outline: none; height: 40px; background: #3300CC; color: #fff; font-size: 18px; border-radius: 20px; } .addform input[type="submit"]:hover { cursor: pointer; background: #000099; color: #000; } .done-button { display: inline-block; font-size: 0.8em; background-color: #66CC99; color: #006633; padding: 2px 4px; border: 0; opacity: 0.4; border-radius: 8px; } .delete-button { display: inline-block; font-size: 0.8em; background-color: #FF0066; color: black; padding: 2px 4px; border: 0; opacity: 0.4; border-radius: 8px; } .todo { left: 10%; position: absolute; background-color: #fff; margin: 20px auto; width: 100%; max-width: 500px; padding: 20px; border-radius: 4px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .1); box-sizing: border-box; } .done { right: 10%; position: absolute; background-color: #fff; margin: 20px auto; width: 100%; max-width: 500px; padding: 20px; border-radius: 4px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .1); box-sizing: border-box; } .tasks { margin:0; padding0; list-style-type: none; } .tasks li { border:0; border-bottom:1px dashed #ccc; padding: 15px 0; } @media screen and (max-width: 999px) { .todo { position: relative; left: 0.5%; top: 5%; background-color: #fff; margin: auto; width: 90%; max-width: 500px; padding: 20px; border-radius: 4px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .1); box-sizing: border-box; } .done { position: relative; left: 0.5%; top: 5%; background-color: #fff; margin: 20px auto; width: 90%; max-width: 500px; padding: 20px; border-radius: 4px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .1); box-sizing: border-box; } }