CurrencyConverter / style.css
GarGerry's picture
Update style.css
1792e89 verified
raw
history blame
1.87 kB
/* Reset CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styling */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #F3F4F9, #C9D6E3);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
}
/* Header styling */
header {
width: 100%;
background-color: #333;
color: white;
padding: 15px 0;
text-align: center;
font-size: 1.2rem;
font-weight: bold;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
/* Container styling */
.container {
background: #ffffff;
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
padding: 40px;
width: 100%;
max-width: 600px;
text-align: center;
margin: 0 20px;
}
.container h1 {
font-size: 2rem;
color: #2D3A3A;
margin-bottom: 20px;
text-transform: uppercase;
}
/* Form inputs and selects */
input, select {
padding: 12px;
margin: 10px 0;
width: 100%;
font-size: 16px;
border-radius: 8px;
border: 1px solid #E0E0E0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
background-color: #fff;
color: #555;
transition: all 0.3s ease;
}
input:focus, select:focus {
border: 1px solid #4CAF50;
outline: none;
box-shadow: 0 0 8px rgba(0, 180, 50, 0.2);
}
/* Styling dropdown and conversion button */
button {
padding: 12px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 8px;
width: 100%;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}
/* Footer styling */
footer {
width: 100%;
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
position: absolute;
bottom: 0;
}
footer p {
margin: 0;
font-size: 0.9rem;
}