diff --git a/Alarm Clock in JavaScript/style.css b/Alarm Clock in JavaScript/style.css index 1c66623..2e2a247 100644 --- a/Alarm Clock in JavaScript/style.css +++ b/Alarm Clock in JavaScript/style.css @@ -1,77 +1,102 @@ /* Import Google font - Poppins */ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"); + * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; } -body, -.wrapper, -.content { - display: flex; - align-items: center; - justify-content: center; -} + body { - padding: 0 10px; + padding: 0; min-height: 100vh; - background: #c07d19; + display: flex; + justify-content: center; + align-items: center; + background: linear-gradient(135deg, #141e30, #243b55); } + .wrapper { width: 440px; - padding: 30px 30px 38px; - background: #fff; - border-radius: 10px; - flex-direction: column; - box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); + padding: 30px; + background: rgba(255, 255, 255, 0.1); + border-radius: 20px; + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); } + .wrapper img { - max-width: 103px; + display: block; + margin: 0 auto; /* Center the image horizontally */ + max-width: 100px; + filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2)); + } + .wrapper h1 { font-size: 38px; - font-weight: 500; + font-weight: 600; margin: 30px 0; + color: #fff; + text-align: center; /* Center the text */ } + .wrapper .content { - width: 100%; + display: flex; justify-content: space-between; + gap:0.5rem; } + .content.disable { cursor: no-drop; } + .content .column { - padding: 0 10px; - border-radius: 5px; - border: 1px solid #bfbfbf; - width: calc(100% / 3 - 5px); + flex: 1; /* Make each column take up equal space */ + padding: 5px; + border-radius: 10px; + border: 1px solid rgba(255, 255, 255, 0.2); + background: rgba(255, 255, 255, 0.1); + transition: background 0.3s ease; } + .content.disable .column { opacity: 0.6; pointer-events: none; } + .column select { width: 100%; height: 53px; border: none; outline: none; - background: none; - font-size: 19px; + background: rgba(255, 255, 255, 0.2); + font-size: 18px; + color: #000000; + padding: 10px; + border-radius: 5px; + transition: background 0.3s ease; +} + +.column select:hover { + background: rgba(255, 255, 255, 0.3); } + .wrapper button { width: 100%; border: none; outline: none; - color: rgb(91, 17, 203); + color: #fff; cursor: pointer; font-size: 20px; - padding: 17px 0; + padding: 15px 0; margin-top: 20px; border-radius: 5px; - background: #4a98f7; + background: linear-gradient(135deg, #4a98f7, #3069b4); + transition: transform 0.3s ease; } -.set_alarm_btn:hover { - transition-duration: 1s; + +.wrapper button:hover { transform: translateY(-5px); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }